OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
load.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 load_h
36 #define load_h
37 
39 #include "intarray.h"
40 #include "floatarray.h"
41 #include "valuemodetype.h"
42 #include "error.h"
43 
45 
46 #define _IFT_Load_components "components"
47 #define _IFT_Load_dofexcludemask "dofexcludemask"
48 #define _IFT_Load_reference "reference"
49 
50 
51 namespace oofem {
61 class OOFEM_EXPORT Load : public GeneralBoundaryCondition
62 {
63 public:
73  };
74 
81  };
82 
83 protected:
97 
98 public:
99  // Marks the BC as a reference load.
100  bool reference;
101 
107  Load(int n, Domain * d);
109  virtual ~Load() { }
110 
119  virtual void computeComponentArrayAt(FloatArray &answer, TimeStep *tStep, ValueModeType mode);
127  virtual void computeValueAt(FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode) = 0;
137  virtual void computeValues(FloatArray &answer, TimeStep *tStep, const FloatArray &coords, const IntArray &dofids, ValueModeType mode);
144  int isDofExcluded(int index);
145 
146  virtual void scale(double s);
147 
151  virtual CoordSystType giveCoordSystMode() { return CST_Global; }
155  virtual FormulationType giveFormulationType() { return FT_Entity; }
159  virtual int giveApproxOrder() { return 0; }
166  virtual double giveProperty(int aProperty, TimeStep *tStep) {
167  OOFEM_ERROR("Not supported for this boundary condition.");
168  return 0;
169  }
170 
171  virtual IRResultType initializeFrom(InputRecord *ir);
172  virtual void giveInputRecord(DynamicInputRecord &input);
173 
177  const FloatArray &giveComponentArray() const;
178  void setComponentArray(FloatArray &arry) { componentArray = arry; }
179 };
180 } // end namespace oofem
181 #endif // load_h
Load is specified in local element c.s.
Definition: load.h:71
Class and object Domain.
Definition: domain.h:115
FloatArray componentArray
Components of boundary condition.
Definition: load.h:85
bool reference
Definition: load.h:100
Load is specified in global c.s.
Definition: load.h:70
virtual int giveApproxOrder()
Definition: load.h:159
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
Class implementing an array of integers.
Definition: intarray.h:61
virtual double giveProperty(int aProperty, TimeStep *tStep)
Returns the value of a property 'aProperty'.
Definition: load.h:166
void setComponentArray(FloatArray &arry)
Definition: load.h:178
#define OOFEM_ERROR(...)
Definition: error.h:61
virtual FormulationType giveFormulationType()
Specifies is load should take local or global coordinates.
Definition: load.h:155
CoordSystType
Load coordinate system type.
Definition: load.h:69
Abstract base class for all boundary conditions of problem.
Class representing vector of real numbers.
Definition: floatarray.h:82
Load is specified in global c.s. but follows the deformation.
Definition: load.h:72
FormulationType
Type determining the type of formulation (entity local or global one).
Definition: load.h:78
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
IntArray dofExcludeMask
The load is specified for all dofs of object to which is associated.
Definition: load.h:96
virtual CoordSystType giveCoordSystMode()
Returns receiver's coordinate system.
Definition: load.h:151
Class representing the a dynamic Input Record.
Load is base abstract class for all loads.
Definition: load.h:61
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
virtual ~Load()
Destructor.
Definition: load.h:109

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