OOFEM 3.0
Loading...
Searching...
No Matches
fluidcrosssection.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
35#include "fluidcrosssection.h"
37#include "dynamicinputrecord.h"
38#include "domain.h"
39#include "classfactory.h"
40
41namespace oofem {
43
44FluidCrossSection :: FluidCrossSection(int n, Domain *d) : CrossSection(n, d), matNumber(0) { }
45
46
47void
48FluidCrossSection :: initializeFrom(InputRecord &ir)
49{
50 CrossSection :: initializeFrom(ir);
52}
53
54
55void
56FluidCrossSection :: giveInputRecord(DynamicInputRecord &input)
57{
58 CrossSection :: giveInputRecord(input);
59
61}
62
63
64int
65FluidCrossSection :: checkConsistency()
66{
67 CrossSection :: checkConsistency();
68 return dynamic_cast< FluidDynamicMaterial * >( this->domain->giveMaterial(this->matNumber) ) != NULL;
69}
70
71
72double
73FluidCrossSection :: giveDensity(GaussPoint *gp)
74{
75 return this->domain->giveMaterial(this->matNumber)->give('d', gp);
76}
77
78
79int
80FluidCrossSection :: giveIPValue(FloatArray &answer, GaussPoint *ip, InternalStateType type, TimeStep *tStep)
81{
82 return this->domain->giveMaterial(this->matNumber)->giveIPValue(answer, ip, type, tStep);
83}
84
85
86bool
87FluidCrossSection :: isCharacteristicMtrxSymmetric(MatResponseMode rMode) const
88{
89 return this->domain->giveMaterial(this->matNumber)->isCharacteristicMtrxSymmetric(rMode);
90}
91
92
94FluidCrossSection :: giveFluidMaterial()
95{
96 return static_cast< FluidDynamicMaterial * >( this->domain->giveMaterial(this->matNumber) );
97}
98
100FluidCrossSection :: giveMaterial(IntegrationPoint *ip) const
101{
102 if ( this->matNumber ) {
103 return this->giveDomain()->giveMaterial( this->matNumber );
104 } else {
105 return ip->giveElement()->giveMaterial();
106 }
107}
108
109
110int
111FluidCrossSection :: packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *gp)
112{
113 return this->domain->giveMaterial(this->matNumber)->packUnknowns(buff, tStep, gp);
114}
115
116int
117FluidCrossSection :: unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *gp)
118{
119 return this->domain->giveMaterial(this->matNumber)->unpackAndUpdateUnknowns(buff, tStep, gp);
120}
121
122int
123FluidCrossSection :: estimatePackSize(DataStream &buff, GaussPoint *gp)
124{
125 return this->domain->giveMaterial(this->matNumber)->estimatePackSize(buff, gp);
126}
127
128} // end namespace oofem
#define REGISTER_CrossSection(class)
CrossSection(int n, Domain *d)
void setField(int item, InputFieldType id)
virtual Material * giveMaterial()
Definition element.C:523
Domain * giveDomain() const
Definition femcmpnn.h:97
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition femcmpnn.h:79
Element * giveElement()
Returns corresponding element to receiver.
Definition gausspoint.h:187
#define _IFT_FluidCrossSection_material
#define IR_GIVE_FIELD(__ir, __value, __id)
Definition inputrecord.h:67
GaussPoint IntegrationPoint
Definition gausspoint.h:272

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