OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
The class representing Zienkiewicz-Zhu remeshing criteria. More...
#include <zzerrorestimator.h>
Public Types | |
enum | ZZRemeshingCriteriaModeType { stressBased } |
Mode of receiver, allows to use it in more general situations. More... | |
Public Member Functions | |
ZZRemeshingCriteria (int n, ErrorEstimator *e) | |
Constructor. More... | |
virtual | ~ZZRemeshingCriteria () |
Destructor. More... | |
virtual double | giveRequiredDofManDensity (int num, TimeStep *tStep, int relative=0) |
Returns the required mesh size n given dof manager. More... | |
virtual double | giveDofManDensity (int num) |
Returns existing mesh size for given dof manager. More... | |
virtual RemeshingStrategy | giveRemeshingStrategy (TimeStep *tStep) |
Determines, if the remeshing is needed, and if needed, the type of strategy used. More... | |
virtual int | estimateMeshDensities (TimeStep *tStep) |
Estimates the nodal densities. More... | |
virtual IRResultType | initializeFrom (InputRecord *ir) |
Initializes receiver according to object description stored in input record. More... | |
virtual const char * | giveInputRecordName () const |
virtual const char * | giveClassName () const |
Public Member Functions inherited from oofem::RemeshingCriteria | |
RemeshingCriteria (int n, ErrorEstimator *e) | |
Constructor. More... | |
virtual | ~RemeshingCriteria () |
Destructor. More... | |
virtual void | reinitialize () |
Public Member Functions inherited from oofem::FEMComponent | |
FEMComponent (int n, Domain *d) | |
Regular constructor, creates component with given number and belonging to given domain. More... | |
virtual | ~FEMComponent () |
Virtual destructor. More... | |
Domain * | giveDomain () const |
virtual void | setDomain (Domain *d) |
Sets associated Domain. More... | |
int | giveNumber () const |
void | setNumber (int num) |
Sets number of receiver. More... | |
virtual void | updateLocalNumbering (EntityRenumberingFunctor &f) |
Local renumbering support. More... | |
virtual void | giveInputRecord (DynamicInputRecord &input) |
Setups the input record string of receiver. More... | |
virtual contextIOResultType | saveContext (DataStream &stream, ContextMode mode, void *obj=NULL) |
Stores receiver state to output stream. More... | |
virtual contextIOResultType | restoreContext (DataStream &stream, ContextMode mode, void *obj=NULL) |
Restores the receiver state previously written in stream. More... | |
virtual int | checkConsistency () |
Allows programmer to test some internal data, before computation begins. More... | |
virtual void | printOutputAt (FILE *file, TimeStep *tStep) |
Prints output of receiver to stream, for given time step. More... | |
virtual void | printYourself () |
Prints receiver state on stdout. Useful for debugging. More... | |
virtual Interface * | giveInterface (InterfaceType t) |
Interface requesting service. More... | |
std::string | errorInfo (const char *func) const |
Returns string for prepending output (used by error reporting macros). More... | |
Protected Attributes | |
FloatArray | nodalDensities |
Array of nodal mesh densities. More... | |
RemeshingStrategy | remeshingStrategy |
Remeshing strategy proposed. More... | |
StateCounterType | stateCounter |
Actual values (densities) state counter. More... | |
ZZRemeshingCriteriaModeType | mode |
Mode of receiver. More... | |
double | requiredError |
Required error to obtain. More... | |
double | minElemSize |
Minimum element size allowed. More... | |
Protected Attributes inherited from oofem::RemeshingCriteria | |
ErrorEstimator * | ee |
CommunicatorBuff * | commBuff |
Common Communicator buffer. More... | |
ProblemCommunicator * | communicator |
Communicator. More... | |
bool | initCommMap |
Communication init flag. More... | |
Protected Attributes inherited from oofem::FEMComponent | |
int | number |
Component number. More... | |
Domain * | domain |
Link to domain object, useful for communicating with other FEM components. More... | |
The class representing Zienkiewicz-Zhu remeshing criteria.
(Assumes that error is equally distributed between elements, then the requirement for max. permissible error can be translated into placing a limit on the error on each element.) The basic task is to evaluate the required mesh density (at nodes) on given domain, based on informations provided by the compatible error estimator.
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 182 of file zzerrorestimator.h.
Mode of receiver, allows to use it in more general situations.
Enumerator | |
---|---|
stressBased |
Definition at line 186 of file zzerrorestimator.h.
oofem::ZZRemeshingCriteria::ZZRemeshingCriteria | ( | int | n, |
ErrorEstimator * | e | ||
) |
Constructor.
Definition at line 323 of file zzerrorestimator.C.
References mode, stateCounter, and stressBased.
|
inlinevirtual |
Destructor.
Definition at line 206 of file zzerrorestimator.h.
References oofem::ZZErrorEstimator::initializeFrom().
|
virtual |
Estimates the nodal densities.
tStep | Time step. |
Implements oofem::RemeshingCriteria.
Definition at line 358 of file zzerrorestimator.C.
References oofem::FloatArray::at(), oofem::FEMComponent::domain, oofem::RemeshingCriteria::ee, giveDofManDensity(), oofem::ErrorEstimator::giveElementError(), oofem::Domain::giveElements(), oofem::Domain::giveNumberOfDofManagers(), oofem::Domain::giveNumberOfElements(), oofem::TimeStep::giveSolutionStateCounter(), oofem::ErrorEstimator::giveValue(), oofem::globalErrorEEV, oofem::globalNormEEV, oofem::indicatorET, oofem::internalStressET, oofem::min(), mode, nodalDensities, oofem::NoRemeshing_RS, OOFEM_ERROR, oofem::RemeshingFromPreviousState_RS, remeshingStrategy, requiredError, oofem::FloatArray::resize(), oofem::ErrorEstimator::skipRegion(), stateCounter, and stressBased.
Referenced by oofem::CombinedZZSIRemeshingCriteria::estimateMeshDensities(), giveRemeshingStrategy(), and giveRequiredDofManDensity().
|
inlinevirtual |
Implements oofem::FEMComponent.
Definition at line 216 of file zzerrorestimator.h.
|
virtual |
Returns existing mesh size for given dof manager.
num | DofMan number. |
Implements oofem::RemeshingCriteria.
Definition at line 469 of file zzerrorestimator.C.
References oofem::IntArray::at(), oofem::Element::computeMeanSize(), oofem::FEMComponent::domain, oofem::Domain::giveConnectivityTable(), oofem::ConnectivityTable::giveDofManConnectivityArray(), oofem::Domain::giveElement(), oofem::IntArray::giveSize(), and oofem::min().
Referenced by estimateMeshDensities(), and giveRequiredDofManDensity().
|
inlinevirtual |
Implements oofem::FEMComponent.
Definition at line 215 of file zzerrorestimator.h.
|
virtual |
Determines, if the remeshing is needed, and if needed, the type of strategy used.
tStep | Time step. |
Implements oofem::RemeshingCriteria.
Definition at line 351 of file zzerrorestimator.C.
References estimateMeshDensities(), and remeshingStrategy.
Referenced by oofem::CombinedZZSIRemeshingCriteria::giveRemeshingStrategy().
|
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).
num | Dofman number. |
tStep | Time step. |
relative | If zero, then actual density is returned, otherwise the relative density to current is returned. |
Implements oofem::RemeshingCriteria.
Definition at line 330 of file zzerrorestimator.C.
References oofem::FloatArray::at(), estimateMeshDensities(), giveDofManDensity(), oofem::max(), minElemSize, and nodalDensities.
Referenced by oofem::CombinedZZSIRemeshingCriteria::giveRequiredDofManDensity().
|
virtual |
Initializes receiver according to object description stored in input record.
This function is called immediately after creating object using constructor. Input record can be imagined as data record in component database belonging to receiver. Receiver may use value-name extracting functions to extract particular field from record.
ir | Input record to initialize from. |
Reimplemented from oofem::FEMComponent.
Definition at line 457 of file zzerrorestimator.C.
References _IFT_ZZRemeshingCriteria_minelemsize, _IFT_ZZRemeshingCriteria_requirederror, IR_GIVE_FIELD, oofem::IRRT_OK, minElemSize, and requiredError.
Referenced by oofem::CombinedZZSIRemeshingCriteria::initializeFrom().
|
protected |
Minimum element size allowed.
Definition at line 200 of file zzerrorestimator.h.
Referenced by giveRequiredDofManDensity(), and initializeFrom().
|
protected |
Mode of receiver.
Definition at line 196 of file zzerrorestimator.h.
Referenced by estimateMeshDensities(), and ZZRemeshingCriteria().
|
protected |
Array of nodal mesh densities.
Definition at line 190 of file zzerrorestimator.h.
Referenced by estimateMeshDensities(), and giveRequiredDofManDensity().
|
protected |
Remeshing strategy proposed.
Definition at line 192 of file zzerrorestimator.h.
Referenced by estimateMeshDensities(), and giveRemeshingStrategy().
|
protected |
Required error to obtain.
Definition at line 198 of file zzerrorestimator.h.
Referenced by estimateMeshDensities(), and initializeFrom().
|
protected |
Actual values (densities) state counter.
Definition at line 194 of file zzerrorestimator.h.
Referenced by estimateMeshDensities(), and ZZRemeshingCriteria().