OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
qdkt.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 qdkt_h
36 #define qdkt_h
37 
38 #include "../sm/Elements/nlstructuralelement.h"
39 #include "../sm/CrossSections/layeredcrosssection.h"
40 #include "../sm/ErrorEstimators/zzerrorestimator.h"
41 #include "zznodalrecoverymodel.h"
43 #include "sprnodalrecoverymodel.h"
44 
45 #define _IFT_QDKTPlate_Name "qdktplate"
46 
47 namespace oofem {
48 class FEI2dQuadLin;
49 
68 {
69 protected:
72 
73 public:
74  QDKTPlate(int n, Domain * d);
75  virtual ~QDKTPlate() { }
76 
77  virtual FEInterpolation *giveInterpolation() const;
78  virtual FEInterpolation *giveInterpolation(DofIDItem id) const;
79 
80  virtual MaterialMode giveMaterialMode() { return _2dPlate; }
81  virtual int testElementExtension(ElementExtension ext) { return ( ( ( ext == Element_EdgeLoadSupport ) || ( ext == Element_SurfaceLoadSupport ) ) ? 1 : 0 ); }
82 
83 protected:
84  virtual void computeGaussPoints();
85  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int = 1, int = ALL_STRAINS);
86  virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer);
87 
88  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
89  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
90 
91 
92  virtual void giveNodeCoordinates(double &x1, double &x2, double &x3, double &x4,
93  double &y1, double &y2, double &y3, double &y4,
94  double &z1, double &z2, double &z3, double &z4);
95 
96  virtual void computeBodyLoadVectorAt(FloatArray &answer, Load *forLoad, TimeStep *tStep, ValueModeType mode);
97 
102  virtual void computeSurfaceNMatrix (FloatMatrix &answer, int boundaryID, const FloatArray& lcoords);
103  virtual void computeSurfaceNMatrixAt(FloatMatrix &answer, int iSurf, GaussPoint *gp);
104  virtual void giveSurfaceDofMapping(IntArray &answer, int iSurf) const;
105  virtual IntegrationRule *GetSurfaceIntegrationRule(int iSurf);
106  virtual double computeSurfaceVolumeAround(GaussPoint *gp, int iSurf);
107  virtual int computeLoadLSToLRotationMatrix(FloatMatrix &answer, int iSurf, GaussPoint *gp);
109 
113  virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const;
114  virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge);
115  virtual int computeLoadLEToLRotationMatrix(FloatMatrix &answer, int iEdge, GaussPoint *gp);
117 
118 
119 
120 
121 public:
122  // definition & identification
123  virtual const char *giveClassName() const { return "QDKTPlate"; }
124  virtual const char *giveInputRecordName() const { return _IFT_QDKTPlate_Name; }
126 
127  virtual int computeNumberOfDofs() { return 12; }
128  virtual void giveDofManDofIDMask(int inode, IntArray &) const;
129 
130  virtual void computeMidPlaneNormal(FloatArray &answer, const GaussPoint *gp);
131 
132  virtual double giveCharacteristicLength(const FloatArray &normalToCrackPlane);
133  virtual double computeVolumeAround(GaussPoint *gp);
134 
136 
137  virtual bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords);
138  virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep);
139 
141  virtual void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap);
144 
145  // layered cross section support functions
146  virtual void computeStrainVectorInLayer(FloatArray &answer, const FloatArray &masterGpStrain,
147  GaussPoint *masterGp, GaussPoint *slaveGp, TimeStep *tStep);
148 
149 #ifdef __OOFEG
150  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
151  virtual void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType type);
152  virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep);
153 #endif
154 };
155 } // end namespace oofem
156 #endif // qdkt_h
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
virtual int testElementExtension(ElementExtension ext)
Tests if the element implements required extension.
Definition: qdkt.h:81
The element interface required by ZZNodalRecoveryModel.
virtual const char * giveInputRecordName() const
Definition: qdkt.h:124
#define _IFT_QDKTPlate_Name
Definition: qdkt.h:45
virtual bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords)
Computes the element local coordinates from given global coordinates.
Definition: qdkt.C:456
Class and object Domain.
Definition: domain.h:115
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: qdkt.C:83
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: qdkt.h:80
virtual FEInterpolation * giveInterpolation() const
Definition: qdkt.C:72
The element interface required by ZZNodalRecoveryModel.
Abstract base class for "structural" finite elements with geometrical nonlinearities.
virtual void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap)
Definition: qdkt.C:546
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
virtual void computeMidPlaneNormal(FloatArray &answer, const GaussPoint *gp)
Computes mid-plane normal of receiver at integration point.
Definition: qdkt.C:361
virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer)
Computes interpolation matrix for element unknowns.
Definition: qdkt.C:286
virtual ~QDKTPlate()
Definition: qdkt.h:75
static FEI2dQuadLin interp_lin
Element geometry approximation.
Definition: qdkt.h:71
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: qdkt.C:347
This class implements an quad Discrete Kirchhoff Theory (DKT) element.
Definition: qdkt.h:63
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
virtual double giveCharacteristicLength(const FloatArray &normalToCrackPlane)
Returns the size of element in the given direction, in some cases adjusted (e.g.
Definition: qdkt.C:374
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual void giveDofManDofIDMask(int inode, IntArray &) const
Returns dofmanager dof mask for node.
Definition: qdkt.C:354
virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep)
Definition: qdkt.C:708
Abstract base class representing integration rule.
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: qdkt.C:617
virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int=1, int=ALL_STRAINS)
Computes the geometrical matrix of receiver in given integration point.
Definition: qdkt.C:94
Element extension for surface loads.
QDKTPlate(int n, Domain *d)
Definition: qdkt.C:60
virtual SPRPatchType SPRNodalRecoveryMI_givePatchType()
Definition: qdkt.C:561
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: qdkt.h:127
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
virtual double computeSurfaceVolumeAround(GaussPoint *gp, int iSurf)
Computes volume related to integration point on local surface.
Definition: qdkt.C:690
virtual int SPRNodalRecoveryMI_giveNumberOfIP()
Definition: qdkt.h:142
The element interface corresponding to ZZErrorEstimator.
virtual const char * giveClassName() const
Definition: qdkt.h:123
ElementExtension
Type representing element extension.
DofIDItem
Type representing particular dof type.
Definition: dofiditem.h:86
UnknownType
Type representing particular unknown (its physical meaning).
Definition: unknowntype.h:55
virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep)
Definition: qdkt.C:784
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: qdkt.C:304
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes constitutive matrix of receiver.
Definition: qdkt.C:311
#define ALL_STRAINS
virtual void giveEdgeDofMapping(IntArray &answer, int iEdge) const
Assembles edge dof mapping mask, which provides mapping between edge local DOFs and "global" element ...
Definition: qdkt.C:593
int numberOfGaussPoints
Number of integration points as specified by nip.
Definition: element.h:188
virtual void giveSurfaceDofMapping(IntArray &answer, int iSurf) const
Assembles surface dof mapping mask, which provides mapping between surface local DOFs and "global" el...
Definition: qdkt.C:667
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: qdkt.C:414
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
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: qdkt.C:697
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in full form.
Definition: qdkt.C:498
virtual IntegrationRule * GetSurfaceIntegrationRule(int iSurf)
Definition: qdkt.C:681
Class representing the general Input Record.
Definition: inputrecord.h:101
Class Interface.
Definition: interface.h:82
virtual void computeSurfaceNMatrix(FloatMatrix &answer, int boundaryID, const FloatArray &lcoords)
Computes surface interpolation matrix.
Definition: qdkt.C:659
virtual void giveNodeCoordinates(double &x1, double &x2, double &x3, double &x4, double &y1, double &y2, double &y3, double &y4, double &z1, double &z2, double &z3, double &z4)
Definition: qdkt.C:318
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: qdkt.C:385
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
Computes volume related to integration point on local edge.
Definition: qdkt.C:609
Load is base abstract class for all loads.
Definition: load.h:61
The element interface required by LayeredCrossSection.
Class representing a 2d isoparametric linear interpolation based on natural coordinates for quadrilat...
Definition: fei2dquadlin.h:45
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual Interface * giveInterface(InterfaceType it)
Interface requesting service.
Definition: qdkt.C:397
virtual void SPRNodalRecoveryMI_giveSPRAssemblyPoints(IntArray &pap)
Definition: qdkt.C:535
virtual void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType type)
Definition: qdkt.C:746
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.
virtual void computeSurfaceNMatrixAt(FloatMatrix &answer, int iSurf, GaussPoint *gp)
Definition: qdkt.C:653
virtual void computeStrainVectorInLayer(FloatArray &answer, const FloatArray &masterGpStrain, GaussPoint *masterGp, GaussPoint *slaveGp, TimeStep *tStep)
Computes full 3D strain vector in element layer.
Definition: qdkt.C:571

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