OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
pointload.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 pointload_h
36 #define pointload_h
37 
38 #include "bodyload.h"
39 
41 
42 #define _IFT_PointLoad_Name "pointload"
43 #define _IFT_PointLoad_ndofs "ndofs"
44 #define _IFT_PointLoad_coords "coords"
45 #define _IFT_PointLoad_loadtype "loadtype"
46 #define _IFT_PointLoad_cstype "cstype"
47 
48 
49 namespace oofem {
50 class TimeStep;
51 
63 class OOFEM_EXPORT PointLoad : public BodyLoad
64 {
65 protected:
69  CoordSystType coordSystemType;
72 
73 public:
79  PointLoad(int n, Domain * d) : BodyLoad(n, d) {
80  coordSystemType = CST_Global;
81  }
82 
83  virtual void computeValueAt(FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode);
87  const FloatArray & giveCoordinates() const { return coords; }
88 
89  virtual CoordSystType giveCoordSystMode() { return coordSystemType; }
90  //virtual FormulationType giveFormulationType () { return FT_Entity; }
91 
92  virtual IRResultType initializeFrom(InputRecord *ir);
93  virtual void giveInputRecord(DynamicInputRecord &input);
94 
95  virtual bcType giveType() const { return lType; }
96  virtual bcGeomType giveBCGeoType() const { return PointLoadBGT; }
97  virtual const char *giveClassName() const { return "PointLoad"; }
98  virtual const char *giveInputRecordName() const { return _IFT_PointLoad_Name; }
99 };
100 } // end namespace oofem
101 #endif // pointload_h
Class and object Domain.
Definition: domain.h:115
bcGeomType
Type representing the geometric character of loading.
Definition: bcgeomtype.h:40
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
Class implementing element body load, acting over whole element volume (e.g., the dead weight)...
Definition: bodyload.h:49
virtual const char * giveClassName() const
Definition: pointload.h:97
Concentrated point load (placed anywhere).
Definition: bcgeomtype.h:46
virtual const char * giveInputRecordName() const
Definition: pointload.h:98
bcType
Type representing the type of bc.
Definition: bctype.h:40
virtual CoordSystType giveCoordSystMode()
Returns receiver's coordinate system.
Definition: pointload.h:89
FloatArray coords
Additional properties (coordinates, point of application).
Definition: pointload.h:71
virtual bcGeomType giveBCGeoType() const
Returns receiver's load geometry type.
Definition: pointload.h:96
const FloatArray & giveCoordinates() const
Gives coordinates of the receiver.
Definition: pointload.h:87
Class representing vector of real numbers.
Definition: floatarray.h:82
#define _IFT_PointLoad_Name
Definition: pointload.h:42
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
PointLoad(int n, Domain *d)
Constructor.
Definition: pointload.h:79
Class representing the a dynamic Input Record.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual bcType giveType() const
Definition: pointload.h:95
bcType lType
Load type (its physical meaning).
Definition: pointload.h:67
Class representing solution step.
Definition: timestep.h:80
CoordSystType coordSystemType
Load coordinate system.
Definition: pointload.h:69
Abstract base class representing a point load (force, momentum, ...) that acts directly on or inside ...
Definition: pointload.h:63

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