OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
dkt3d.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 dkt3d_h
36 #define dkt3d_h
37 
38 #include "dkt.h"
39 #include "floatmatrix.h"
40 
41 #define _IFT_DKTPlate3d_Name "dktplate3d"
42 
43 namespace oofem {
44 #ifndef __CHARTENSOR
45  #define __CHARTENSOR
46 enum CharTensor {
51 
56 };
57 #endif
58 
59 
70 class DKTPlate3d : public DKTPlate
71 {
72 protected:
78 
79 public:
80  DKTPlate3d(int n, Domain * d);
81  virtual ~DKTPlate3d() {}
82 
83 protected:
84  void giveLocalCoordinates(FloatArray &answer, FloatArray &global);
85  virtual void giveNodeCoordinates(double &x1, double &x2, double &x3,
86  double &y1, double &y2, double &y3,
87  double &z1, double &z2, double &z3);
88 
89  void giveCharacteristicTensor(FloatMatrix &answer, CharTensor type, GaussPoint *gp, TimeStep *tStep);
90  virtual int computeLoadGToLRotationMtrx(FloatMatrix &answer);
91  virtual void computeBodyLoadVectorAt(FloatArray &answer, Load *forLoad, TimeStep *tStep, ValueModeType mode);
92 
97  virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const;
98  virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge);
99  virtual int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp);
101 
105  virtual void computeSurfaceNMatrixAt(FloatMatrix &answer, int iSurf, GaussPoint *gp);
106  virtual void giveSurfaceDofMapping(IntArray &answer, int iSurf) const;
107  virtual IntegrationRule *GetSurfaceIntegrationRule(int iSurf);
108  virtual double computeSurfaceVolumeAround(GaussPoint *gp, int iSurf);
109  virtual int computeLoadLSToLRotationMatrix(FloatMatrix &answer, int iSurf, GaussPoint *gp);
111 
112 public:
113  // definition & identification
114  virtual const char *giveClassName() const { return "DktPlate3d"; }
115  virtual const char *giveInputRecordName() const { return _IFT_DKTPlate3d_Name; }
116 
117  virtual int computeNumberOfDofs() { return 9; }
118  virtual int computeNumberOfGlobalDofs() { return 18; }
119  virtual void giveDofManDofIDMask(int inode, IntArray &) const;
120  virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep);
121 
122  virtual const FloatMatrix *computeGtoLRotationMatrix();
123  virtual bool computeGtoLRotationMatrix(FloatMatrix &answer);
124 
125  virtual bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords);
126  virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords);
127 
129  {
130  OOFEM_ERROR("calling of this function id not allowed");
131  return 0;
132  }
134  { return ( ( ext == Element_SurfaceLoadSupport ) ? 1 : 0 ); }
135 
136  virtual void printOutputAt(FILE *file, TimeStep *tStep);
137 };
138 } // end namespace oofem
139 #endif // dkt3d_h
This class implements an triangular Discrete Kirchhoff Theory (DKT) element.
Definition: dkt.h:67
virtual const char * giveClassName() const
Definition: dkt3d.h:114
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
void giveLocalCoordinates(FloatArray &answer, FloatArray &global)
Definition: dkt3d.C:56
Class and object Domain.
Definition: domain.h:115
virtual int computeNumberOfGlobalDofs()
Computes the total number of element's global dofs.
Definition: dkt3d.h:118
virtual const char * giveInputRecordName() const
Definition: dkt3d.h:115
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
void giveCharacteristicTensor(FloatMatrix &answer, CharTensor type, GaussPoint *gp, TimeStep *tStep)
Definition: dkt3d.C:175
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in full form.
Definition: dkt3d.C:231
virtual double computeSurfaceVolumeAround(GaussPoint *gp, int iSurf)
Computes volume related to integration point on local surface.
Definition: dkt3d.C:350
virtual IntegrationRule * GetSurfaceIntegrationRule(int iSurf)
Definition: dkt3d.C:341
virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const
Assembles edge dof mapping mask, which provides mapping between edge local DOFs and "global" element ...
Definition: dkt3d.C:400
virtual void computeSurfaceNMatrixAt(FloatMatrix &answer, int iSurf, GaussPoint *gp)
Definition: dkt3d.C:297
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Prints output of receiver to stream, for given time step.
Definition: dkt3d.C:363
virtual ~DKTPlate3d()
Definition: dkt3d.h:81
virtual void giveNodeCoordinates(double &x1, double &x2, double &x3, double &y1, double &y2, double &y3, double &z1, double &z2, double &z3)
Definition: dkt3d.C:78
Class implementing an array of integers.
Definition: intarray.h:61
virtual int testElementExtension(ElementExtension ext)
Tests if the element implements required extension.
Definition: dkt3d.h:133
virtual int computeLoadLSToLRotationMatrix(FloatMatrix &answer, int iSurf, GaussPoint *gp)
Returns transformation matrix from local surface c.s to element local coordinate system of load vecto...
Definition: dkt3d.C:357
Abstract base class representing integration rule.
Element extension for surface loads.
virtual void giveSurfaceDofMapping(IntArray &answer, int iSurf) const
Assembles surface dof mapping mask, which provides mapping between surface local DOFs and "global" el...
Definition: dkt3d.C:319
#define OOFEM_ERROR(...)
Definition: error.h:61
ElementExtension
Type representing element extension.
FloatMatrix GtoLRotationMatrix
Transformation Matrix form GtoL(3,3) is stored at the element level for computation efficiency...
Definition: dkt3d.h:77
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...
Definition: dkt3d.C:444
virtual int computeLoadGToLRotationMtrx(FloatMatrix &answer)
Returns transformation matrix from global coordinate system to local element coordinate system for el...
Definition: dkt3d.C:278
virtual void computeBodyLoadVectorAt(FloatArray &answer, Load *forLoad, TimeStep *tStep, ValueModeType mode)
Computes the load vector due to body load acting on receiver, at given time step. ...
Definition: dkt3d.C:524
#define _IFT_DKTPlate3d_Name
Definition: dkt3d.h:41
virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
Computes volume related to integration point on local edge.
Definition: dkt3d.C:436
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual const FloatMatrix * computeGtoLRotationMatrix()
Definition: dkt3d.C:111
This class represent DKT plate element that can be arbitrary oriented in space, in contrast to base D...
Definition: dkt3d.h:70
virtual bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords)
Computes the element local coordinates from given global coordinates.
Definition: dkt3d.C:483
Load is base abstract class for all loads.
Definition: load.h:61
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords)
Computes the global coordinates from given element's local coordinates.
Definition: dkt3d.C:510
Class representing integration point in finite element program.
Definition: gausspoint.h:93
virtual int giveLocalCoordinateSystem(FloatMatrix &answer)
Returns local coordinate system of receiver Required by material models with ortho- and anisotrophy...
Definition: dkt3d.h:128
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: dkt3d.h:117
Class representing solution step.
Definition: timestep.h:80
virtual void giveDofManDofIDMask(int inode, IntArray &) const
Returns dofmanager dof mask for node.
Definition: dkt3d.C:104
DKTPlate3d(int n, Domain *d)
Definition: dkt3d.C:50

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