OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
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 - 2013 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 
44 
45 #define _IFT_InitialCondition_Name "initialcondition"
46 #define _IFT_InitialCondition_conditions "conditions"
47 #define _IFT_InitialCondition_valType "valtype"
48 #define _IFT_InitialCondition_set "set"
49 #define _IFT_InitialCondition_dofs "dofs"
50 
51 
52 namespace oofem {
53 class IntArray;
54 
78 class OOFEM_EXPORT InitialCondition : public FEMComponent
79 {
80 private:
86  int set;
89 
90 public:
96  InitialCondition(int i, Domain * d) : FEMComponent(i, d), initialValueDictionary() { }
98  virtual ~InitialCondition() { }
99 
106  double give(ValueModeType mode);
114  bcValType giveICValType() const { return this->valType; }
120  int hasConditionOn(int u);
126  int hasConditionOn(ValueModeType type);
133  virtual void scale(ValueModeType type, double s);
134 
138  int giveSetNumber() { return set; }
139 
143  const IntArray &giveDofIDs() { return dofIDs; }
144 
145  // Overloaded methods:
146  virtual IRResultType initializeFrom(InputRecord *ir);
147  virtual void printYourself();
148  virtual const char *giveClassName() const { return "InitialCondition"; }
149  virtual const char *giveInputRecordName() const { return _IFT_InitialCondition_Name; }
150 };
151 } // end namespace oofem
152 #endif // initial_h
const IntArray & giveDofIDs()
Gives the set number which initial condition is applied to.
Class and object Domain.
Definition: domain.h:115
Class implementing general initial condition.
bcValType
Type determining the type of general boundary condition.
Definition: bcvaltype.h:40
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
virtual const char * giveClassName() const
virtual ~InitialCondition()
Destructor.
Class implementing an array of integers.
Definition: intarray.h:61
#define _IFT_InitialCondition_Name
IntArray dofIDs
List of dof ids that IC is applied to.
This class implements a linked list whose entries are Pairs (see below).
Definition: dictionary.h:58
bcValType valType
Physical meaning of bc value.
Dictionary initialValueDictionary
Dictionary of initial values.
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
bcValType giveICValType() const
Returns receiver load type.
int giveSetNumber()
Gives the set number which initial condition is applied to.
InitialCondition(int i, Domain *d)
Creates initial condition with given number, belonging to given domain.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual const char * giveInputRecordName() const
The top abstract class of all classes constituting the finite element mesh.
Definition: femcmpnn.h:76

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:29 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011