OOFEM 3.0
Loading...
Searching...
No Matches
initialcondition.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 initial_h
36#define initial_h
37
39#include "dictionary.h"
40#include "bcvaltype.h"
41#include "valuemodetype.h"
42#include "scalarfunction.h"
43#include "field.h"
44
46
47#define _IFT_InitialCondition_Name "initialcondition"
48#define _IFT_InitialCondition_conditions "conditions"
49#define _IFT_InitialCondition_valType "valtype"
50#define _IFT_InitialCondition_set "set"
51#define _IFT_InitialCondition_dofs "dofs"
52
53#define _IFT_InitialCondition_f "f"
54#define _IFT_InitialCondition_dfdt "dfdt"
55#define _IFT_InitialCondition_d2fdt2 "d2fdt2"
56
57#define _IFT_InitialCondition_field "field"
59
60namespace oofem {
61class IntArray;
62
87{
88private:
90 int mode = 0;
93
94 // Expression for initial condition value
96 // Expression for initial condition velocity
98 // Expression for initial condition acceleration
100
101 // external field for initial condition values (if mode == 2)
103 FieldType fFieldType=FieldType::FT_Unknown;
104
105
109 int set;
112
113public:
121 virtual ~InitialCondition() { }
122
129 double give(ValueModeType mode, const FloatArray& coords);
137 bcValType giveICValType() const { return this->valType; }
143 int hasConditionOn(int u);
149 int hasConditionOn(ValueModeType type);
156 virtual void scale(ValueModeType type, double s);
157
161 int giveSetNumber() { return set; }
162
166 const IntArray &giveDofIDs() { return dofIDs; }
167
168 void printYourself() override;
169
170 void initializeFrom(InputRecord &ir) override;
171 const char *giveClassName() const override { return "InitialCondition"; }
172 const char *giveInputRecordName() const override { return _IFT_InitialCondition_Name; }
173};
174} // end namespace oofem
175#endif // initial_h
FEMComponent(int n, Domain *d)
Definition femcmpnn.h:88
int mode
flag indicating compatibility (initialValueDictionary) mode (0 uses initialValueDictionary,...
virtual ~InitialCondition()
Destructor.
ScalarFunction accelerationExpr
bcValType valType
Physical meaning of bc value.
InitialCondition(int i, Domain *d)
const char * giveClassName() const override
Dictionary initialValueDictionary
Dictionary of initial (constant) values (deprecated).
bcValType giveICValType() const
IntArray dofIDs
List of dof ids that IC is applied to.
const char * giveInputRecordName() const override
const IntArray & giveDofIDs()
#define _IFT_InitialCondition_Name
FieldType
Physical type of field.
Definition field.h:64
bcValType
Type determining the type of general boundary condition.
Definition bcvaltype.h:40
@ UnknownBVT
Definition bcvaltype.h:41
std::shared_ptr< Field > FieldPtr
Definition field.h:78
#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