OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
cct3d.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 cct3d_h
36 #define cct3d_h
37 
38 #include "../sm/Elements/Plates/cct.h"
39 #include "floatmatrix.h"
40 
41 #define _IFT_CCTPlate3d_Name "cctplate3d"
42 
43 namespace oofem {
44 #ifndef __CHARTENSOR
45  #define __CHARTENSOR
46 enum CharTensor {
51 
56 };
57 #endif
58 
59 
72 class CCTPlate3d : public CCTPlate
73 {
74 protected:
80 
81 public:
82  CCTPlate3d(int n, Domain * d);
83  virtual ~CCTPlate3d() {}
84 
85 protected:
86  void giveLocalCoordinates(FloatArray &answer, FloatArray &global);
87  virtual void giveNodeCoordinates(double &x1, double &x2, double &x3,
88  double &y1, double &y2, double &y3,
89  double &z1, double &z2, double &z3);
90 
91  void giveCharacteristicTensor(FloatMatrix &answer, CharTensor type, GaussPoint *gp, TimeStep *tStep);
92  virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep);
93  virtual int computeLoadGToLRotationMtrx(FloatMatrix &answer);
94  virtual void computeBodyLoadVectorAt(FloatArray &answer, Load *forLoad, TimeStep *tStep, ValueModeType mode);
95 
96  friend class TR_SHELL01;
101  virtual void computeSurfaceNMatrixAt(FloatMatrix &answer, int iSurf, GaussPoint *gp);
102  virtual void giveSurfaceDofMapping(IntArray &answer, int iSurf) const;
103  virtual IntegrationRule *GetSurfaceIntegrationRule(int iSurf);
104  virtual double computeSurfaceVolumeAround(GaussPoint *gp, int iSurf);
105  virtual int computeLoadLSToLRotationMatrix(FloatMatrix &answer, int iSurf, GaussPoint *gp);
107 
108 public:
109  // definition & identification
110  virtual const char *giveClassName() const { return "CCTPlate3d"; }
111  virtual const char *giveInputRecordName() const { return _IFT_CCTPlate3d_Name; }
112 
113  virtual int computeNumberOfDofs() { return 9; }
114  virtual int computeNumberOfGlobalDofs() { return 18; }
115  virtual void giveDofManDofIDMask(int inode, IntArray &) const;
116 
117  virtual const FloatMatrix *computeGtoLRotationMatrix();
118  virtual bool computeGtoLRotationMatrix(FloatMatrix &answer);
119 
120  virtual bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords);
121  virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords);
122 
124  {
125  OOFEM_ERROR("calling of this function id not allowed");
126  return 0;
127  }
129  { return ( ( ext == Element_SurfaceLoadSupport ) ? 1 : 0 ); }
130 
131  virtual void printOutputAt(FILE *file, TimeStep *tStep);
132 };
133 } // end namespace oofem
134 #endif // cct3d_h
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
void giveLocalCoordinates(FloatArray &answer, FloatArray &global)
Definition: cct3d.C:56
Class and object Domain.
Definition: domain.h:115
virtual void giveDofManDofIDMask(int inode, IntArray &) const
Returns dofmanager dof mask for node.
Definition: cct3d.C:104
#define _IFT_CCTPlate3d_Name
Definition: cct3d.h:41
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
virtual double computeSurfaceVolumeAround(GaussPoint *gp, int iSurf)
Computes volume related to integration point on local surface.
Definition: cct3d.C:450
This class implements an triangular three-node shell finite element, composed of cct3d and trplanrot3...
Definition: tr_shell01.h:57
virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords)
Computes the global coordinates from given element's local coordinates.
Definition: cct3d.C:138
virtual int computeLoadGToLRotationMtrx(FloatMatrix &answer)
Returns transformation matrix from global coordinate system to local element coordinate system for el...
Definition: cct3d.C:320
void giveCharacteristicTensor(FloatMatrix &answer, CharTensor type, GaussPoint *gp, TimeStep *tStep)
Definition: cct3d.C:217
Class implementing an array of integers.
Definition: intarray.h:61
Abstract base class representing integration rule.
virtual const char * giveInputRecordName() const
Definition: cct3d.h:111
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: cct3d.C:457
Element extension for surface loads.
CCTPlate3d(int n, Domain *d)
Definition: cct3d.C:50
This class implements an triangular three-node plate CCT finite element.
Definition: cct.h:58
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Prints output of receiver to stream, for given time step.
Definition: cct3d.C:463
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in full form.
Definition: cct3d.C:273
virtual int computeNumberOfGlobalDofs()
Computes the total number of element's global dofs.
Definition: cct3d.h:114
FloatMatrix GtoLRotationMatrix
Transformation Matrix form GtoL(3,3) is stored at the element level for computation efficiency...
Definition: cct3d.h:79
This class represent CCT plate element that can be arbitrary oriented in space, in contrast to base C...
Definition: cct3d.h:72
#define OOFEM_ERROR(...)
Definition: error.h:61
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: cct3d.h:113
ElementExtension
Type representing element extension.
virtual const char * giveClassName() const
Definition: cct3d.h:110
virtual int giveLocalCoordinateSystem(FloatMatrix &answer)
Returns local coordinate system of receiver Required by material models with ortho- and anisotrophy...
Definition: cct3d.h:123
Class representing vector of real numbers.
Definition: floatarray.h:82
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: cct3d.C:339
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual int testElementExtension(ElementExtension ext)
Tests if the element implements required extension.
Definition: cct3d.h:128
virtual void giveNodeCoordinates(double &x1, double &x2, double &x3, double &y1, double &y2, double &y3, double &z1, double &z2, double &z3)
Definition: cct3d.C:78
virtual const FloatMatrix * computeGtoLRotationMatrix()
Definition: cct3d.C:153
virtual ~CCTPlate3d()
Definition: cct3d.h:83
virtual void giveSurfaceDofMapping(IntArray &answer, int iSurf) const
Assembles surface dof mapping mask, which provides mapping between surface local DOFs and "global" el...
Definition: cct3d.C:419
Load is base abstract class for all loads.
Definition: load.h:61
virtual void computeSurfaceNMatrixAt(FloatMatrix &answer, int iSurf, GaussPoint *gp)
Definition: cct3d.C:397
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords)
Computes the element local coordinates from given global coordinates.
Definition: cct3d.C:111
virtual IntegrationRule * GetSurfaceIntegrationRule(int iSurf)
Definition: cct3d.C:441

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