NeoPZ
pznonlinanalysis.h
Go to the documentation of this file.
1 
6 #ifndef NONLINANALYSISH
7 #define NONLINANALYSISH
8 
9 #include "pzanalysis.h"
10 #include "pzcompel.h"
11 #include "pzfmatrix.h"
12 #include "pzvec.h"
13 #include "pzcmesh.h"
14 #include <iostream>
15 
21 
22 public:
24  TPZNonLinearAnalysis(TPZCompMesh *mesh,std::ostream &out);
28  virtual ~TPZNonLinearAnalysis();
29 
32  virtual void IterativeProcess(std::ostream &out,REAL tol,int numiter, bool linesearch = false, bool checkconv = false);
33 
45  REAL LineSearch(const TPZFMatrix<STATE> &Wn, TPZFMatrix<STATE> DeltaW, TPZFMatrix<STATE> &NextW, REAL tol, int niter);
47  REAL SolutionNorm();
48 
50  virtual void ComputeTangent(TPZFMatrix<STATE> &tangent, TPZVec<REAL> &coefs, int icase);
52  int NumCases();
53 
54  virtual void Residual(TPZFMatrix<STATE> &residual, int icase);
55 
56  virtual void LoadSolution();
57 
58  virtual void LoadSolution(const TPZFMatrix<STATE> &state);
59 
61  void LoadState(TPZFMatrix<STATE> &state);
62 
63 };
64 
65 #endif
Contains TPZAnalysis class which implements the sequence of actions to perform a finite element analy...
REAL SolutionNorm()
Computes the L2 norm of the solution.
virtual void ComputeTangent(TPZFMatrix< STATE > &tangent, TPZVec< REAL > &coefs, int icase)
Contains declaration of TPZCompEl class which defines the interface of a computational element...
Templated vector implementation.
REAL LineSearch(const TPZFMatrix< STATE > &Wn, TPZFMatrix< STATE > DeltaW, TPZFMatrix< STATE > &NextW, REAL tol, int niter)
Implements a golden section line search.
void LoadState(TPZFMatrix< STATE > &state)
Load solution with state as solution. But fSolution is not modified.
static const double tol
Definition: pzgeoprism.cpp:23
Implements the sequence of actions to perform a finite element analysis. Analysis.
Definition: pzanalysis.h:32
Contains TPZMatrixclass which implements full matrix (using column major representation).
virtual void LoadSolution()
Load the solution into the computable grid.
Contains declaration of TPZCompMesh class which is a repository for computational elements...
virtual void IterativeProcess(std::ostream &out, REAL tol, int numiter, bool linesearch=false, bool checkconv=false)
It process a Newton&#39;s method to solve the non-linear problem.
int NumCases()
Actually return 1.
Implements computational mesh. Computational Mesh.
Definition: pzcmesh.h:47
Derived class from TPZAnalysis implements non linear analysis (Newton&#39;s method). Analysis.
virtual void Residual(TPZFMatrix< STATE > &residual, int icase)
TPZNonLinearAnalysis()
Default constructor.
virtual ~TPZNonLinearAnalysis()
Default destructor.