6 #ifndef TPZNLMGANALYSIS_H 7 #define TPZNLMGANALYSIS_H 75 const std::string &dxout =
"plotfile.dx");
80 const std::string &dxout);
88 void CoutTime(clock_t &start,
const char *title);
Contains TPZAnalysis class which implements the sequence of actions to perform a finite element analy...
Implements multigrid analysis to Non linear problems. Class TPZNonLinMultGridAnalysis derived from TP...
clock_t fBegin
Times by iteration and accumulated time.
TPZNonLinMultGridAnalysis(TPZCompMesh *cmesh)
Creates an object multigrid analysis giving a computational mesh.
TPZStack< TPZFMatrix< STATE > * > fSolutions
Contains the meshes solutions.
void(* fFunction)(TPZMaterial *mat, TPZCompMesh *cmesh)
void TwoGridAlgorithm(std::ostream &out, int nummat)
Defines a class of matrix solvers. Solver.
void SetDeltaTime(TPZCompMesh *CompMesh, TPZMaterial *mat)
TPZCompMesh * PopMesh()
Pop the last mesh of the meshes vector.
This abstract class defines the behaviour which each derived class needs to implement.
TPZStack< TPZMatrixSolver< STATE > * > fPrecondition
Contains the preconditioner of the solution method.
Implements the sequence of actions to perform a finite element analysis. Analysis.
void CoutTime(clock_t &start, const char *title)
void CalcResidual(TPZMatrix< STATE > &sol, TPZAnalysis &an, const std::string &decompose, TPZFMatrix< STATE > &res)
TPZStack< TPZMatrixSolver< STATE > * > fSolvers
Contains the solution method applied to the mesh.
void SetAnalysisFunction(void(*fp)(TPZMaterial *mat, TPZCompMesh *cmesh))
void OneGridAlgorithm(std::ostream &out, int nummat)
void ResetReference(TPZCompMesh *aggcmesh)
TPZStack< TPZCompMesh *> fMeshes
Contains the computational meshes of one cycle: V, W, F, etc.
TPZCompMesh * IMesh(int64_t index)
int NMeshes()
Number of meshes.
void AppendMesh(TPZCompMesh *mesh)
Append a mesh to the meshes vector.
static TPZCompMesh * AgglomerateMesh(TPZCompMesh *finemesh, int levelnumbertogroup)
It generates a new mesh based on the agglomeration of elements of the fine mesh.
Contains TPZMatrix<TVar>class, root matrix class.
~TPZNonLinMultGridAnalysis()
Destructor.
void SmoothingSolution2(REAL tol, int numiter, TPZMaterial *mat, TPZAnalysis &an, int marcha, const std::string &dxout)
This class implements a stack object. Utility.
Implements computational mesh. Computational Mesh.
void SmoothingSolution(REAL tol, int numiter, TPZMaterial *mat, TPZAnalysis &an, int marcha=0, const std::string &dxout="plotfile.dx")
void SetReference(TPZCompMesh *aggcmesh)
int64_t NElements() const
Returns the number of elements of the vector.
Contains the declaration of TPZFlopCounter class and TPZCounter struct.
static TPZCompMesh * UniformlyRefineMesh(TPZCompMesh *coarcmesh, int levelnumbertorefine, int setdegree)
It creates a new established computational mesh in the refinement uniform of a fixed number of levels...