OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
boundaryload.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 boundaryload_h
36 #define boundaryload_h
37 
38 #include "load.h"
39 #include "bctype.h"
40 #include "valuemodetype.h"
41 #include "dictionary.h"
42 #include "scalarfunction.h"
43 
45 
46 #define _IFT_BoundaryLoad_loadtype "loadtype"
47 #define _IFT_BoundaryLoad_cstype "cstype"
48 #define _IFT_BoundaryLoad_properties "properties"
49 #define _IFT_BoundaryLoad_propertyTimeFunctions "propertytf"
50 #define _IFT_BoundaryLoad_propertyMultExpr "propertymultexpr"
51 #define _IFT_BoundaryLoad_temperOffset "temperoffset"
52 
53 
54 namespace oofem {
55 class TimeStep;
56 
110 class OOFEM_EXPORT BoundaryLoad : public Load
111 {
112 public:
113  CoordSystType CST_UpdatedGlobal;
123  };
124 
125 protected:
129  CoordSystType coordSystemType;
135  double temperOffset;
136 
137 public:
143  BoundaryLoad(int i, Domain * d);
144 
145  virtual void computeValueAt(FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode);
149  virtual int giveApproxOrder() = 0;
150 
151  virtual CoordSystType giveCoordSystMode() { return coordSystemType; }
157  IRResultType initializeFrom(InputRecord *ir);
158  virtual void giveInputRecord(DynamicInputRecord &input);
166  virtual bcType giveType() const { return lType; }
167  virtual double giveProperty(int aProperty, TimeStep *tStep, const std :: map< std :: string, FunctionArgument > &valDict);
168  virtual double giveProperty(int aProperty, TimeStep *tStep);
170  virtual double giveTemperOffset(void);
173 
174 protected:
182  virtual void computeNArray(FloatArray &answer, const FloatArray &coords) const = 0;
189  virtual void computeComponentArrayAt(FloatArray &answer, TimeStep *tStep, ValueModeType mode);
190 };
191 
192 
200 class OOFEM_EXPORT EdgeLoad: public BoundaryLoad
201 {
202 public:
208  EdgeLoad(int i, Domain * d) : BoundaryLoad (i, d) {}
209 };
210 
218 class OOFEM_EXPORT SurfaceLoad: public BoundaryLoad
219 {
220 public:
226  SurfaceLoad(int i, Domain * d) : BoundaryLoad (i, d) {}
227 };
228 
229 
230 
231 
232 
233 } // end namespace oofem
234 #endif // boundaryload_h
Global mode i.e. load is specified in global c.s.
Definition: boundaryload.h:120
Class and object Domain.
Definition: domain.h:115
Dictionary propertyTimeFunctDictionary
Optional time-functions for properties.
Definition: boundaryload.h:133
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
Local entity (edge or surface) coordinate system.
Definition: boundaryload.h:121
virtual CoordSystType giveCoordSystMode()
Returns receiver&#39;s coordinate system.
Definition: boundaryload.h:151
CoordSystType CST_UpdatedGlobal
Definition: boundaryload.h:113
SurfaceLoad(int i, Domain *d)
Constructor.
Definition: boundaryload.h:226
Load is specified in global c.s. and follows the deformation (only supported on el. level)
Definition: boundaryload.h:122
bcType
Type representing the type of bc.
Definition: bctype.h:40
Abstract base class representing a boundary load (force, momentum, ...) that acts directly on a bound...
Definition: boundaryload.h:110
Abstract base class representing an edge load (force, momentum, ...) that acts directly on a edge bou...
Definition: boundaryload.h:200
ScalarFunction propertyMultExpr
Expression to multiply all properties.
Definition: boundaryload.h:172
virtual bcType giveType() const
Returns receiver load type.
Definition: boundaryload.h:166
This class implements a linked list whose entries are Pairs (see below).
Definition: dictionary.h:58
Class representing vector of real numbers.
Definition: floatarray.h:82
Abstract base class representing a surface load (force, momentum, ...) that acts directly on a surfac...
Definition: boundaryload.h:218
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Dictionary propertyDictionary
Additional b.c properties.
Definition: boundaryload.h:131
Implementation of Scalar function.
Class representing the general Input Record.
Definition: inputrecord.h:101
double temperOffset
Temperature offset with regards to Kelvin. Default is 273.15.
Definition: boundaryload.h:135
BL_CoordSystType
Load coordinate system type.
Definition: boundaryload.h:119
Class representing the a dynamic Input Record.
bcType lType
Load type (its physical meaning).
Definition: boundaryload.h:127
Load is base abstract class for all loads.
Definition: load.h:61
EdgeLoad(int i, Domain *d)
Constructor.
Definition: boundaryload.h:208
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing solution step.
Definition: timestep.h:80
CoordSystType coordSystemType
Load coordinate system.
Definition: boundaryload.h:129

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:27 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011