OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
structural3delement.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 structural3delement_h
36 #define structural3delement_h
37 
39 
40 
41 #define _IFT_Structural3DElement_materialCoordinateSystem "matcs"
42 
43 namespace oofem {
44 class GaussPoint;
45 class FloatMatrix;
46 class FloatArray;
47 class IntArray;
48 
56 {
57 protected:
59 
60 public:
66  Structural3DElement(int n, Domain * d);
68  virtual ~Structural3DElement() { }
69 
71 
73  virtual int computeNumberOfDofs();
74  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
75  virtual double computeVolumeAround(GaussPoint *gp);
76 
77  virtual double giveCharacteristicLength(const FloatArray &normalToCrackPlane);
78 
79  void giveMaterialOrientationAt(FloatArray &x, FloatArray &y, FloatArray &z, const FloatArray &lcoords);
80  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
81  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
82 
83 protected:
84  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx = 1, int upperIndx = ALL_STRAINS);
85  virtual void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer);
86  virtual void computeGaussPoints();
87 
88  // Edge support
89  virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const;
90  virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge);
91  virtual int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp);
92 
94  { return ( ( ( ext == Element_EdgeLoadSupport ) || ( ext == Element_SurfaceLoadSupport ) ) ? 1 : 0 ); }
95 
96 
97  //virtual IntegrationRule *GetSurfaceIntegrationRule(int); // old
98  virtual void computeSurfaceNMatrixAt(FloatMatrix &answer, int iSurf, GaussPoint *gp);
99  virtual void giveSurfaceDofMapping(IntArray &answer, int) const;
100  virtual double computeSurfaceVolumeAround(GaussPoint *gp, int);
101  virtual int computeLoadLSToLRotationMatrix(FloatMatrix &answer, int, GaussPoint *gp);
102 
103 private:
104  double dnx(int i, int arg2);
105 };
106 
107 
108 } // end namespace oofem
109 #endif // structural3delement_h
virtual int testElementExtension(ElementExtension ext)
Tests if the element implements required extension.
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
virtual ~Structural3DElement()
Destructor.
Class and object Domain.
Definition: domain.h:115
virtual void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer)
Computes a matrix which, multiplied by the column matrix of nodal displacements, gives the displaceme...
Abstract base class for "structural" finite elements with geometrical nonlinearities.
void giveMaterialOrientationAt(FloatArray &x, FloatArray &y, FloatArray &z, const FloatArray &lcoords)
virtual void giveSurfaceDofMapping(IntArray &answer, int) const
Assembles surface dof mapping mask, which provides mapping between surface local DOFs and "global" el...
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual void computeSurfaceNMatrixAt(FloatMatrix &answer, int iSurf, GaussPoint *gp)
virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
Computes volume related to integration point on local edge.
Element extension for surface loads.
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes constitutive matrix of receiver.
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
ElementExtension
Type representing element extension.
virtual double giveCharacteristicLength(const FloatArray &normalToCrackPlane)
Returns the size of element in the given direction, in some cases adjusted (e.g.
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...
Structural3DElement(int n, Domain *d)
Constructor.
#define ALL_STRAINS
virtual int computeLoadLSToLRotationMatrix(FloatMatrix &answer, int, GaussPoint *gp)
Returns transformation matrix from local surface c.s to element local coordinate system of load vecto...
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
double dnx(int i, int arg2)
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual double computeSurfaceVolumeAround(GaussPoint *gp, int)
Computes volume related to integration point on local surface.
Base class 3D elements.
virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx=1, int upperIndx=ALL_STRAINS)
Computes the geometrical matrix of receiver in given integration point.
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const
Assembles edge dof mapping mask, which provides mapping between edge local DOFs and "global" element ...
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)
Computes the stress vector of receiver at given integration point, at time step tStep.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
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