NeoPZ
Public Member Functions | Public Attributes | Protected Attributes | List of all members
TPZGradientReconstruction::TPZGradientData Class Reference
Collaboration diagram for TPZGradientReconstruction::TPZGradientData:
[legend]

Public Member Functions

 TPZGradientData ()
 
 ~TPZGradientData ()
 
 TPZGradientData (const TPZGradientData &cp)
 
TPZGradientDataoperator= (const TPZGradientData &copy)
 
void SetCel (TPZCompEl *cel, bool useweight, REAL paramK)
 
void Print (std::ostream &out) const
 
void GetCenterPointAndCellAveraged (TPZCompEl *cel, TPZManVector< REAL, 3 > &xcenter, STATE &solcel)
 
void InitializeGradData (TPZCompEl *cel)
 
void ComputeGradient ()
 
void QRFactorization (TPZFMatrix< REAL > &matA, TPZFMatrix< REAL > &vecb)
 
void ComputeSlopeLimiter ()
 Methods to calculate the slope limiter (alphaK) More...
 
void ComputeSlopeLimiter2 ()
 
void ComputeSlopeLimiter3 ()
 
void ComputeWeights (REAL paramk)
 Method to calculate the weights that we will use in distorted meshes. More...
 
void NodeCloserCenterX (TPZManVector< REAL, 3 > &nodecelX)
 Method to choose the node of the cell closer of your center point. More...
 
void InsertWeights (TPZFMatrix< REAL > &DeltaH, TPZFMatrix< REAL > &DifSol)
 Method to insert the weights in the matrices of the system by least squares. More...
 
void GetData (TPZManVector< REAL, 3 > &centerPoint, TPZManVector< STATE, 3 > &grad, STATE &cellAverage, STATE &slopeLimiter)
 
void SetForcingFunctionExact (TPZAutoPointer< TPZFunction< STATE > > fp)
 Sets a procedure as exact solution for the problem. More...
 
void EnableForcinFucnction ()
 
void DisableForcinFucnction ()
 
int HasForcingFunctionExact ()
 
void UseGhostsNeighbors (TPZVec< REAL > LxLyLz, TPZVec< int > MatIdBC, TPZManVector< TPZVec< REAL > > coordmin, TPZManVector< TPZVec< REAL > > coordmax)
 
void CreateGhostsNeighbors (TPZCompEl *cel)
 Method to create ghosts neighbors of the element cel. This method is used only for regular domain. More...
 

Public Attributes

TPZAutoPointer< TPZFunction< STATE > > fForcingFunctionExact
 Pointer to exact solution function, needed to calculate exact error. More...
 
bool fUseForcinfFuncion
 

Protected Attributes

TPZStack< STATE > fSolCellAndNeighbors
 
TPZStack< TPZManVector< REAL, 3 > > fCenterPointCellAndNeighbors
 
TPZStack< TPZManVector< REAL, 3 > > fCenterPointInterface
 
TPZManVector< STATE, 3 > fGradient
 
STATE fSlopeLimiter
 
int fdim
 
TPZStack< TPZCompEl * > fCelAndNeighbors
 
TPZManVector< REAL, 3 > fWeightsGrad
 
bool fUseWeight
 
REAL fparamK
 
bool fGhostNeighbor
 
TPZVec< REAL > fLxLyLz
 
TPZVec< int > fMatIdBC
 
TPZManVector< TPZVec< REAL > > fcoordminBC
 
TPZManVector< TPZVec< REAL > > fcoordmaxBC
 

Detailed Description

Definition at line 26 of file pzgradientreconstruction.h.

Constructor & Destructor Documentation

◆ TPZGradientData() [1/2]

TPZGradientReconstruction::TPZGradientData::TPZGradientData ( )

Definition at line 206 of file pzgradientreconstruction.cpp.

◆ ~TPZGradientData()

TPZGradientReconstruction::TPZGradientData::~TPZGradientData ( )

Definition at line 230 of file pzgradientreconstruction.cpp.

◆ TPZGradientData() [2/2]

TPZGradientReconstruction::TPZGradientData::TPZGradientData ( const TPZGradientData cp)

Member Function Documentation

◆ ComputeGradient()

void TPZGradientReconstruction::TPZGradientData::ComputeGradient ( )

◆ ComputeSlopeLimiter()

void TPZGradientReconstruction::TPZGradientData::ComputeSlopeLimiter ( )

Methods to calculate the slope limiter (alphaK)

Definition at line 801 of file pzgradientreconstruction.cpp.

References DebugStop, fabs, IsZero(), TPZStack< T, NumExtAlloc >::Push(), PZError, and TPZVec< T >::size().

◆ ComputeSlopeLimiter2()

void TPZGradientReconstruction::TPZGradientData::ComputeSlopeLimiter2 ( )

◆ ComputeSlopeLimiter3()

void TPZGradientReconstruction::TPZGradientData::ComputeSlopeLimiter3 ( )

◆ ComputeWeights()

void TPZGradientReconstruction::TPZGradientData::ComputeWeights ( REAL  paramk)

Method to calculate the weights that we will use in distorted meshes.

Parameters
paramk[in]: parameter used in the harmonic mean, equal 1 or 2

Definition at line 1053 of file pzgradientreconstruction.cpp.

References DebugStop, dist(), TPZGeoEl::Distance(), pow(), TPZGeoEl::Reference(), and TPZVec< T >::size().

◆ CreateGhostsNeighbors()

void TPZGradientReconstruction::TPZGradientData::CreateGhostsNeighbors ( TPZCompEl cel)

Method to create ghosts neighbors of the element cel. This method is used only for regular domain.

Parameters
cel[in]: computational element of the cell

Definition at line 1145 of file pzgradientreconstruction.cpp.

References DebugStop, TPZCompElSide::EqualLevelElementList(), TPZMaterial::Id(), TPZCompEl::Material(), TPZGeoEl::NCornerNodes(), TPZVec< T >::NElements(), TPZGeoEl::NSides(), PZError, TPZCompEl::Reference(), TPZManVector< T, NumExtAlloc >::Resize(), and TPZBndCond::Type().

Referenced by UseGhostsNeighbors().

◆ DisableForcinFucnction()

void TPZGradientReconstruction::TPZGradientData::DisableForcinFucnction ( )
inline

Definition at line 126 of file pzgradientreconstruction.h.

◆ EnableForcinFucnction()

void TPZGradientReconstruction::TPZGradientData::EnableForcinFucnction ( )
inline

Definition at line 123 of file pzgradientreconstruction.h.

◆ GetCenterPointAndCellAveraged()

void TPZGradientReconstruction::TPZGradientData::GetCenterPointAndCellAveraged ( TPZCompEl cel,
TPZManVector< REAL, 3 > &  xcenter,
STATE &  solcel 
)

◆ GetData()

void TPZGradientReconstruction::TPZGradientData::GetData ( TPZManVector< REAL, 3 > &  centerPoint,
TPZManVector< STATE, 3 > &  grad,
STATE &  cellAverage,
STATE &  slopeLimiter 
)
inline

◆ HasForcingFunctionExact()

int TPZGradientReconstruction::TPZGradientData::HasForcingFunctionExact ( )
inline

Definition at line 129 of file pzgradientreconstruction.h.

◆ InitializeGradData()

void TPZGradientReconstruction::TPZGradientData::InitializeGradData ( TPZCompEl cel)

◆ InsertWeights()

void TPZGradientReconstruction::TPZGradientData::InsertWeights ( TPZFMatrix< REAL > &  DeltaH,
TPZFMatrix< REAL > &  DifSol 
)

Method to insert the weights in the matrices of the system by least squares.

Parameters
DeltaH[out]: matrix of distances between the center points
DifSol[out]: matrix of differences between the solutions

Definition at line 1125 of file pzgradientreconstruction.cpp.

References TPZMatrix< TVar >::Cols(), DebugStop, and TPZMatrix< TVar >::Rows().

◆ NodeCloserCenterX()

void TPZGradientReconstruction::TPZGradientData::NodeCloserCenterX ( TPZManVector< REAL, 3 > &  nodecelX)

Method to choose the node of the cell closer of your center point.

Parameters
cel[in]: computational element of the cell
nodecelX[out]: node closer of the center point in coord X

Definition at line 1091 of file pzgradientreconstruction.cpp.

References DebugStop, dist(), TPZGeoEl::Distance(), TPZGeoNode::GetCoordinates(), TPZGeoEl::NCornerNodes(), TPZGeoEl::Node(), TPZGeoEl::Reference(), TPZManVector< T, NumExtAlloc >::Resize(), and TPZVec< T >::size().

◆ operator=()

TPZGradientReconstruction::TPZGradientData & TPZGradientReconstruction::TPZGradientData::operator= ( const TPZGradientData copy)

◆ Print()

void TPZGradientReconstruction::TPZGradientData::Print ( std::ostream &  out) const

Definition at line 322 of file pzgradientreconstruction.cpp.

◆ QRFactorization()

void TPZGradientReconstruction::TPZGradientData::QRFactorization ( TPZFMatrix< REAL > &  matA,
TPZFMatrix< REAL > &  vecb 
)

◆ SetCel()

void TPZGradientReconstruction::TPZGradientData::SetCel ( TPZCompEl cel,
bool  useweight,
REAL  paramK 
)

◆ SetForcingFunctionExact()

void TPZGradientReconstruction::TPZGradientData::SetForcingFunctionExact ( TPZAutoPointer< TPZFunction< STATE > >  fp)
inline

Sets a procedure as exact solution for the problem.

Parameters
fppointer of exact solution function

Definition at line 116 of file pzgradientreconstruction.h.

◆ UseGhostsNeighbors()

void TPZGradientReconstruction::TPZGradientData::UseGhostsNeighbors ( TPZVec< REAL >  LxLyLz,
TPZVec< int >  MatIdBC,
TPZManVector< TPZVec< REAL > >  coordmin,
TPZManVector< TPZVec< REAL > >  coordmax 
)
inline

Member Data Documentation

◆ fCelAndNeighbors

TPZStack<TPZCompEl *> TPZGradientReconstruction::TPZGradientData::fCelAndNeighbors
protected
Parameters
fNeighborsCelNeighbors of the cell

Definition at line 177 of file pzgradientreconstruction.h.

Referenced by operator=(), and TPZGradientData().

◆ fCenterPointCellAndNeighbors

TPZStack<TPZManVector<REAL,3> > TPZGradientReconstruction::TPZGradientData::fCenterPointCellAndNeighbors
protected
Parameters
CenterPointCellAndNeighborsCenter point of the element and neighbors

Definition at line 162 of file pzgradientreconstruction.h.

Referenced by GetData(), operator=(), and TPZGradientData().

◆ fCenterPointInterface

TPZStack<TPZManVector<REAL,3> > TPZGradientReconstruction::TPZGradientData::fCenterPointInterface
protected
Parameters
CenterPointInterfaceCenter point of the interface between element and neighbors

Definition at line 165 of file pzgradientreconstruction.h.

Referenced by operator=(), and TPZGradientData().

◆ fcoordmaxBC

TPZManVector< TPZVec<REAL> > TPZGradientReconstruction::TPZGradientData::fcoordmaxBC
protected
Parameters
fcoordminBCThe minimum coordinate for each boundary (xmin,ymin,zmin)

Definition at line 202 of file pzgradientreconstruction.h.

Referenced by operator=(), TPZGradientData(), and UseGhostsNeighbors().

◆ fcoordminBC

TPZManVector< TPZVec<REAL> > TPZGradientReconstruction::TPZGradientData::fcoordminBC
protected
Parameters
fMatIdBCIndices of the boundary conditions (Neumann type, No flux) that there are ghosts

Definition at line 199 of file pzgradientreconstruction.h.

Referenced by operator=(), TPZGradientData(), and UseGhostsNeighbors().

◆ fdim

int TPZGradientReconstruction::TPZGradientData::fdim
protected
Parameters
fdimDimension of the element

Definition at line 174 of file pzgradientreconstruction.h.

Referenced by operator=(), and TPZGradientData().

◆ fForcingFunctionExact

TPZAutoPointer<TPZFunction<STATE> > TPZGradientReconstruction::TPZGradientData::fForcingFunctionExact

Pointer to exact solution function, needed to calculate exact error.

Definition at line 110 of file pzgradientreconstruction.h.

Referenced by operator=(), and TPZGradientData().

◆ fGhostNeighbor

bool TPZGradientReconstruction::TPZGradientData::fGhostNeighbor
protected
Parameters
fGhostNeighborParameter that indicates the use of ghosts neighbors in some boundary of the mesh.

Definition at line 191 of file pzgradientreconstruction.h.

Referenced by operator=(), TPZGradientData(), and UseGhostsNeighbors().

◆ fGradient

TPZManVector<STATE,3> TPZGradientReconstruction::TPZGradientData::fGradient
protected
Parameters
Gradientgradient reconstructed

Definition at line 168 of file pzgradientreconstruction.h.

Referenced by GetData(), operator=(), and TPZGradientData().

◆ fLxLyLz

TPZVec<REAL> TPZGradientReconstruction::TPZGradientData::fLxLyLz
protected

Definition at line 193 of file pzgradientreconstruction.h.

Referenced by operator=(), TPZGradientData(), and UseGhostsNeighbors().

◆ fMatIdBC

TPZVec<int> TPZGradientReconstruction::TPZGradientData::fMatIdBC
protected
Parameters
fLxLyLzDimension of the domain: Lx X Ly X Lz

Definition at line 196 of file pzgradientreconstruction.h.

Referenced by operator=(), TPZGradientData(), and UseGhostsNeighbors().

◆ fparamK

REAL TPZGradientReconstruction::TPZGradientData::fparamK
protected
Parameters
fparamKparameter used in the harmonic mean, equal 1 or 2

Definition at line 186 of file pzgradientreconstruction.h.

Referenced by operator=(), and TPZGradientData().

◆ fSlopeLimiter

STATE TPZGradientReconstruction::TPZGradientData::fSlopeLimiter
protected
Parameters
SlopeLimiterValue of the slope limiter

Definition at line 171 of file pzgradientreconstruction.h.

Referenced by GetData(), operator=(), and TPZGradientData().

◆ fSolCellAndNeighbors

TPZStack<STATE> TPZGradientReconstruction::TPZGradientData::fSolCellAndNeighbors
protected
Parameters
SolCellAndNeighborsValue of the cells averaged

Definition at line 159 of file pzgradientreconstruction.h.

Referenced by GetData(), operator=(), and TPZGradientData().

◆ fUseForcinfFuncion

bool TPZGradientReconstruction::TPZGradientData::fUseForcinfFuncion

Definition at line 121 of file pzgradientreconstruction.h.

Referenced by operator=(), and TPZGradientData().

◆ fUseWeight

bool TPZGradientReconstruction::TPZGradientData::fUseWeight
protected
Parameters
fUseWeightParameter indicates if the mesh is distorted

Definition at line 183 of file pzgradientreconstruction.h.

Referenced by operator=(), and TPZGradientData().

◆ fWeightsGrad

TPZManVector<REAL,3> TPZGradientReconstruction::TPZGradientData::fWeightsGrad
protected
Parameters
fWeightsGradvector with weights to each neighbor

Definition at line 180 of file pzgradientreconstruction.h.

Referenced by operator=(), and TPZGradientData().


The documentation for this class was generated from the following files: