OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
structural2delement.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 structural2delement_h
36 #define structural2delement_h
37 
39 #include "feinterpol2d.h"
40 
41 #define _IFT_Structural2DElement_materialCoordinateSystem "matcs"
42 
43 namespace oofem {
44 
51 {
52 
53 protected:
63 
65 
66 public:
72  Structural2DElement(int n, Domain * d);
74  virtual ~Structural2DElement();
75  virtual void postInitialize();
76  virtual int giveNumberOfNodes() const;
81 
82  virtual int computeNumberOfDofs();
83  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
84  virtual double computeVolumeAround(GaussPoint *gp);
85 
87 
88  virtual double giveCharacteristicLength(const FloatArray &normalToCrackPlane);
89 
90 protected:
91  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx = 1, int upperIndx = ALL_STRAINS) = 0 ;
92  virtual void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer) = 0;
93  virtual void computeGaussPoints();
94 
95  void giveMaterialOrientationAt( FloatArray &x, FloatArray &y, const FloatArray &lcoords);
96 
97  // Edge support
98  virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const;
99  virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge);
100  virtual int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp);
101  virtual int testElementExtension(ElementExtension ext) { return ( ( ext == Element_EdgeLoadSupport ) ? 1 : 0 ); }
102 };
103 
104 
105 
107 {
108 public:
109  PlaneStressElement(int n, Domain * d);
110  virtual ~PlaneStressElement() { }
111  virtual MaterialMode giveMaterialMode() { return _PlaneStress; }
112  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
113  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
114 
115 protected:
116  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx = 1, int upperIndx = ALL_STRAINS) ;
117  virtual void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer);
118 };
119 
120 
122 {
123 public:
124  PlaneStrainElement(int n, Domain * d);
125  virtual ~PlaneStrainElement() { }
126  virtual MaterialMode giveMaterialMode() { return _PlaneStrain; }
127  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
128  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
129 
130 protected:
131  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx = 1, int upperIndx = ALL_STRAINS) ;
132  virtual void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer);
133 };
134 
135 
137 {
138 public:
139  AxisymElement(int n, Domain * d);
140  virtual ~AxisymElement() { }
141  virtual MaterialMode giveMaterialMode() { return _3dMat; }
142  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
143  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
144 
145  virtual double giveCharacteristicLength(const FloatArray &crackToNormalPlane);
146  virtual double computeVolumeAround(GaussPoint *gp);
147 
148 protected:
149  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx = 1, int upperIndx = ALL_STRAINS) ;
150  virtual void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer);
151  virtual void computeGaussPoints();
152  virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge);
153 };
154 
155 
156 } // end namespace oofem
157 #endif // structural2delement_h
virtual FEICellGeometry * giveCellGeometryWrapper()
Returns the Cell Geometry Wrapper.
Class and object Domain.
Definition: domain.h:115
Abstract base class for "structural" finite elements with geometrical nonlinearities.
virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx=1, int upperIndx=ALL_STRAINS)=0
Computes the geometrical matrix of receiver in given integration point.
virtual int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp)
Returns transformation matrix from local edge c.s to element local coordinate system of load vector c...
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)=0
Computes constitutive matrix of receiver.
Class representing a general abstraction for cell geometry.
Definition: feinterpol.h:62
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
void giveMaterialOrientationAt(FloatArray &x, FloatArray &y, const FloatArray &lcoords)
virtual int testElementExtension(ElementExtension ext)
Tests if the element implements required extension.
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual double giveCharacteristicLength(const FloatArray &normalToCrackPlane)
Returns the size of element in the given direction, in some cases adjusted (e.g.
virtual int giveNumberOfNodes() const
Returns number of nodes of receiver.
virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
Computes volume related to integration point on local edge.
ElementExtension
Type representing element extension.
virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)=0
Computes the stress vector of receiver at given integration point, at time step tStep.
virtual ~Structural2DElement()
Destructor.
#define ALL_STRAINS
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
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
Structural2DElement(int n, Domain *d)
Constructor.
virtual void postInitialize()
Performs post initialization steps.
Class representing the general Input Record.
Definition: inputrecord.h:101
Base class for planar 2D elements.
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const
Assembles edge dof mapping mask, which provides mapping between edge local DOFs and "global" element ...
virtual void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer)=0
Computes a matrix which, multiplied by the column matrix of nodal displacements, gives the displaceme...
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
FEICellGeometry * cellGeometryWrapper
To facilitate the transformation of 2d elements into 3d, the complexity of transformation from 3d to ...
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Class representing solution step.
Definition: timestep.h:80
Element extension for edge loads.

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