OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
The implementation of combined criteria: Zienkiewicz Zhu Error Estimator for elastic regime and scalar error indicator in non-linear regime. More...
#include <combinedzzsiee.h>
Public Member Functions | |
CombinedZZSIErrorEstimator (int n, Domain *d) | |
Constructor. More... | |
virtual | ~CombinedZZSIErrorEstimator () |
Destructor. More... | |
virtual double | giveElementError (EE_ErrorType type, Element *elem, TimeStep *tStep) |
Returns the element error. More... | |
virtual double | giveValue (EE_ValueType type, TimeStep *tStep) |
Returns the characteristic value of given type. More... | |
virtual int | estimateError (EE_ErrorMode mode, TimeStep *tStep) |
Estimates the error on associated domain at given time step. More... | |
virtual RemeshingCriteria * | giveRemeshingCrit () |
Returns reference to associated remeshing criteria. 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 |
virtual void | setDomain (Domain *d) |
Sets Domain; should also re-initialize attributes if necessary. More... | |
Public Member Functions inherited from oofem::ErrorEstimator | |
ErrorEstimator (int n, Domain *d) | |
Constructor. More... | |
virtual | ~ErrorEstimator () |
Destructor. More... | |
int | giveNumberOfSkippedElements () |
Returns number of elements skipped in error estimation. More... | |
ErrorEstimatorType | giveErrorEstimatorType () const |
Returns error estimation type of receiver. More... | |
bool | skipRegion (int reg) |
Returns nonzero if region has been skipped in error estimation (user option). 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 |
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 | |
ZZErrorEstimator | zzee |
ScalarErrorIndicator | siee |
Protected Attributes inherited from oofem::ErrorEstimator | |
ErrorEstimatorType | eeType |
std::unique_ptr< RemeshingCriteria > | rc |
IntArray | regionSkipMap |
Map indicating regions to skip (region - cross section model). More... | |
int | skippedNelems |
Number of skipped elements. More... | |
InternalStateType | IStype |
Internal state type of variable to get internal forces. 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 implementation of combined criteria: Zienkiewicz Zhu Error Estimator for elastic regime and scalar error indicator in non-linear regime.
The basic task is to evaluate the stress error on associated domain. The algorithm is written in general way, so it is possible to to evaluate different errors (for example temperature error). Then corresponding member attribute identifying the type of quantity used should be declared and initialized (for example in instanciateYourself() service). Then the modification is required only when requesting element contributions.
Definition at line 56 of file combinedzzsiee.h.
|
inline |
Constructor.
Definition at line 64 of file combinedzzsiee.h.
References oofem::EET_CZZSI, and oofem::ErrorEstimator::eeType.
|
inlinevirtual |
Destructor.
Definition at line 68 of file combinedzzsiee.h.
References estimateError(), giveElementError(), giveRemeshingCrit(), giveValue(), and initializeFrom().
|
virtual |
Estimates the error on associated domain at given time step.
The estimated values can be requested using giveElementError and giveValue methods. The type of errors provided depends on error estimator type implementing the service.
mode | Error mode. |
tStep | Time step. |
Implements oofem::ErrorEstimator.
Definition at line 59 of file combinedzzsiee.C.
References oofem::ScalarErrorIndicator::estimateError(), oofem::ZZErrorEstimator::estimateError(), siee, and zzee.
Referenced by giveElementError(), and ~CombinedZZSIErrorEstimator().
|
inlinevirtual |
Implements oofem::FEMComponent.
Definition at line 77 of file combinedzzsiee.h.
References setDomain().
|
virtual |
Returns the element error.
The estimateError service should be called before.
type | Error type. |
elem | Element for which error requested. |
tStep | Time step. |
Implements oofem::ErrorEstimator.
Definition at line 67 of file combinedzzsiee.C.
References oofem::equilibratedEM, estimateError(), oofem::ScalarErrorIndicator::giveElementError(), oofem::ZZErrorEstimator::giveElementError(), oofem::indicatorET, siee, and zzee.
Referenced by ~CombinedZZSIErrorEstimator().
|
inlinevirtual |
Reimplemented from oofem::ErrorEstimator.
Definition at line 76 of file combinedzzsiee.h.
|
virtual |
Returns reference to associated remeshing criteria.
Implements oofem::ErrorEstimator.
Definition at line 84 of file combinedzzsiee.C.
References oofem::ErrorEstimator::rc.
Referenced by initializeFrom(), setDomain(), and ~CombinedZZSIErrorEstimator().
|
virtual |
Returns the characteristic value of given type.
The estimateError service should be called before. This method is supposed to be used by associated remeshingCriteria to access some characteristic values already computed or known at error estimator level.
type | Error type. |
tStep | Time step. |
Implements oofem::ErrorEstimator.
Definition at line 78 of file combinedzzsiee.C.
References oofem::ZZErrorEstimator::giveValue(), and zzee.
Referenced by ~CombinedZZSIErrorEstimator().
|
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::ErrorEstimator.
Definition at line 94 of file combinedzzsiee.C.
References giveRemeshingCrit(), oofem::ScalarErrorIndicator::initializeFrom(), oofem::ZZErrorEstimator::initializeFrom(), oofem::FEMComponent::initializeFrom(), siee, and zzee.
Referenced by ~CombinedZZSIErrorEstimator(), and oofem::CombinedZZSIRemeshingCriteria::~CombinedZZSIRemeshingCriteria().
|
virtual |
Sets Domain; should also re-initialize attributes if necessary.
Reimplemented from oofem::ErrorEstimator.
Definition at line 49 of file combinedzzsiee.C.
References giveRemeshingCrit(), oofem::ErrorEstimator::setDomain(), oofem::FEMComponent::setDomain(), siee, and zzee.
Referenced by giveClassName(), and oofem::CombinedZZSIRemeshingCriteria::giveClassName().
|
protected |
Definition at line 60 of file combinedzzsiee.h.
Referenced by estimateError(), giveElementError(), initializeFrom(), and setDomain().
|
protected |
Definition at line 59 of file combinedzzsiee.h.
Referenced by estimateError(), giveElementError(), giveValue(), initializeFrom(), and setDomain().