OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
simplecrosssection.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 simplecrosssection_h
36 #define simplecrosssection_h
37 
38 #include "../sm/CrossSections/structuralcrosssection.h"
39 #include "../sm/Materials/structuralmaterial.h"
40 #include "floatarray.h"
41 #include "floatmatrix.h"
42 
44 
45 #define _IFT_SimpleCrossSection_Name "simplecs"
46 #define _IFT_SimpleCrossSection_thick "thick"
47 #define _IFT_SimpleCrossSection_width "width"
48 #define _IFT_SimpleCrossSection_area "area"
49 #define _IFT_SimpleCrossSection_iy "iy"
50 #define _IFT_SimpleCrossSection_iz "iz"
51 #define _IFT_SimpleCrossSection_ik "ik"
52 #define _IFT_SimpleCrossSection_shearcoeff "beamshearcoeff"
53 #define _IFT_SimpleCrossSection_shearareay "shearareay"
54 #define _IFT_SimpleCrossSection_shearareaz "shearareaz"
55 #define _IFT_SimpleCrossSection_drillStiffness "drillstiffness"
56 #define _IFT_SimpleCrossSection_relDrillStiffness "reldrillstiffness"
57 #define _IFT_SimpleCrossSection_drillType "drilltype"
58 #define _IFT_SimpleCrossSection_MaterialNumber "material"
59 #define _IFT_SimpleCrossSection_directorx "directorx"
60 #define _IFT_SimpleCrossSection_directory "directory"
61 #define _IFT_SimpleCrossSection_directorz "directorz"
62 
63 
64 namespace oofem {
86 class OOFEM_EXPORT SimpleCrossSection : public StructuralCrossSection
87 {
88 public:
95  materialNumber = 0;
96  czMaterialNumber = 0;
97  }
98 
99  virtual void giveRealStress_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep);
100  virtual void giveRealStress_3dDegeneratedShell(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep);
101  virtual void giveRealStress_PlaneStrain(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep);
102  virtual void giveRealStress_PlaneStress(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep);
103  virtual void giveRealStress_1d(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep);
104  virtual void giveRealStress_Warping(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep);
105 
106  virtual void giveStiffnessMatrix_3d(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
107  virtual void giveStiffnessMatrix_PlaneStress(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
108  virtual void giveStiffnessMatrix_PlaneStrain(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
109  virtual void giveStiffnessMatrix_1d(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
110 
111 
112  virtual void giveGeneralizedStress_Beam2d(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep);
113  virtual void giveGeneralizedStress_Beam3d(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep);
114  virtual void giveGeneralizedStress_Plate(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep);
115  virtual void giveGeneralizedStress_Shell(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep);
116  virtual void giveGeneralizedStress_MembraneRot(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep);
117  virtual void giveGeneralizedStress_PlateSubSoil(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep);
118 
119  virtual void giveCharMaterialStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
120  virtual bool isCharacteristicMtrxSymmetric(MatResponseMode mode);
121 
122  virtual void give3dDegeneratedShellStiffMtrx(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
123  virtual void give2dBeamStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
124  virtual void give3dBeamStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
125  virtual void give2dPlateStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
126  virtual void give3dShellStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
127  virtual void giveMembraneRotStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
128  virtual void give2dPlateSubSoilStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
129 
130 
143  virtual IRResultType initializeFrom(InputRecord *ir);
144  virtual void giveInputRecord(DynamicInputRecord &input);
145 
146  virtual void createMaterialStatus(GaussPoint &iGP); // ES
147 
148 
149  // identification and auxiliary functions
150  virtual const char *giveClassName() const { return "SimpleCrossSection"; }
151  virtual const char *giveInputRecordName() const { return _IFT_SimpleCrossSection_Name; }
152 
153  virtual double give(int aProperty, GaussPoint *gp);
154  virtual double give(CrossSectionProperty a, GaussPoint *gp) { return CrossSection :: give(a, gp); }
155  virtual double give(CrossSectionProperty a, const FloatArray &coords, Element *elem, bool local) { return CrossSection :: give(a, coords, elem, local); }
156  virtual int giveIPValue(FloatArray &answer, GaussPoint *ip, InternalStateType type, TimeStep *tStep);
157  virtual Material *giveMaterial(IntegrationPoint *ip);
158 
159  int giveMaterialNumber() const { return this->materialNumber; }
160  void setMaterialNumber(int matNum) { this->materialNumber = matNum; }
161  virtual int checkConsistency();
162  virtual Interface *giveMaterialInterface(InterfaceType t, IntegrationPoint *ip);
163 
164 
165  virtual void giveFirstPKStresses(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedFIncrement, TimeStep *tStep);
166  virtual void giveCauchyStresses(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedFIncrement, TimeStep *tStep);
167  virtual void giveEshelbyStresses(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedvF, TimeStep *tStep);
168  virtual void giveStiffnessMatrix_dPdF(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
169  virtual void giveStiffnessMatrix_dCde(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
170 
171  virtual void giveTemperatureVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep);
172 
173  virtual int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *gp);
174  virtual int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *gp);
175  virtual int estimatePackSize(DataStream &buff, GaussPoint *gp);
176 
177 protected:
178  int materialNumber; // material number
179  int czMaterialNumber; // cohesive zone material number
180 };
181 } // end namespace oofem
182 #endif // simplecrosssection_h
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
Class and object Domain.
Definition: domain.h:115
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
Abstract base class for all finite elements.
Definition: element.h:145
CrossSectionProperty
List of properties possibly stored in a cross section.
Definition: crosssection.h:58
MatResponseMode
Describes the character of characteristic material matrix.
SimpleCrossSection(int n, Domain *d)
Constructor.
virtual const char * giveClassName() const
virtual double give(CrossSectionProperty a, GaussPoint *gp)
Returns the value of cross section property at given point.
virtual const char * giveInputRecordName() const
Abstract base class for all material models.
Definition: material.h:95
void setMaterialNumber(int matNum)
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual double give(CrossSectionProperty a, GaussPoint *gp)
Returns the value of cross section property at given point.
Definition: crosssection.C:151
Class implementing "simple" cross section model in finite element problem.
Class representing the general Input Record.
Definition: inputrecord.h:101
Class Interface.
Definition: interface.h:82
Class representing the a dynamic Input Record.
virtual double give(CrossSectionProperty a, const FloatArray &coords, Element *elem, bool local)
Returns the value of cross section property at given point (belonging to given element).
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
Abstract base class for all structural cross section models.
the oofem namespace is to define a context or scope in which all oofem names are defined.
#define _IFT_SimpleCrossSection_Name
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80

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