OOFEM 3.0
Loading...
Searching...
No Matches
oofem::RemeshingCriteria Class Referenceabstract

#include <remeshingcrit.h>

Inheritance diagram for oofem::RemeshingCriteria:
Collaboration diagram for oofem::RemeshingCriteria:

Public Member Functions

 RemeshingCriteria (int n, ErrorEstimator *e)
 Constructor.
virtual ~RemeshingCriteria ()
 Destructor.
virtual double giveRequiredDofManDensity (int num, TimeStep *tStep, int relative=0)=0
virtual double giveDofManDensity (int num)=0
virtual RemeshingStrategy giveRemeshingStrategy (TimeStep *tStep)=0
virtual int estimateMeshDensities (TimeStep *tStep)=0
virtual void reinitialize ()
Public Member Functions inherited from oofem::FEMComponent
 FEMComponent (int n, Domain *d)
virtual ~FEMComponent ()=default
 Virtual destructor.
virtual const char * giveClassName () const =0
virtual const char * giveInputRecordName () const =0
DomaingiveDomain () const
virtual void setDomain (Domain *d)
int giveNumber () const
void setNumber (int num)
virtual void updateLocalNumbering (EntityRenumberingFunctor &f)
virtual void initializeFrom (InputRecord &ir)
virtual void initializeFrom (InputRecord &ir, int priority)
virtual void initializeFinish ()
virtual void postInitialize ()
 Performs post initialization steps. Called after all components are created and initialized.
virtual void giveInputRecord (DynamicInputRecord &input)
virtual void saveContext (DataStream &stream, ContextMode mode)
virtual void restoreContext (DataStream &stream, ContextMode mode)
virtual int checkConsistency ()
virtual void printOutputAt (FILE *file, TimeStep *tStep)
virtual void printYourself ()
 Prints receiver state on stdout. Useful for debugging.
virtual InterfacegiveInterface (InterfaceType t)
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros).

Protected Attributes

ErrorEstimatoree
CommunicatorBuffcommBuff
 Common Communicator buffer.
ProblemCommunicatorcommunicator
 Communicator.
bool initCommMap
 Communication init flag.
Protected Attributes inherited from oofem::FEMComponent
int number
 Component number.
Domaindomain
 Link to domain object, useful for communicating with other FEM components.

Detailed Description

The base class for all remeshing criteria. The basic task is to evaluate the required mesh density (at nodes) on given domain, based on informations provided by the compatible error estimator. If this task requires the special element algorithms, these should be included using interface concept.

The remeshing criteria is maintained by the corresponding error estimator. This is mainly due to fact, that is necessary for given EE to create compatible RC. In our concept, the EE is responsible.

Definition at line 61 of file remeshingcrit.h.

Constructor & Destructor Documentation

◆ RemeshingCriteria()

◆ ~RemeshingCriteria()

oofem::RemeshingCriteria::~RemeshingCriteria ( )
virtual

Destructor.

Definition at line 53 of file remeshingcrit.C.

References commBuff, and communicator.

Member Function Documentation

◆ estimateMeshDensities()

virtual int oofem::RemeshingCriteria::estimateMeshDensities ( TimeStep * tStep)
pure virtual

Estimates the nodal densities.

Parameters
tStepTime step.

Implemented in oofem::CombinedZZSIRemeshingCriteria, oofem::DirectErrorIndicatorRC, oofem::HuertaRemeshingCriteria, and oofem::ZZRemeshingCriteria.

◆ giveDofManDensity()

virtual double oofem::RemeshingCriteria::giveDofManDensity ( int num)
pure virtual

Returns existing mesh size for given dof manager.

Parameters
numDofMan number.

Implemented in oofem::CombinedZZSIRemeshingCriteria, oofem::DirectErrorIndicatorRC, oofem::HuertaRemeshingCriteria, and oofem::ZZRemeshingCriteria.

◆ giveRemeshingStrategy()

virtual RemeshingStrategy oofem::RemeshingCriteria::giveRemeshingStrategy ( TimeStep * tStep)
pure virtual

Determines, if the remeshing is needed, and if needed, the type of strategy used.

Parameters
tStepTime step.

Implemented in oofem::CombinedZZSIRemeshingCriteria, oofem::DirectErrorIndicatorRC, oofem::HuertaRemeshingCriteria, and oofem::ZZRemeshingCriteria.

◆ giveRequiredDofManDensity()

virtual double oofem::RemeshingCriteria::giveRequiredDofManDensity ( int num,
TimeStep * tStep,
int relative = 0 )
pure virtual

Returns the required mesh size n given dof manager. The mesh density is defined as a required element size (in 1D the element length, in 2D the square from element area).

Parameters
numDofman number.
tStepTime step.
relativeIf zero, then actual density is returned, otherwise the relative density to current is returned.

Implemented in oofem::CombinedZZSIRemeshingCriteria, oofem::DirectErrorIndicatorRC, oofem::HuertaRemeshingCriteria, and oofem::ZZRemeshingCriteria.

Referenced by oofem::FreemInterface::createInput(), oofem::T3DInterface::createInput(), and oofem::Targe2Interface::createInput().

◆ reinitialize()

virtual void oofem::RemeshingCriteria::reinitialize ( )
inlinevirtual

Reimplemented in oofem::DirectErrorIndicatorRC.

Definition at line 106 of file remeshingcrit.h.

Member Data Documentation

◆ commBuff

CommunicatorBuff* oofem::RemeshingCriteria::commBuff
protected

◆ communicator

◆ ee

◆ initCommMap

bool oofem::RemeshingCriteria::initCommMap
protected

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

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011