6 #ifndef TPZMGANALYSIS_H 7 #define TPZMGANALYSIS_H 19 template<
class T,
class V>
45 virtual void Solve ();
100 #endif //TPZMGANALYSIS_H Contains TPZAnalysis class which implements the sequence of actions to perform a finite element analy...
Defines step solvers class. Solver.
static TPZCompMesh * UniformlyRefineMesh(TPZCompMesh *mesh, bool withP=false)
Proceeds the uniformly h-p refinement of mesh.
REAL val(STATE &number)
Returns value of the variable.
TPZStack< TPZFMatrix< STATE > * > fSolutions
Contains the meshes solutions.
Contains the TPZTransfer class which implements a rectangular sparse block matrix.
TPZStack< TPZMatrixSolver< STATE > * > fPrecondition
Contains the preconditioner of the solution method if the solution method is a krylov method...
TPZCompMesh * PopMesh()
Pop the last mesh of the meshes vector.
static void MeshError(TPZCompMesh *fine, TPZCompMesh *coarse, TPZVec< REAL > &ervec, void(*f)(const TPZVec< REAL > &loc, TPZVec< STATE > &val, TPZFMatrix< STATE > &deriv), TPZVec< REAL > &truervec)
Evaluates the error between aproximation of coarse and fine meshes.
TPZMGAnalysis(TPZCompMesh *)
Creates an object multigrid analysis giving a computational mesh.
virtual ~TPZMGAnalysis()
Destructor.
Implements the sequence of actions to perform a finite element analysis. Analysis.
void AppendMesh(TPZCompMesh *mesh)
Append a mesh to the meshes vector.
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
void ComputeError(TPZVec< REAL > &error)
Loads the last two solutions and call the error between these two aproximations.
Implements multigrid analysis. TPZMGAnalysis is derived from TPZAnalysis. Analysis.
TPZStack< TPZCompMesh *> fMeshes
Contains the computational meshes of one cycle.
This class implements a stack object. Utility.
Implements computational mesh. Computational Mesh.
TPZStack< TPZMatrixSolver< STATE > * > fSolvers
Contains the solution method applied to the mesh.
virtual void Solve()
Uses fSolver object to apply a solution algorithm.
static REAL ElementError(TPZInterpolatedElement *fine, TPZInterpolatedElement *coarse, TPZTransform<> &tr, void(*f)(const TPZVec< REAL > &loc, TPZVec< STATE > &val, TPZFMatrix< STATE > &deriv), REAL &truerror)
Calculates an element error based on two aproximations.
Implements computational element based on an interpolation space. Computational Element.