OOFEM  2.4 OOFEM.org - Object Oriented Finite Element Solver
dofmanvalfield.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
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 dofmanvalfield_h
36 #define dofmanvalfield_h
37
38 #include "field.h"
39
40 #include <vector>
41
42 namespace oofem {
43 class Domain;
44
51 class OOFEM_EXPORT DofManValueField : public Field
52 {
53 protected:
57  std::vector< FloatArray >dmanvallist;
58
59 public:
64  virtual ~DofManValueField() { }
73  virtual int evaluateAt(FloatArray &answer, const FloatArray &coords,
74  ValueModeType mode, TimeStep *tStep);
75
90  virtual int evaluateAt(FloatArray &answer, DofManager *dman,
91  ValueModeType mode, TimeStep *tStep);
92
101  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode);
110  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode);
111
112
116  void setDofManValue(int dofMan, FloatArray value);
117
119  virtual const char *giveClassName() const { return "DofManValueField"; }
120 };
121 } // end namespace oofem
122 #endif // dofmanvalfield_h
Class and object Domain.
Definition: domain.h:115
FieldType
Physical type of field.
Definition: field.h:60
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
std::vector< FloatArray > dmanvallist
Array of dofman values.
Base class for dof managers.
Definition: dofmanager.h:113
Domain * domain
Associated domain (need its elements to interpolate)
Abstract class representing field.
Definition: field.h:80
virtual const char * giveClassName() const
Class representing vector of real numbers.
Definition: floatarray.h:82
long ContextMode