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

The class representing Zienkiewicz-Zhu remeshing criteria. More...

#include <zzerrorestimator.h>

+ Inheritance diagram for oofem::ZZRemeshingCriteria:
+ Collaboration diagram for oofem::ZZRemeshingCriteria:

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

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
ErrorEstimatoree
 
CommunicatorBuffcommBuff
 Common Communicator buffer. More...
 
ProblemCommunicatorcommunicator
 Communicator. More...
 
bool initCommMap
 Communication init flag. 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 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.

Member Enumeration Documentation

Mode of receiver, allows to use it in more general situations.

Enumerator
stressBased 

Definition at line 186 of file zzerrorestimator.h.

Constructor & Destructor Documentation

oofem::ZZRemeshingCriteria::ZZRemeshingCriteria ( int  n,
ErrorEstimator e 
)

Constructor.

Definition at line 323 of file zzerrorestimator.C.

References mode, stateCounter, and stressBased.

virtual oofem::ZZRemeshingCriteria::~ZZRemeshingCriteria ( )
inlinevirtual

Destructor.

Definition at line 206 of file zzerrorestimator.h.

References oofem::ZZErrorEstimator::initializeFrom().

Member Function Documentation

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

Implements oofem::FEMComponent.

Definition at line 216 of file zzerrorestimator.h.

double oofem::ZZRemeshingCriteria::giveDofManDensity ( int  num)
virtual
virtual const char* oofem::ZZRemeshingCriteria::giveInputRecordName ( ) const
inlinevirtual
Returns
Input record name of the receiver.

Implements oofem::FEMComponent.

Definition at line 215 of file zzerrorestimator.h.

RemeshingStrategy oofem::ZZRemeshingCriteria::giveRemeshingStrategy ( TimeStep tStep)
virtual

Determines, if the remeshing is needed, and if needed, the type of strategy used.

Parameters
tStepTime step.

Implements oofem::RemeshingCriteria.

Definition at line 351 of file zzerrorestimator.C.

References estimateMeshDensities(), and remeshingStrategy.

Referenced by oofem::CombinedZZSIRemeshingCriteria::giveRemeshingStrategy().

double oofem::ZZRemeshingCriteria::giveRequiredDofManDensity ( int  num,
TimeStep tStep,
int  relative = 0 
)
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).

Parameters
numDofman number.
tStepTime step.
relativeIf 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().

IRResultType oofem::ZZRemeshingCriteria::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::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().

Member Data Documentation

double oofem::ZZRemeshingCriteria::minElemSize
protected

Minimum element size allowed.

Definition at line 200 of file zzerrorestimator.h.

Referenced by giveRequiredDofManDensity(), and initializeFrom().

ZZRemeshingCriteriaModeType oofem::ZZRemeshingCriteria::mode
protected

Mode of receiver.

Definition at line 196 of file zzerrorestimator.h.

Referenced by estimateMeshDensities(), and ZZRemeshingCriteria().

FloatArray oofem::ZZRemeshingCriteria::nodalDensities
protected

Array of nodal mesh densities.

Definition at line 190 of file zzerrorestimator.h.

Referenced by estimateMeshDensities(), and giveRequiredDofManDensity().

RemeshingStrategy oofem::ZZRemeshingCriteria::remeshingStrategy
protected

Remeshing strategy proposed.

Definition at line 192 of file zzerrorestimator.h.

Referenced by estimateMeshDensities(), and giveRemeshingStrategy().

double oofem::ZZRemeshingCriteria::requiredError
protected

Required error to obtain.

Definition at line 198 of file zzerrorestimator.h.

Referenced by estimateMeshDensities(), and initializeFrom().

StateCounterType oofem::ZZRemeshingCriteria::stateCounter
protected

Actual values (densities) state counter.

Definition at line 194 of file zzerrorestimator.h.

Referenced by estimateMeshDensities(), and ZZRemeshingCriteria().


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:44 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011