MFEM  v4.5.2
Finite element discretization library
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mfem::TMOPDeRefinerEstimator Class Reference

#include <tmop_amr.hpp>

Inheritance diagram for mfem::TMOPDeRefinerEstimator:
[legend]
Collaboration diagram for mfem::TMOPDeRefinerEstimator:
[legend]

Public Member Functions

 TMOPDeRefinerEstimator (Mesh &mesh_, NonlinearForm &nlf_)
 
 TMOPDeRefinerEstimator (ParMesh &pmesh_, ParNonlinearForm &pnlf_)
 
 ~TMOPDeRefinerEstimator ()
 
virtual const VectorGetLocalErrors ()
 Get a Vector with all element errors. More...
 
virtual void Reset ()
 Reset the error estimator. More...
 
- Public Member Functions inherited from mfem::ErrorEstimator
virtual double GetTotalError () const
 Return the total error from the last error estimate. More...
 
virtual ~ErrorEstimator ()
 Destruct the error estimator. More...
 
- Public Member Functions inherited from mfem::AbstractErrorEstimator
virtual ~AbstractErrorEstimator ()
 

Protected Member Functions

bool MeshIsModified ()
 Check if the mesh of the solution was modified. More...
 
void ComputeEstimates ()
 
void GetTMOPDerefinementEnergy (Mesh &cmesh, TMOP_Integrator &tmopi, Vector &el_energy_vec)
 
bool GetDerefineEnergyForIntegrator (TMOP_Integrator &tmopi, Vector &fine_energy)
 

Protected Attributes

Meshmesh
 
NonlinearFormnlf
 
ParMeshpmesh
 
ParNonlinearFormpnlf
 
int order
 
int amrmetric
 
long current_sequence
 
Vector error_estimates
 
bool serial
 

Detailed Description

Definition at line 130 of file tmop_amr.hpp.

Constructor & Destructor Documentation

◆ TMOPDeRefinerEstimator() [1/2]

mfem::TMOPDeRefinerEstimator::TMOPDeRefinerEstimator ( Mesh mesh_,
NonlinearForm nlf_ 
)
inline

Definition at line 166 of file tmop_amr.hpp.

◆ TMOPDeRefinerEstimator() [2/2]

mfem::TMOPDeRefinerEstimator::TMOPDeRefinerEstimator ( ParMesh pmesh_,
ParNonlinearForm pnlf_ 
)
inline

Definition at line 170 of file tmop_amr.hpp.

◆ ~TMOPDeRefinerEstimator()

mfem::TMOPDeRefinerEstimator::~TMOPDeRefinerEstimator ( )
inline

Definition at line 175 of file tmop_amr.hpp.

Member Function Documentation

◆ ComputeEstimates()

void mfem::TMOPDeRefinerEstimator::ComputeEstimates ( )
protected

Compute the element error estimates. For a given element E in the mesh, error(E) = TMOPEnergy(parent_of_E)-TMOPEnergy(E). Children element of an element are derefined if the mean TMOP energy of children is greater than the TMOP energy associated with their parent.

Definition at line 477 of file tmop_amr.cpp.

◆ GetDerefineEnergyForIntegrator()

bool mfem::TMOPDeRefinerEstimator::GetDerefineEnergyForIntegrator ( TMOP_Integrator tmopi,
Vector fine_energy 
)
protected

Definition at line 357 of file tmop_amr.cpp.

◆ GetLocalErrors()

virtual const Vector& mfem::TMOPDeRefinerEstimator::GetLocalErrors ( )
inlinevirtual

Get a Vector with all element errors.

Implements mfem::ErrorEstimator.

Definition at line 177 of file tmop_amr.hpp.

◆ GetTMOPDerefinementEnergy()

void mfem::TMOPDeRefinerEstimator::GetTMOPDerefinementEnergy ( Mesh cmesh,
TMOP_Integrator tmopi,
Vector el_energy_vec 
)
protected

Definition at line 509 of file tmop_amr.cpp.

◆ MeshIsModified()

bool mfem::TMOPDeRefinerEstimator::MeshIsModified ( )
inlineprotected

Check if the mesh of the solution was modified.

Definition at line 146 of file tmop_amr.hpp.

◆ Reset()

virtual void mfem::TMOPDeRefinerEstimator::Reset ( )
inlinevirtual

Reset the error estimator.

Implements mfem::ErrorEstimator.

Definition at line 184 of file tmop_amr.hpp.

Member Data Documentation

◆ amrmetric

int mfem::TMOPDeRefinerEstimator::amrmetric
protected

Definition at line 140 of file tmop_amr.hpp.

◆ current_sequence

long mfem::TMOPDeRefinerEstimator::current_sequence
protected

Definition at line 141 of file tmop_amr.hpp.

◆ error_estimates

Vector mfem::TMOPDeRefinerEstimator::error_estimates
protected

Definition at line 142 of file tmop_amr.hpp.

◆ mesh

Mesh* mfem::TMOPDeRefinerEstimator::mesh
protected

Definition at line 133 of file tmop_amr.hpp.

◆ nlf

NonlinearForm* mfem::TMOPDeRefinerEstimator::nlf
protected

Definition at line 134 of file tmop_amr.hpp.

◆ order

int mfem::TMOPDeRefinerEstimator::order
protected

Definition at line 139 of file tmop_amr.hpp.

◆ pmesh

ParMesh* mfem::TMOPDeRefinerEstimator::pmesh
protected

Definition at line 136 of file tmop_amr.hpp.

◆ pnlf

ParNonlinearForm* mfem::TMOPDeRefinerEstimator::pnlf
protected

Definition at line 137 of file tmop_amr.hpp.

◆ serial

bool mfem::TMOPDeRefinerEstimator::serial
protected

Definition at line 143 of file tmop_amr.hpp.


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