OOFEM 3.0
Loading...
Searching...
No Matches
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 - 2025 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 dofmanvalfield_h
36#define dofmanvalfield_h
37
38#include "field.h"
39#include "elementgeometrytype.h"
40#include "error.h"
41#include "engngm.h"
42#include "domain.h"
43#include <vector>
44#include "internalstatetype.h"
45#include "intarray.h"
48#include "cltypes.h"
49
50
51
52namespace oofem {
53class Domain;
54
64{
65protected:
69 std::vector< FloatArray >dmanvallist;
71 std::unique_ptr< EngngModel >eModel;
73 std::unique_ptr< CrossSection >crossSect;
74
75public:
80
85
86 DofManValueField(FieldType ft, int nNodes, int nElements, const std::string engngModel, const std::string domainDofsDefaults);
87
88 virtual ~DofManValueField() { }
89
93 void addNode(int i, const FloatArray &coords);
94
98 void addElement(int i, const char *name, const IntArray &nodes);
99
100 int evaluateAt(FloatArray &answer, const FloatArray &coords, ValueModeType mode, TimeStep *tStep) override;
101
116 int evaluateAt(FloatArray &answer, DofManager *dman, ValueModeType mode, TimeStep *tStep) override;
117
121 void setDofManValue(int dofMan, FloatArray value);
122
126 const FloatArray &getNodeCoordinates(int i);
127
128 void saveContext(DataStream &stream) override;
129 void restoreContext(DataStream &stream) override;
130
131 const char *giveClassName() const override {
132 return "DofManValueField";
133 }
134};
135} // end namespace oofem
136#endif // dofmanvalfield_h
Domain * domain
Associated domain (need its elements to interpolate).
std::unique_ptr< CrossSection > crossSect
Pointer to single cross-section;.
std::vector< FloatArray > dmanvallist
Array of dofman values.
DofManValueField(FieldType ft, Domain *d)
const char * giveClassName() const override
std::unique_ptr< EngngModel > eModel
Pointer to engineering model.
Field(FieldType b=FieldType::FT_Unknown)
Definition field.h:95
FieldType
Physical type of field.
Definition field.h:64
#define OOFEM_EXPORT
Definition oofemcfg.h:7

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011