OOFEM 3.0
Loading...
Searching...
No Matches
directerrorindicatorrc.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 directerrorindicatorrc_h
36#define directerrorindicatorrc_h
37
38#include "interface.h"
39#include "remeshingcrit.h"
40#include "floatarray.h"
41#include "statecountertype.h"
42
43#include <map>
44
46
47#define _IFT_DirectErrorIndicatorRC_minlim "minlim"
48#define _IFT_DirectErrorIndicatorRC_maxlim "maxlim"
49#define _IFT_DirectErrorIndicatorRC_mindens "mindens"
50#define _IFT_DirectErrorIndicatorRC_maxdens "maxdens"
51#define _IFT_DirectErrorIndicatorRC_defdens "defdens"
52#define _IFT_DirectErrorIndicatorRC_remeshingdensityratio "remeshingdensityratio"
54
55namespace oofem {
56class Domain;
57class Element;
58class TimeStep;
59class ProblemCommunicator;
60class ProcessCommunicator;
61
71{
72protected:
87#ifdef __MPI_PARALLEL_MODE
88 std :: map< int, double >sharedDofManDensities;
89 std :: map< int, double >sharedDofManIndicatorVals;
91#endif
92
93public:
97
98 double giveRequiredDofManDensity(int num, TimeStep *tStep, int relative = 0) override;
99 double giveDofManDensity(int num) override;
100
101 void initializeFrom(InputRecord &ir) override;
102
103 int estimateMeshDensities(TimeStep *tStep) override;
108
109 void giveNodeChar(int inode, TimeStep *tStep, double &indicatorVal, double &currDensity);
111 void reinitialize() override;
112
113 void setDomain(Domain *d) override;
114
115 const char *giveInputRecordName() const override { return nullptr; }
116 const char *giveClassName() const override { return "DirectErrorIndicatorRC"; }
117
118protected:
119 double giveLocalDofManDensity(int num);
125 double giveDofManIndicator(int num, TimeStep *tStep);
126 double giveLocalDofManIndicator(int num, TimeStep *tStep);
127#ifdef __MPI_PARALLEL_MODE
131
135#endif
136};
137} // end namespace oofem
138#endif // directerrorindicatorrc_h
int unpackSharedDofManLocalDensities(ProcessCommunicator &processComm)
double giveLocalDofManIndicator(int num, TimeStep *tStep)
int packSharedDofManLocalIndicatorVals(ProcessCommunicator &processComm)
const char * giveClassName() const override
StateCounterType stateCounter
Actual values (densities) state counter.
const char * giveInputRecordName() const override
int packSharedDofManLocalDensities(ProcessCommunicator &processComm)
double zeroIndicatorDensity
Default mesh density for Indicator value < minIndicatorLimit.
void exchangeDofManIndicatorVals(TimeStep *tStep)
RemeshingStrategy giveRemeshingStrategy(TimeStep *tStep) override
double giveRequiredDofManDensity(int num, TimeStep *tStep, int relative=0) override
std ::map< int, double > sharedDofManDensities
double giveDofManIndicator(int num, TimeStep *tStep)
double giveDofManDensity(int num) override
void initializeFrom(InputRecord &ir) override
std ::map< int, double > sharedDofManIndicatorVals
int unpackSharedDofManLocalIndicatorVals(ProcessCommunicator &processComm)
void giveNodeChar(int inode, TimeStep *tStep, double &indicatorVal, double &currDensity)
double giveMinIndicatorLimit()
Returns the minimum indicator limit.
DirectErrorIndicatorRC(int n, ErrorEstimator *e)
Constructor.
int estimateMeshDensities(TimeStep *tStep) override
RemeshingCriteria(int n, ErrorEstimator *e)
Constructor.
long StateCounterType
StateCounterType type used to indicate solution state.
RemeshingStrategy
Type representing the remeshing strategy.

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