OOFEM 3.0
Loading...
Searching...
No Matches
oofem::CombinedZZSIErrorEstimator Class Reference

#include <combinedzzsiee.h>

Inheritance diagram for oofem::CombinedZZSIErrorEstimator:
Collaboration diagram for oofem::CombinedZZSIErrorEstimator:

Public Member Functions

 CombinedZZSIErrorEstimator (int n, Domain *d)
 Constructor.
virtual ~CombinedZZSIErrorEstimator ()
 Destructor.
double giveElementError (EE_ErrorType type, Element *elem, TimeStep *tStep) override
double giveValue (EE_ValueType type, TimeStep *tStep) override
int estimateError (EE_ErrorMode mode, TimeStep *tStep) override
RemeshingCriteriagiveRemeshingCrit () override
void initializeFrom (InputRecord &ir) override
const char * giveInputRecordName () const override
const char * giveClassName () const override
void setDomain (Domain *d) override
Public Member Functions inherited from oofem::ErrorEstimator
 ErrorEstimator (int n, Domain *d)
 Constructor.
virtual ~ErrorEstimator ()
 Destructor.
void setDomain (Domain *d) override
 Sets Domain; should also re-initialize attributes if necessary.
int giveNumberOfSkippedElements ()
ErrorEstimatorType giveErrorEstimatorType () const
bool skipRegion (int reg)
virtual void reinitialize ()
void initializeFrom (InputRecord &ir) override
Public Member Functions inherited from oofem::FEMComponent
 FEMComponent (int n, Domain *d)
virtual ~FEMComponent ()=default
 Virtual destructor.
DomaingiveDomain () const
int giveNumber () const
void setNumber (int num)
virtual void updateLocalNumbering (EntityRenumberingFunctor &f)
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

ZZErrorEstimator zzee
ScalarErrorIndicator siee
Protected Attributes inherited from oofem::ErrorEstimator
ErrorEstimatorType eeType
std ::unique_ptr< RemeshingCriteriarc
IntArray regionSkipMap
int skippedNelems
 Number of skipped elements.
InternalStateType IStype
 Internal state type of variable to get internal forces.
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 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.

Constructor & Destructor Documentation

◆ CombinedZZSIErrorEstimator()

oofem::CombinedZZSIErrorEstimator::CombinedZZSIErrorEstimator ( int n,
Domain * d )
inline

◆ ~CombinedZZSIErrorEstimator()

virtual oofem::CombinedZZSIErrorEstimator::~CombinedZZSIErrorEstimator ( )
inlinevirtual

Destructor.

Definition at line 68 of file combinedzzsiee.h.

Member Function Documentation

◆ estimateError()

int oofem::CombinedZZSIErrorEstimator::estimateError ( EE_ErrorMode mode,
TimeStep * tStep )
overridevirtual

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.

Parameters
modeError mode.
tStepTime step.

Implements oofem::ErrorEstimator.

Definition at line 59 of file combinedzzsiee.C.

References siee, and zzee.

Referenced by giveElementError().

◆ giveClassName()

const char * oofem::CombinedZZSIErrorEstimator::giveClassName ( ) const
inlineoverridevirtual
Returns
Class name of the receiver.

Implements oofem::FEMComponent.

Definition at line 77 of file combinedzzsiee.h.

◆ giveElementError()

double oofem::CombinedZZSIErrorEstimator::giveElementError ( EE_ErrorType type,
Element * elem,
TimeStep * tStep )
overridevirtual

Returns the element error. The estimateError service should be called before.

Parameters
typeError type.
elemElement for which error requested.
tStepTime step.
Returns
Element error.

Implements oofem::ErrorEstimator.

Definition at line 67 of file combinedzzsiee.C.

References oofem::equilibratedEM, estimateError(), oofem::indicatorET, siee, and zzee.

◆ giveInputRecordName()

const char * oofem::CombinedZZSIErrorEstimator::giveInputRecordName ( ) const
inlineoverridevirtual
Returns
Input record name of the receiver.

Implements oofem::FEMComponent.

Definition at line 76 of file combinedzzsiee.h.

References _IFT_CombinedZZSIErrorEstimator_Name.

◆ giveRemeshingCrit()

RemeshingCriteria * oofem::CombinedZZSIErrorEstimator::giveRemeshingCrit ( )
overridevirtual

Returns reference to associated remeshing criteria.

Implements oofem::ErrorEstimator.

Definition at line 84 of file combinedzzsiee.C.

References oofem::ErrorEstimator::rc.

Referenced by initializeFrom(), and setDomain().

◆ giveValue()

double oofem::CombinedZZSIErrorEstimator::giveValue ( EE_ValueType type,
TimeStep * tStep )
overridevirtual

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.

Parameters
typeError type.
tStepTime step.
Returns
Error value for given type.

Implements oofem::ErrorEstimator.

Definition at line 78 of file combinedzzsiee.C.

References zzee.

◆ initializeFrom()

void oofem::CombinedZZSIErrorEstimator::initializeFrom ( InputRecord & ir)
overridevirtual

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. Note that initializeFrom may be called mutiple times.

See also
IR_GIVE_FIELD
IR_GIVE_OPTIONAL_FIELD
Parameters
irInput record to initialize from.
priorityPriority of the input record. This is used to determine the order of initialization

Reimplemented from oofem::FEMComponent.

Definition at line 94 of file combinedzzsiee.C.

References giveRemeshingCrit(), siee, and zzee.

◆ setDomain()

void oofem::CombinedZZSIErrorEstimator::setDomain ( Domain * d)
overridevirtual

Sets associated Domain

Parameters
dNew domain which receiver should belong to.

Reimplemented from oofem::FEMComponent.

Definition at line 49 of file combinedzzsiee.C.

References giveRemeshingCrit(), siee, and zzee.

Member Data Documentation

◆ siee

ScalarErrorIndicator oofem::CombinedZZSIErrorEstimator::siee
protected

◆ zzee

ZZErrorEstimator oofem::CombinedZZSIErrorEstimator::zzee
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