35 #include "../sm/ErrorEstimators/combinedzzsiee.h" 44 #define CZZSI_ZERO_INDICATOR_TOL 1.e-3 90 return this->
rc.get();
106 zzrc(n, e), dirc(n, e)
112 double indicatorVal, currDensity;
113 double proposedDensity;
123 proposedDensity =
min(proposedDensity, currDensity);
126 return proposedDensity / currDensity;
128 return proposedDensity;
180 double density = 0.0;
185 for (
int i = 1; i <= isize; i++ ) {
void setDomain(Domain *d)
Sets Domain; should also re-initialize attributes if necessary.
The base class for all remeshing criteria.
virtual int estimateError(EE_ErrorMode mode, TimeStep *tStep)
Estimates the error on associated domain at given time step.
virtual int estimateError(EE_ErrorMode mode, TimeStep *tStep)
Estimates the error on associated domain at given time step.
CombinedZZSIRemeshingCriteria(int n, ErrorEstimator *e)
Constructor.
ScalarErrorIndicator siee
Domain * domain
Link to domain object, useful for communicating with other FEM components.
double computeMeanSize()
Computes the size of the element defined as its length.
virtual double giveRequiredDofManDensity(int num, TimeStep *tStep, int relative=0)
Returns the required mesh size n given dof manager.
REGISTER_ErrorEstimator(CombinedZZSIErrorEstimator, EET_CZZSI)
std::unique_ptr< RemeshingCriteria > rc
int max(int i, int j)
Returns bigger value form two given decimals.
virtual void setDomain(Domain *d)
Sets Domain; should also re-initialize attributes if necessary.
virtual int estimateMeshDensities(TimeStep *tStep)
Estimates the nodal densities.
virtual double giveElementError(EE_ErrorType type, Element *elem, TimeStep *tStep)
Returns the element error.
ConnectivityTable * giveConnectivityTable()
Returns receiver's associated connectivity table.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Abstract base class for all finite elements.
virtual double giveDofManDensity(int num)
Returns existing mesh size for given dof manager.
EE_ErrorType
Type characterizing different type of element errors.
Class implementing an array of integers.
int & at(int i)
Coefficient access function.
#define CZZSI_ZERO_INDICATOR_TOL
The class represent the corresponding remeshing criteria to CombinedZZSIErrorEstimator.
virtual RemeshingStrategy giveRemeshingStrategy(TimeStep *tStep)
Determines, if the remeshing is needed, and if needed, the type of strategy used. ...
virtual int estimateMeshDensities(TimeStep *tStep)
Estimates the nodal densities.
virtual double giveElementError(EE_ErrorType type, Element *elem, TimeStep *tStep)
Returns the element error.
virtual double giveValue(EE_ValueType type, TimeStep *tStep)
Returns the characteristic value of given type.
virtual RemeshingStrategy giveRemeshingStrategy(TimeStep *tStep)
Determines, if the remeshing is needed, and if needed, the type of strategy used. ...
virtual RemeshingStrategy giveRemeshingStrategy(TimeStep *tStep)
Determines, if the remeshing is needed, and if needed, the type of strategy used. ...
Element * giveElement(int n)
Service for accessing particular domain fe element.
virtual void setDomain(Domain *d)
Sets associated Domain.
virtual double giveRequiredDofManDensity(int num, TimeStep *tStep, int relative=0)
Returns the required mesh size n given dof manager.
virtual void setDomain(Domain *d)
Sets associated Domain.
Class representing connectivity table.
virtual double giveValue(EE_ValueType type, TimeStep *tStep)
Returns the characteristic value of given type.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
The base class for all error estimation or error indicator algorithms.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
RemeshingStrategy
Type representing the remeshing strategy.
virtual double giveElementError(EE_ErrorType type, Element *elem, TimeStep *tStep)
Returns the element error.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
const IntArray * giveDofManConnectivityArray(int dofman)
EE_ErrorMode
Type determining whether temporary or equilibrated variables are used for error evaluation.
IRResultType
Type defining the return values of InputRecord reading operations.
virtual int estimateMeshDensities(TimeStep *tStep)
Estimates the nodal densities.
Combined ZZ and ScalarIndicator EE.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual int estimateError(EE_ErrorMode mode, TimeStep *tStep)
Estimates the error on associated domain at given time step.
double giveMinIndicatorLimit()
Returns the minimum indicator limit.
virtual RemeshingCriteria * giveRemeshingCrit()
Returns reference to associated remeshing criteria.
void giveNodeChar(int inode, TimeStep *tStep, double &indicatorVal, double &currDensity)
EE_ValueType
Type characterizing different type of errors.
virtual double giveRequiredDofManDensity(int num, TimeStep *tStep, int relative=0)
Returns the required mesh size n given dof manager.
int min(int i, int j)
Returns smaller value from two given decimals.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual void setDomain(Domain *d)
Sets associated Domain.
Class representing solution step.
double giveMinIndicatorDensity()
DirectErrorIndicatorRC dirc