OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
tr2shell7.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 Tr2Shell7_h
36 #define Tr2Shell7_h
37 
38 #include "../sm/Elements/Shells/shell7base.h"
39 #include "../sm/CrossSections/layeredcrosssection.h"
40 #include "../sm/Elements/nlstructuralelement.h"
42 
43 #define _IFT_Tr2Shell7_Name "tr2shell7"
44 
45 namespace oofem {
46 class FEI3dTrQuad;
47 class BoundaryLoad;
48 
65 class Tr2Shell7 : public Shell7Base
66 {
67 protected:
72 
73  virtual const IntArray &giveOrderingDofTypes() const;
74  virtual const IntArray &giveOrderingNodes() const;
75  virtual const IntArray &giveOrderingEdgeNodes() const;
76 
77  //specific
78  void giveSurfaceDofMapping(IntArray &answer, int iSurf) const;
79  void giveEdgeDofMapping(IntArray &answer, int iEdge) const;
80 
81  virtual double computeVolumeAroundLayer(GaussPoint *mastergp, int layer);
82  virtual double computeAreaAround(GaussPoint *gp, double xi);
83  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)
84  { OOFEM_ERROR("calling of this function is not allowed"); }
86  { OOFEM_ERROR("calling of this funciton is not allowed"); }
87 
88  virtual void computeGaussPoints();
89  //only used for debuging
90  void compareMatrices(const FloatMatrix &matrix1, const FloatMatrix &matrix2, FloatMatrix &answer);
91 
92  virtual FEInterpolation *giveInterpolation() const;
93 
94 
95 public:
96  Tr2Shell7(int n, Domain * d); // constructor
97  virtual ~Tr2Shell7() { } // destructor -> declaring as virtual will make each subclass call their respective destr.
98  // definition & identification
99  virtual int giveNumberOfDofs() { return 42; }
100  virtual int giveNumberOfEdgeDofs() { return 21; }
101  virtual int giveNumberOfEdgeDofManagers() { return 3; }
102  virtual const char *giveInputRecordName() const { return _IFT_Tr2Shell7_Name; }
103  virtual const char *giveClassName() const { return "Tr2Shell7"; }
104  //virtual Element_Geometry_Type giveGeometryType() const { return EGT_triangle_2; }
105  virtual Element_Geometry_Type giveGeometryType() const { return EGT_Composite; }
106  virtual integrationDomain giveIntegrationDomain() const { return _Triangle; } // write new wedge-like type 'layeredWedge'
107 
108  virtual void giveBoundaryLocationArray(IntArray &locationArray, const IntArray &bNodes, const UnknownNumberingScheme &s, IntArray *dofIdArray);
109 };
110 } // end namespace oofem
111 #endif
integrationDomain
Used by integrator class to supply integration points for proper domain to be integrated (Area...
Class and object Domain.
Definition: domain.h:115
Element_Geometry_Type
Enumerative type used to classify element geometry Possible values are: EGT_point - point in space EG...
virtual const char * giveClassName() const
Definition: tr2shell7.h:103
virtual double computeAreaAround(GaussPoint *gp, double xi)
Definition: tr2shell7.C:175
virtual const IntArray & giveOrderingEdgeNodes() const
Definition: tr2shell7.C:80
virtual int giveNumberOfDofs()
Definition: tr2shell7.h:99
static IntArray orderingEdgeNodes
Definition: tr2shell7.h:71
virtual FEInterpolation * giveInterpolation() const
Definition: tr2shell7.C:85
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
This class represent a 7 parameter shell element.
Definition: tr2shell7.h:65
virtual ~Tr2Shell7()
Definition: tr2shell7.h:97
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
Second order triangular interpolation in 3D space (6 nodes).
Definition: fei3dtrquad.h:47
virtual int giveNumberOfEdgeDofManagers()
Definition: tr2shell7.h:101
virtual const IntArray & giveOrderingDofTypes() const
Definition: tr2shell7.C:69
void giveEdgeDofMapping(IntArray &answer, int iEdge) const
Assembles edge dof mapping mask, which provides mapping between edge local DOFs and "global" element ...
Definition: tr2shell7.C:145
#define OOFEM_ERROR(...)
Definition: error.h:61
Abstract base class allowing to control the way, how equations are assigned to individual DOFs...
virtual void giveBoundaryLocationArray(IntArray &locationArray, const IntArray &bNodes, const UnknownNumberingScheme &s, IntArray *dofIdArray)
Returns the location array for the boundary of the element.
Definition: tr2shell7.C:109
Tr2Shell7(int n, Domain *d)
Definition: tr2shell7.C:62
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.
Definition: tr2shell7.h:83
void giveSurfaceDofMapping(IntArray &answer, int iSurf) const
Assembles surface dof mapping mask, which provides mapping between surface local DOFs and "global" el...
Definition: tr2shell7.C:165
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes constitutive matrix of receiver.
Definition: tr2shell7.h:85
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: tr2shell7.C:90
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual int giveNumberOfEdgeDofs()
Definition: tr2shell7.h:100
void compareMatrices(const FloatMatrix &matrix1, const FloatMatrix &matrix2, FloatMatrix &answer)
Definition: tr2shell7.C:207
virtual const IntArray & giveOrderingNodes() const
Definition: tr2shell7.C:75
This class represent a 7 parameter shell element.
Definition: shell7base.h:68
virtual Element_Geometry_Type giveGeometryType() const
Returns the element geometry type.
Definition: tr2shell7.h:105
virtual integrationDomain giveIntegrationDomain() const
Returns integration domain for receiver, used to initialize integration point over receiver volume...
Definition: tr2shell7.h:106
#define _IFT_Tr2Shell7_Name
Definition: tr2shell7.h:43
static IntArray orderingNodes
Definition: tr2shell7.h:70
static IntArray orderingDofTypes
Definition: tr2shell7.h:69
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual const char * giveInputRecordName() const
Definition: tr2shell7.h:102
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
static FEI3dTrQuad interpolation
Definition: tr2shell7.h:68
virtual double computeVolumeAroundLayer(GaussPoint *mastergp, int layer)
Definition: tr2shell7.C:194

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