OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
trwarp.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 tr_warp_h
36 #define tr_warp_h
37 
38 #include "structuralelement.h"
39 #include "spatiallocalizer.h"
40 #include "zznodalrecoverymodel.h"
41 #include "fei2dtrlin.h"
42 
43 #define _IFT_Tr_Warp_Name "trwarp"
44 
45 
46 namespace oofem {
51 {
52 protected:
54 
55 public:
56  Tr_Warp(int n, Domain *d);
57  virtual ~Tr_Warp();
58  virtual void computeFirstMomentOfArea(FloatArray &answer);
59  virtual double computeVolumeAround(GaussPoint *gp);
60  virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const;
61  virtual void computeEdgeLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode);
62  virtual void giveCharacteristicVector(FloatArray &answer, CharType mtrx, ValueModeType mode,
63  TimeStep *tStep);
64  // definition
65  virtual const char *giveInputRecordName() const { return _IFT_Tr_Warp_Name; }
66  virtual const char *giveClassName() const { return "Tr_WarpElement"; }
67 
68  virtual int computeNumberOfDofs() { return 4; }
70  virtual MaterialMode giveMaterialMode() { return _Warping; }
71  virtual double giveThicknessAt(const FloatArray &gcoords);
72  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
73  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
74  virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer);
75  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int li, int ui);
76  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
77 
79 
80  virtual void giveInternalDofManDofIDMask(int inode, IntArray &answer) const;
81  virtual DofManager *giveInternalDofManager(int i) const;
82 
83  virtual int giveNumberOfInternalDofManagers() const { return 1; }
84 
85  virtual Element *ZZNodalRecoveryMI_giveElement() { return this; }
88  TimeStep *tStep);
89  virtual int SpatialLocalizerI_containsPoint(const FloatArray &coords);
90 
91  virtual FEInterpolation *giveInterpolation() const { return & this->interp; }
92  virtual Element_Geometry_Type giveGeometryType() const { return EGT_triangle_1; }
93 #ifdef __OOFEG
94  // Graphics output
95  //void drawYourself(oofegGraphicContext&);
96  //virtual void drawRawGeometry(oofegGraphicContext&) {}
97  //virtual void drawDeformedGeometry(oofegGraphicContext&, UnknownType) {}
98 #endif
99 
100 protected:
101  virtual void computeGaussPoints();
102  virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge);
103  void transformCoordinates(FloatArray &answer, FloatArray &c, const int CGnumber);
104  virtual void postInitialize();
105 };
106 } // end namespace oofem
107 #endif // tr_warp_h
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
virtual void postInitialize()
Performs post initialization steps.
Definition: trwarp.C:432
virtual DofManager * giveInternalDofManager(int i) const
Returns i-th internal element dof manager of the receiver.
Definition: trwarp.C:323
Class and object Domain.
Definition: domain.h:115
static FEI2dTrLin interp
Definition: trwarp.h:53
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: trwarp.h:68
virtual void computeFirstMomentOfArea(FloatArray &answer)
Definition: trwarp.C:180
Element_Geometry_Type
Enumerative type used to classify element geometry Possible values are: EGT_point - point in space EG...
virtual bool ZZNodalRecoveryMI_computeNValProduct(FloatMatrix &answer, InternalStateType type, TimeStep *tStep)
Computes the element contribution to , where is quantity to be recovered (for example stress or stra...
Definition: trwarp.C:399
virtual Element * ZZNodalRecoveryMI_giveElement()
Definition: trwarp.h:85
virtual int SpatialLocalizerI_containsPoint(const FloatArray &coords)
Checks if element contains specified coordinate.
Definition: trwarp.C:344
virtual Element_Geometry_Type giveGeometryType() const
Returns the element geometry type.
Definition: trwarp.h:92
The element interface required by ZZNodalRecoveryModel.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: trwarp.C:98
virtual void ZZNodalRecoveryMI_computeNNMatrix(FloatArray &answer, InternalStateType type)
Computes the element contribution to term.
Definition: trwarp.C:352
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
#define _IFT_Tr_Warp_Name
Definition: trwarp.h:43
virtual FEInterpolation * giveInterpolation() const
Definition: trwarp.h:91
Abstract base class for all finite elements.
Definition: element.h:145
Base class for dof managers.
Definition: dofmanager.h:113
virtual ~Tr_Warp()
Definition: trwarp.C:65
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const
Assembles edge dof mapping mask, which provides mapping between edge local DOFs and "global" element ...
Definition: trwarp.C:205
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual void giveCharacteristicVector(FloatArray &answer, CharType mtrx, ValueModeType mode, TimeStep *tStep)
Computes characteristic vector of receiver of requested type in given time step.
Definition: trwarp.C:69
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: trwarp.C:86
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
Abstract base class for all "structural" finite elements.
Class representing a 2d triangular linear interpolation based on area coordinates.
Definition: fei2dtrlin.h:44
virtual const char * giveClassName() const
Definition: trwarp.h:66
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes constitutive matrix of receiver.
Definition: trwarp.C:113
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
Definition: trwarp.C:301
Tr_Warp(int n, Domain *d)
Definition: trwarp.C:58
virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer)
Computes interpolation matrix for element unknowns.
Definition: trwarp.C:120
void transformCoordinates(FloatArray &answer, FloatArray &c, const int CGnumber)
Definition: trwarp.C:165
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: trwarp.C:106
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: trwarp.h:70
virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
Computes volume related to integration point on local edge.
Definition: trwarp.C:293
virtual void giveInternalDofManDofIDMask(int inode, IntArray &answer) const
Returns internal dofmanager dof mask for node.
Definition: trwarp.C:315
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
virtual void computeEdgeLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode)
Definition: trwarp.C:229
CharType
Definition: chartype.h:87
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int li, int ui)
Computes the geometrical matrix of receiver in given integration point.
Definition: trwarp.C:135
Class Interface.
Definition: interface.h:82
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: trwarp.C:194
The spatial localizer element interface associated to spatial localizer.
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual double giveThicknessAt(const FloatArray &gcoords)
Definition: trwarp.C:286
Load is base abstract class for all loads.
Definition: load.h:61
Triangle (2d) element with linear approximation for free warping analysis.
Definition: trwarp.h:50
virtual Interface * giveInterface(InterfaceType t)
Interface requesting service.
Definition: trwarp.C:330
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual const char * giveInputRecordName() const
Definition: trwarp.h:65
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual int giveNumberOfInternalDofManagers() const
Definition: trwarp.h:83

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