OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
crosssection.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 crosssection_h
36 #define crosssection_h
37 
38 #include "femcmpnn.h"
39 #include "materialmode.h"
40 #include "matresponsemode.h"
41 #include "material.h"
42 #include "internalstatetype.h"
43 #include "internalstatevaluetype.h"
44 #include "dictionary.h"
45 #include "crosssectextension.h"
46 #include "gausspoint.h"
47 
49 
50 #define _IFT_CrossSection_SetNumber "set"
51 
52 
53 namespace oofem {
54 class IntegrationRule;
55 class Material;
56 
77 };
78 
107 class OOFEM_EXPORT CrossSection : public FEMComponent
108 {
109 protected:
116 
117  int setNumber; // el set number the cross section is applied to
118 
119 public:
125  CrossSection(int n, Domain *d);
127  virtual ~CrossSection();
128 
129  int giveSetNumber() const { return this->setNumber; }
130 
135  virtual bool hasProperty(CrossSectionProperty a);
143  virtual double give(CrossSectionProperty a, GaussPoint *gp);
155  virtual double give(CrossSectionProperty a, const FloatArray &coords, Element *elem, bool local = true);
156 
163  virtual double give(int aProperty, GaussPoint *gp) { return 0.0; }
164 
172  virtual bool isCharacteristicMtrxSymmetric(MatResponseMode rMode) { return false; }
173  virtual void printYourself();
174 
183  virtual int setupIntegrationPoints(IntegrationRule &irule, int npoints, Element *element);
192  virtual int setupIntegrationPoints(IntegrationRule &irule, int npointsXY, int npointsZ, Element *element);
198  virtual int testCrossSectionExtension(CrossSectExtension ext) { return 0; }
199 
208  virtual int giveIPValue(FloatArray &answer, GaussPoint *ip, InternalStateType type, TimeStep *tStep);
209 
222  virtual int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) = 0;
232  virtual int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) = 0;
241  virtual int estimatePackSize(DataStream &buff, GaussPoint *ip) = 0;
252  virtual double predictRelativeComputationalCost(GaussPoint *ip);
260  virtual double giveRelativeSelfComputationalCost() { return 1.0; }
264  virtual double predictRelativeRedistributionCost(GaussPoint *gp) { return 1.0; }
265 
266  virtual IRResultType initializeFrom(InputRecord *ir);
267  virtual void giveInputRecord(DynamicInputRecord &input);
268 
273  virtual Material *giveMaterial(IntegrationPoint *ip) = 0;
274 
283  virtual contextIOResultType saveIPContext(DataStream &stream, ContextMode mode, GaussPoint *gp);
292  virtual contextIOResultType restoreIPContext(DataStream &stream, ContextMode mode, GaussPoint *gp);
293 };
294 } // end namespace oofem
295 #endif // crosssection_h
Relative penalty stiffness for drilling DOFs.
Definition: crosssection.h:69
Shear area in z direction.
Definition: crosssection.h:67
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
Class and object Domain.
Definition: domain.h:115
Bottom z coordinate.
Definition: crosssection.h:72
Director vector component in y-axis.
Definition: crosssection.h:75
int giveSetNumber() const
Definition: crosssection.h:129
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
virtual int testCrossSectionExtension(CrossSectExtension ext)
Returns nonzero, if receiver implements required extension.
Definition: crosssection.h:198
virtual double giveRelativeSelfComputationalCost()
Returns the weight representing relative computational cost of receiver The reference element is inte...
Definition: crosssection.h:260
Penalty stiffness for drilling DOFs.
Definition: crosssection.h:68
Abstract base class for all finite elements.
Definition: element.h:145
Moment of inertia around z-axis.
Definition: crosssection.h:64
Top z coordinate.
Definition: crosssection.h:71
CrossSectionProperty
List of properties possibly stored in a cross section.
Definition: crosssection.h:58
MatResponseMode
Describes the character of characteristic material matrix.
Abstract base class representing integration rule.
Base abstract class representing cross section in finite element mesh.
Definition: crosssection.h:107
CrossSectExtension
Type representing cross section extension for run time testing.
Shear coefficient of beam.
Definition: crosssection.h:61
Dictionary propertyDictionary
Dictionary for storing cross section parameters (like dimensions).
Definition: crosssection.h:115
Director vector component in z-axis.
Definition: crosssection.h:76
Number of layers that makes up the cross section.
Definition: crosssection.h:73
Moment of inertia around x-axis.
Definition: crosssection.h:65
virtual bool isCharacteristicMtrxSymmetric(MatResponseMode rMode)
Check for symmetry of stiffness matrix.
Definition: crosssection.h:172
Abstract base class for all material models.
Definition: material.h:95
This class implements a linked list whose entries are Pairs (see below).
Definition: dictionary.h:58
Class representing vector of real numbers.
Definition: floatarray.h:82
Shear area in y direction.
Definition: crosssection.h:66
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual double predictRelativeRedistributionCost(GaussPoint *gp)
Definition: crosssection.h:264
virtual double give(int aProperty, GaussPoint *gp)
Returns the value of cross section property.
Definition: crosssection.h:163
Class representing the a dynamic Input Record.
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
Type of artificially added drilling stiffness for drilling DOFs.
Definition: crosssection.h:70
the oofem namespace is to define a context or scope in which all oofem names are defined.
Director vector component in x-axis.
Definition: crosssection.h:74
Moment of inertia around y-axis.
Definition: crosssection.h:63
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
The top abstract class of all classes constituting the finite element mesh.
Definition: femcmpnn.h:76

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