OOFEM 3.0
Loading...
Searching...
No Matches
zzerrorestimator.h
Go to the documentation of this file.
1/*
2 *
3 * ##### ##### ###### ###### ### ###
4 * ## ## ## ## ## ## ## ### ##
5 * ## ## ## ## #### #### ## # ##
6 * ## ## ## ## ## ## ## ##
7 * ## ## ## ## ## ## ## ##
8 * ##### ##### ## ###### ## ##
9 *
10 *
11 * OOFEM : Object Oriented Finite Element Code
12 *
13 * Copyright (C) 1993 - 2025 Borek Patzak
14 *
15 *
16 *
17 * Czech Technical University, Faculty of Civil Engineering,
18 * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34
35#ifndef zzerrorestimator_h
36#define zzerrorestimator_h
37
38#include "errorestimator.h"
39#include "interface.h"
40#include "internalstatetype.h"
41#include "floatarray.h"
42#include "statecountertype.h"
43#include "element.h"
44#include "integrationrule.h"
45#include "remeshingcrit.h"
46
48
49#define _IFT_ZZErrorEstimator_Name "zz"
50#define _IFT_ZZErrorEstimator_normtype "normtype"
51#define _IFT_ZZErrorEstimator_recoverytype "recoverytype"
53
55
56#define _IFT_ZZRemeshingCriteria_requirederror "requirederror"
57#define _IFT_ZZRemeshingCriteria_minelemsize "minelemsize"
59
60namespace oofem {
61#define ZZErrorEstimator_ElementResultCashed
62
63class Element;
64class GaussPoint;
65
83{
84public:
89
90protected:
97#ifdef ZZErrorEstimator_ElementResultCashed
100#endif
105
108
109public:
117
118 virtual ~ZZErrorEstimator() { }
119
120 double giveElementError(EE_ErrorType type, Element *elem, TimeStep *tStep) override;
121 double giveValue(EE_ValueType type, TimeStep *tStep) override;
122
123 int estimateError(EE_ErrorMode mode, TimeStep *tStep) override;
125
126 void initializeFrom(InputRecord &ir) override;
127 const char *giveClassName() const override { return "ZZErrorEstimator"; }
128 const char *giveInputRecordName() const override { return _IFT_ZZErrorEstimator_Name; }
129};
130
131
137{
138private:
140
141public:
144
153 virtual void ZZErrorEstimatorI_computeElementContributions(double &eNorm, double &sNorm, ZZErrorEstimator :: NormType norm,
154 InternalStateType type, TimeStep *tStep);
162
168 answer = sig;
169 }
170};
171
172
184{
185public:
188
189protected:
202
203public:
208
209 double giveRequiredDofManDensity(int num, TimeStep *tStep, int relative = 0) override;
210 double giveDofManDensity(int num) override;
212 int estimateMeshDensities(TimeStep *tStep) override;
213 void initializeFrom(InputRecord &ir) override;
214
215 const char *giveInputRecordName() const override { return nullptr; }
216 const char *giveClassName() const override { return "ZZErrorEstimator"; }
217};
218
219} // end namespace oofem
220#endif // zzerrorestimator_h
virtual IntegrationRule * giveDefaultIntegrationRulePtr()
Definition element.h:886
ErrorEstimatorType eeType
ErrorEstimator(int n, Domain *d)
Constructor.
Interface()
Constructor.
Definition interface.h:86
RemeshingCriteria(int n, ErrorEstimator *e)
Constructor.
virtual void ZZErrorEstimatorI_computeElementContributions(double &eNorm, double &sNorm, ZZErrorEstimator ::NormType norm, InternalStateType type, TimeStep *tStep)
ZZErrorEstimatorInterface(Element *element)
Constructor.
virtual IntegrationRule * ZZErrorEstimatorI_giveIntegrationRule()
virtual void ZZErrorEstimatorI_computeLocalStress(FloatArray &answer, FloatArray &sig)
double globalSNorm
Global norm of quantity which error is evaluated.
NodalRecoveryType nodalRecoveryType
Nodal recovery type.
FloatArray eNorms
Cache storing element norms.
RemeshingCriteria * giveRemeshingCrit() override
virtual ~ZZErrorEstimator()
Destructor.
double globalErrorEstimate
Global error estimate (relative).
NormType
Type of norm used.
NormType normType
Type of norm used.
NodalRecoveryType
Nodal recovery type.
double giveElementError(EE_ErrorType type, Element *elem, TimeStep *tStep) override
double giveValue(EE_ValueType type, TimeStep *tStep) override
ZZErrorEstimator(int n, Domain *d)
Constructor.
void initializeFrom(InputRecord &ir) override
int estimateError(EE_ErrorMode mode, TimeStep *tStep) override
double globalENorm
Global error norm.
const char * giveInputRecordName() const override
const char * giveClassName() const override
StateCounterType stateCounter
Actual state counter.
ZZRemeshingCriteriaModeType mode
Mode of receiver.
RemeshingStrategy giveRemeshingStrategy(TimeStep *tStep) override
const char * giveInputRecordName() const override
RemeshingStrategy remeshingStrategy
Remeshing strategy proposed.
StateCounterType stateCounter
Actual values (densities) state counter.
void initializeFrom(InputRecord &ir) override
ZZRemeshingCriteria(int n, ErrorEstimator *e)
Constructor.
int estimateMeshDensities(TimeStep *tStep) override
ZZRemeshingCriteriaModeType
Mode of receiver, allows to use it in more general situations.
double requiredError
Required error to obtain.
virtual ~ZZRemeshingCriteria()
Destructor.
const char * giveClassName() const override
double minElemSize
Minimum element size allowed.
double giveRequiredDofManDensity(int num, TimeStep *tStep, int relative=0) override
double giveDofManDensity(int num) override
FloatArray nodalDensities
Array of nodal mesh densities.
double norm(const FloatArray &x)
long StateCounterType
StateCounterType type used to indicate solution state.
RemeshingStrategy
Type representing the remeshing strategy.
@ EET_ZZEE
Zienkiewicz-Zhu EE.
#define _IFT_ZZErrorEstimator_Name

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