9 #ifndef __PZ__pzgradientreconstruction__ 10 #define __PZ__pzgradientreconstruction__ 55 void Print(std::ostream &out)
const;
118 fForcingFunctionExact = fp;
124 fUseForcinfFuncion=
true;
127 fUseForcinfFuncion=
false;
130 if(fUseForcinfFuncion){
131 return (fForcingFunctionExact != 0);
134 fForcingFunctionExact = 0;
void ProjectionL2GradientReconstructed(TPZCompMesh *cmesh, int matidl2proj)
TPZStack< TPZManVector< REAL, 3 > > fCenterPointCellAndNeighbors
void GetCenterPointAndCellAveraged(TPZCompEl *cel, TPZManVector< REAL, 3 > &xcenter, STATE &solcel)
void CreateGhostsNeighbors(TPZCompEl *cel)
Method to create ghosts neighbors of the element cel. This method is used only for regular domain...
void ComputeSlopeLimiter2()
Contains declaration of TPZCompEl class which defines the interface of a computational element...
Templated vector implementation.
void NodeCloserCenterX(TPZManVector< REAL, 3 > &nodecelX)
Method to choose the node of the cell closer of your center point.
void SetForcingFunctionExact(TPZAutoPointer< TPZFunction< STATE > > fp)
Sets a procedure as exact solution for the problem.
TPZAutoPointer< TPZFunction< STATE > > fForcingFunctionExact
Pointer to exact solution function, needed to calculate exact error.
TPZManVector< REAL, 3 > fWeightsGrad
void ComputeSlopeLimiter()
Methods to calculate the slope limiter (alphaK)
void QRFactorization(TPZFMatrix< REAL > &matA, TPZFMatrix< REAL > &vecb)
void UseGhostsNeighbors(TPZVec< REAL > LxLyLz, TPZVec< int > MatIdBC, TPZManVector< TPZVec< REAL > > coordmin, TPZManVector< TPZVec< REAL > > coordmax)
void ChangeMaterialIdIntoCompElement(TPZCompEl *cel, int oldmatid, int newmatid)
TPZGradientData * fGradData
void GetData(TPZManVector< REAL, 3 > ¢erPoint, TPZManVector< STATE, 3 > &grad, STATE &cellAverage, STATE &slopeLimiter)
void InitializeGradData(TPZCompEl *cel)
TPZGradientData & operator=(const TPZGradientData ©)
void ComputeWeights(REAL paramk)
Method to calculate the weights that we will use in distorted meshes.
TPZManVector< TPZVec< REAL > > fcoordmaxBC
void GetDataDistortedMesh(bool &useweight, REAL ¶mK)
void InsertWeights(TPZFMatrix< REAL > &DeltaH, TPZFMatrix< REAL > &DifSol)
Method to insert the weights in the matrices of the system by least squares.
Contains declaration of the TPZAutoPointer class which has Increment and Decrement actions are mutexe...
void Print(std::ostream &out) const
void DisableForcinFucnction()
Contains declaration of TPZCompMesh class which is a repository for computational elements...
This class associates an element matrix with the coeficients of its contribution in the global stiffn...
TPZManVector< TPZVec< REAL > > fcoordminBC
void EnableForcinFucnction()
Implements computational mesh. Computational Mesh.
~TPZGradientReconstruction()
void SetCel(TPZCompEl *cel, bool useweight, REAL paramK)
int HasForcingFunctionExact()
void SetDataGhostsNeighbors(TPZVec< REAL > LxLyLz, TPZVec< int > MatIdBC, TPZManVector< TPZVec< REAL > > coordmin, TPZManVector< TPZVec< REAL > > coordmax)
TPZStack< STATE > fSolCellAndNeighbors
TPZStack< TPZManVector< REAL, 3 > > fCenterPointInterface
void AssembleGlobalMatrix(TPZCompEl *el, TPZElementMatrix &ek, TPZElementMatrix &ef, TPZMatrix< STATE > &stiffmatrix, TPZFMatrix< STATE > &rhs)
TPZManVector< STATE, 3 > fGradient
Defines the interface of a computational element. Computational Element.
TPZGradientReconstruction(bool distmesh, REAL paramK)
void ComputeSlopeLimiter3()
TPZStack< TPZCompEl * > fCelAndNeighbors
This class implements a reference counter mechanism to administer a dynamically allocated object...