OOFEM 3.0
Loading...
Searching...
No Matches
simpletransportcrosssection.C
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
37#include "dynamicinputrecord.h"
38#include "classfactory.h"
39
40namespace oofem {
42
43SimpleTransportCrossSection :: SimpleTransportCrossSection(int n, Domain *d) : TransportCrossSection(n, d) { }
44
45
46void
47SimpleTransportCrossSection :: initializeFrom(InputRecord &ir)
48{
49 TransportCrossSection :: initializeFrom(ir);
50
52 this->propertyDictionary.clear();
54 double thickness;
57 }
58 double area = 0.0;
61 }
62 propertyDictionary.add(CS_Area, area);
63}
64
65
66void
67SimpleTransportCrossSection :: giveInputRecord(DynamicInputRecord &input)
68{
69 TransportCrossSection :: giveInputRecord(input);
70
72}
73
74
75int
76SimpleTransportCrossSection :: checkConsistency()
77{
78 Material *mat = dynamic_cast< TransportMaterial * >( this->domain->giveMaterial(this->matNumber) );
79 if ( !mat ) {
80 return 0;
81 }
82 return TransportCrossSection :: checkConsistency();
83}
84
85
87SimpleTransportCrossSection :: giveMaterial() const
88{
89 return dynamic_cast< TransportMaterial * >( this->domain->giveMaterial(this->matNumber) );
90}
91
93SimpleTransportCrossSection :: giveMaterial(IntegrationPoint *ip) const
94{
95 return this->domain->giveMaterial(this->matNumber);
96}
97
98
99int
100SimpleTransportCrossSection :: giveIPValue(FloatArray &answer, GaussPoint *ip, InternalStateType type, TimeStep *tStep)
101{
102 return this->domain->giveMaterial(this->matNumber)->giveIPValue(answer, ip, type, tStep);
103}
104
105
106bool
107SimpleTransportCrossSection :: isCharacteristicMtrxSymmetric(MatResponseMode rMode) const
108{
109 return this->domain->giveMaterial(this->matNumber)->isCharacteristicMtrxSymmetric(rMode);
110}
111
112
113int
114SimpleTransportCrossSection :: packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *gp)
115{
116 return this->domain->giveMaterial(this->matNumber)->packUnknowns(buff, tStep, gp);
117}
118
119int
120SimpleTransportCrossSection :: unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *gp)
121{
122 return this->domain->giveMaterial(this->matNumber)->unpackAndUpdateUnknowns(buff, tStep, gp);
123}
124
125int
126SimpleTransportCrossSection :: estimatePackSize(DataStream &buff, GaussPoint *gp)
127{
128 return this->domain->giveMaterial(this->matNumber)->estimatePackSize(buff, gp);
129}
130
131} // end namespace oofem
#define REGISTER_CrossSection(class)
Dictionary propertyDictionary
void setField(int item, InputFieldType id)
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition femcmpnn.h:79
virtual bool hasField(InputFieldType id)=0
Returns true if record contains field identified by idString keyword.
#define IR_GIVE_FIELD(__ir, __value, __id)
Definition inputrecord.h:67
@ CS_Area
Area.
@ CS_Thickness
Thickness.
GaussPoint IntegrationPoint
Definition gausspoint.h:272
#define _IFT_SimpleTransportCrossSection_area
#define _IFT_SimpleTransportCrossSection_material
#define _IFT_SimpleTransportCrossSection_thickness

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