|
OOFEM 3.0
|
#include <huertaerrorestimator.h>
Public Types | |
| enum | HuertaRemeshingCriteriaModeType { primaryUnknownBased } |
| Mode of receiver, allows to use it in more general situations. More... | |
Public Member Functions | |
| HuertaRemeshingCriteria (int n, ErrorEstimator *e) | |
| Constructor. | |
| virtual | ~HuertaRemeshingCriteria () |
| Destructor. | |
| double | giveRequiredDofManDensity (int num, TimeStep *tStep, int relative=0) override |
| double | giveDofManDensity (int num) override |
| RemeshingStrategy | giveRemeshingStrategy (TimeStep *tStep) override |
| int | estimateMeshDensities (TimeStep *tStep) override |
| void | initializeFrom (InputRecord &ir) override |
| const char * | giveInputRecordName () const override |
| const char * | giveClassName () const override |
| Public Member Functions inherited from oofem::RemeshingCriteria | |
| RemeshingCriteria (int n, ErrorEstimator *e) | |
| Constructor. | |
| virtual | ~RemeshingCriteria () |
| Destructor. | |
| virtual void | reinitialize () |
| Public Member Functions inherited from oofem::FEMComponent | |
| FEMComponent (int n, Domain *d) | |
| virtual | ~FEMComponent ()=default |
| Virtual destructor. | |
| Domain * | giveDomain () const |
| virtual void | setDomain (Domain *d) |
| 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 Interface * | giveInterface (InterfaceType t) |
| std::string | errorInfo (const char *func) const |
| Returns string for prepending output (used by error reporting macros). | |
Protected Attributes | |
| FloatArray | nodalDensities |
| Array of nodal mesh densities. | |
| RemeshingStrategy | remeshingStrategy |
| Remeshing strategy proposed. | |
| StateCounterType | stateCounter |
| Actual values (densities) state counter. | |
| HuertaRemeshingCriteriaModeType | mode |
| Mode of receiver. | |
| double | requiredError |
| Required error to obtain. | |
| double | minElemSize |
| Minimum element size alloved. | |
| double | refineCoeff |
| Refinement coefficient. | |
| bool | noRemesh |
| Remeshing flag. | |
| bool | wError |
| Weighted error flag. | |
| Protected Attributes inherited from oofem::RemeshingCriteria | |
| ErrorEstimator * | ee |
| CommunicatorBuff * | commBuff |
| Common Communicator buffer. | |
| ProblemCommunicator * | communicator |
| Communicator. | |
| bool | initCommMap |
| Communication init flag. | |
| Protected Attributes inherited from oofem::FEMComponent | |
| int | number |
| Component number. | |
| Domain * | domain |
| Link to domain object, useful for communicating with other FEM components. | |
The class representing Huerta remeshing criteria. The basic task is to evaluate the required mesh density (at nodes) on given domain, based on information 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 285 of file huertaerrorestimator.h.
Mode of receiver, allows to use it in more general situations.
| Enumerator | |
|---|---|
| primaryUnknownBased | |
Definition at line 289 of file huertaerrorestimator.h.
| oofem::HuertaRemeshingCriteria::HuertaRemeshingCriteria | ( | int | n, |
| ErrorEstimator * | e ) |
Constructor.
Definition at line 682 of file huertaerrorestimator.C.
References mode, noRemesh, primaryUnknownBased, refineCoeff, oofem::RemeshingCriteria::RemeshingCriteria(), stateCounter, and wError.
|
inlinevirtual |
Destructor.
Definition at line 315 of file huertaerrorestimator.h.
|
overridevirtual |
Estimates the nodal densities.
| tStep | Time step. |
Implements oofem::RemeshingCriteria.
Definition at line 720 of file huertaerrorestimator.C.
References oofem::Element::computeMeanSize(), oofem::FloatArray::computeNorm(), oofem::FEMComponent::domain, oofem::RemeshingCriteria::ee, oofem::EET_HEE, oofem::Element::giveDefaultIntegrationRulePtr(), oofem::Element::giveDofManager(), giveDofManDensity(), oofem::Element::giveInterpolation(), oofem::FEInterpolation::giveInterpolationOrder(), oofem::Element::giveIPValue(), oofem::FEMComponent::giveNumber(), oofem::TimeStep::giveNumber(), oofem::Element::giveNumberOfDofManagers(), oofem::TimeStep::giveSolutionStateCounter(), oofem::globalErrorEEV, oofem::globalNelems, oofem::globalNormEEV, oofem::globalWeightedErrorEEV, oofem::max(), MAX_COARSE_RATE, oofem::min(), mode, nodalDensities, noRemesh, oofem::NoRemeshing_RS, OOFEM_ERROR, OOFEM_LOG_INFO, primaryUnknownBased, oofem::primaryUnknownET, refineCoeff, oofem::RemeshingFromPreviousState_RS, remeshingStrategy, requiredError, stateCounter, oofem::unknownET, and wError.
Referenced by giveRemeshingStrategy(), and giveRequiredDofManDensity().
|
inlineoverridevirtual |
Implements oofem::FEMComponent.
Definition at line 324 of file huertaerrorestimator.h.
|
overridevirtual |
Returns existing mesh size for given dof manager.
| num | DofMan number. |
Implements oofem::RemeshingCriteria.
Definition at line 1006 of file huertaerrorestimator.C.
References oofem::IntArray::at(), oofem::Element::computeMeanSize(), oofem::FEMComponent::domain, oofem::ConnectivityTable::giveDofManConnectivityArray(), oofem::IntArray::giveSize(), and oofem::min().
Referenced by estimateMeshDensities(), and giveRequiredDofManDensity().
|
inlineoverridevirtual |
Implements oofem::FEMComponent.
Definition at line 323 of file huertaerrorestimator.h.
|
overridevirtual |
Determines, if the remeshing is needed, and if needed, the type of strategy used.
| tStep | Time step. |
Implements oofem::RemeshingCriteria.
Definition at line 709 of file huertaerrorestimator.C.
References estimateMeshDensities(), and remeshingStrategy.
|
overridevirtual |
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 693 of file huertaerrorestimator.C.
References estimateMeshDensities(), giveDofManDensity(), oofem::max(), minElemSize, and nodalDensities.
|
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.
| ir | Input record to initialize from. |
| priority | Priority of the input record. This is used to determine the order of initialization |
Reimplemented from oofem::FEMComponent.
Definition at line 978 of file huertaerrorestimator.C.
References _IFT_HuertaRemeshingCriteria_minelemsize, _IFT_HuertaRemeshingCriteria_noremesh, _IFT_HuertaRemeshingCriteria_refinecoeff, _IFT_HuertaRemeshingCriteria_requirederror, _IFT_HuertaRemeshingCriteria_werror, IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, minElemSize, noRemesh, refineCoeff, requiredError, and wError.
|
protected |
Minimum element size alloved.
Definition at line 303 of file huertaerrorestimator.h.
Referenced by giveRequiredDofManDensity(), and initializeFrom().
|
protected |
Mode of receiver.
Definition at line 299 of file huertaerrorestimator.h.
Referenced by estimateMeshDensities(), and HuertaRemeshingCriteria().
|
protected |
Array of nodal mesh densities.
Definition at line 293 of file huertaerrorestimator.h.
Referenced by estimateMeshDensities(), and giveRequiredDofManDensity().
|
protected |
Remeshing flag.
Definition at line 307 of file huertaerrorestimator.h.
Referenced by estimateMeshDensities(), HuertaRemeshingCriteria(), and initializeFrom().
|
protected |
Refinement coefficient.
Definition at line 305 of file huertaerrorestimator.h.
Referenced by estimateMeshDensities(), HuertaRemeshingCriteria(), and initializeFrom().
|
protected |
Remeshing strategy proposed.
Definition at line 295 of file huertaerrorestimator.h.
Referenced by estimateMeshDensities(), and giveRemeshingStrategy().
|
protected |
Required error to obtain.
Definition at line 301 of file huertaerrorestimator.h.
Referenced by estimateMeshDensities(), and initializeFrom().
|
protected |
Actual values (densities) state counter.
Definition at line 297 of file huertaerrorestimator.h.
Referenced by estimateMeshDensities(), and HuertaRemeshingCriteria().
|
protected |
Weighted error flag.
Definition at line 309 of file huertaerrorestimator.h.
Referenced by estimateMeshDensities(), HuertaRemeshingCriteria(), and initializeFrom().