OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::CombinedZZSIErrorEstimator Class Reference

The implementation of combined criteria: Zienkiewicz Zhu Error Estimator for elastic regime and scalar error indicator in non-linear regime. More...

#include <combinedzzsiee.h>

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

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 RemeshingCriteriagiveRemeshingCrit ()
 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...
 
DomaingiveDomain () 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 InterfacegiveInterface (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< RemeshingCriteriarc
 
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...
 
Domaindomain
 Link to domain object, useful for communicating with other FEM components. More...
 

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

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

Constructor.

Definition at line 64 of file combinedzzsiee.h.

References oofem::EET_CZZSI, and oofem::ErrorEstimator::eeType.

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

Destructor.

Definition at line 68 of file combinedzzsiee.h.

References estimateError(), giveElementError(), giveRemeshingCrit(), giveValue(), and initializeFrom().

Member Function Documentation

int oofem::CombinedZZSIErrorEstimator::estimateError ( EE_ErrorMode  mode,
TimeStep tStep 
)
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.

Parameters
modeError mode.
tStepTime 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().

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

Implements oofem::FEMComponent.

Definition at line 77 of file combinedzzsiee.h.

References setDomain().

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

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::ScalarErrorIndicator::giveElementError(), oofem::ZZErrorEstimator::giveElementError(), oofem::indicatorET, siee, and zzee.

Referenced by ~CombinedZZSIErrorEstimator().

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

Reimplemented from oofem::ErrorEstimator.

Definition at line 76 of file combinedzzsiee.h.

RemeshingCriteria * oofem::CombinedZZSIErrorEstimator::giveRemeshingCrit ( )
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().

double oofem::CombinedZZSIErrorEstimator::giveValue ( EE_ValueType  type,
TimeStep tStep 
)
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.

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

Implements oofem::ErrorEstimator.

Definition at line 78 of file combinedzzsiee.C.

References oofem::ZZErrorEstimator::giveValue(), and zzee.

Referenced by ~CombinedZZSIErrorEstimator().

IRResultType oofem::CombinedZZSIErrorEstimator::initializeFrom ( InputRecord ir)
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.

See also
IR_GIVE_FIELD
IR_GIVE_OPTIONAL_FIELD
Parameters
irInput record to initialize from.
Returns
IRResultType

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().

void oofem::CombinedZZSIErrorEstimator::setDomain ( Domain d)
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().

Member Data Documentation

ScalarErrorIndicator oofem::CombinedZZSIErrorEstimator::siee
protected

Definition at line 60 of file combinedzzsiee.h.

Referenced by estimateError(), giveElementError(), initializeFrom(), and setDomain().

ZZErrorEstimator oofem::CombinedZZSIErrorEstimator::zzee
protected

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

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:34 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011