OOFEM 3.0
Loading...
Searching...
No Matches
errorestimator.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
36// *****************************************
37// *** CLASS ERROR ESTIMATOR (INDICATOR) ***
38// *****************************************
39
40#ifndef errorestimator_h
41#define errorestimator_h
42
43#include "femcmpnn.h"
44#include "interface.h"
45#include "errorestimatortype.h"
46#include "intarray.h"
47#include "internalstatetype.h"
48#include "remeshingcrit.h"
49
50#include <memory>
51
53
54#define _IFT_ErrorEstimator_regionskipmap "regionskipmap"
55#define _IFT_ErrorEstimator_IStype "istype"
57
58namespace oofem {
59class Domain;
60class Element;
61class TimeStep;
62class RemeshingCriteria;
63
70
71
81{
82protected:
84 std :: unique_ptr< RemeshingCriteria > rc;
96
97public:
99 ErrorEstimator(int n, Domain * d);
101 virtual ~ErrorEstimator();
103 void setDomain(Domain *d) override;
111 virtual double giveElementError(EE_ErrorType type, Element *elem, TimeStep *tStep) = 0;
120 virtual double giveValue(EE_ValueType type, TimeStep *tStep) = 0;
133 virtual int estimateError(EE_ErrorMode mode, TimeStep *tStep) = 0;
138
143
151 bool skipRegion(int reg);
152 virtual void reinitialize();
153
154 void initializeFrom(InputRecord &ir) override;
155};
156} // end namespace oofem
157#endif // errorestimator_h
ErrorEstimatorType eeType
int skippedNelems
Number of skipped elements.
virtual double giveElementError(EE_ErrorType type, Element *elem, TimeStep *tStep)=0
ErrorEstimatorType giveErrorEstimatorType() const
ErrorEstimator(int n, Domain *d)
Constructor.
std ::unique_ptr< RemeshingCriteria > rc
void setDomain(Domain *d) override
Sets Domain; should also re-initialize attributes if necessary.
virtual RemeshingCriteria * giveRemeshingCrit()=0
virtual int estimateError(EE_ErrorMode mode, TimeStep *tStep)=0
InternalStateType IStype
Internal state type of variable to get internal forces.
virtual double giveValue(EE_ValueType type, TimeStep *tStep)=0
FEMComponent(int n, Domain *d)
Definition femcmpnn.h:88
@ equilibratedEM
@ globalErrorEEV
@ relativeErrorEstimateEEV
@ globalNormEEV
@ globalWeightedErrorEEV
@ primaryUnknownET
@ internalStressET
#define OOFEM_EXPORT
Definition oofemcfg.h:7

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