OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
trplanstrss.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 trplanstrss_h
36 #define trplanstrss_h
37 
42 #include "zznodalrecoverymodel.h"
44 #include "sprnodalrecoverymodel.h"
45 #include "spatiallocalizer.h"
47 
48 #define _IFT_TrPlaneStress2d_Name "trplanestress2d"
49 
50 namespace oofem {
51 class FEI2dTrLin;
52 
65 {
66 protected:
68  double area;
69 
70 public:
71  TrPlaneStress2d(int n, Domain * d);
72  virtual ~TrPlaneStress2d() { }
73 
74  virtual FEInterpolation *giveInterpolation() const;
75  virtual double giveCharacteristicSize(GaussPoint *gp, FloatArray &normalToCrackPlane, ElementCharSizeMethod method);
76  virtual double giveParentElSize() const { return 0.5; }
78 
79 #ifdef __OOFEG
80  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
82  virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep);
83  virtual void drawSpecial(oofegGraphicContext &gc, TimeStep *tStep);
84 #endif
85 
86  // definition & identification
87  virtual const char *giveInputRecordName() const { return _IFT_TrPlaneStress2d_Name; }
88  virtual const char *giveClassName() const { return "TrPlaneStress2d"; }
89 
91  InternalStateType type, TimeStep *tStep);
92 
94  virtual void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap);
97 
98  // HuertaErrorEstimatorInterface
99  virtual void HuertaErrorEstimatorI_setupRefinedElementProblem(RefinedElement *refinedElement, int level, int nodeId,
100  IntArray &localNodeIdArray, IntArray &globalNodeIdArray,
102  int &localNodeId, int &localElemId, int &localBcId,
103  IntArray &controlNode, IntArray &controlDof,
106 
107 protected:
108 
109  virtual double giveArea();
110  virtual int giveNumberOfIPForMassMtrxIntegration() { return 4; }
111 };
112 } // end namespace oofem
113 #endif // trplanstrss_h
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
The element interface required by NodalAvergagingRecoveryModel.
The element interface required by ZZNodalRecoveryModel.
virtual SPRPatchType SPRNodalRecoveryMI_givePatchType()
Definition: trplanstrss.C:532
Class and object Domain.
Definition: domain.h:115
virtual ~TrPlaneStress2d()
Definition: trplanstrss.h:72
virtual FEInterpolation * giveInterpolation() const
Definition: trplanstrss.C:69
The element interface required by ZZNodalRecoveryModel.
virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep)
Definition: trplanstrss.C:320
virtual void HuertaErrorEstimatorI_computeNmatrixAt(GaussPoint *gp, FloatMatrix &answer)
Definition: trplanstrss.C:251
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep)
Definition: trplanstrss.C:259
virtual void drawSpecial(oofegGraphicContext &gc, TimeStep *tStep)
Definition: trplanstrss.C:411
virtual void HuertaErrorEstimatorI_setupRefinedElementProblem(RefinedElement *refinedElement, int level, int nodeId, IntArray &localNodeIdArray, IntArray &globalNodeIdArray, HuertaErrorEstimatorInterface::SetupMode sMode, TimeStep *tStep, int &localNodeId, int &localElemId, int &localBcId, IntArray &controlNode, IntArray &controlDof, HuertaErrorEstimator::AnalysisMode aMode)
Definition: trplanstrss.C:196
Class implementing an array of integers.
Definition: intarray.h:61
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
TrPlaneStress2d(int n, Domain *d)
Definition: trplanstrss.C:58
virtual void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap)
Definition: trplanstrss.C:512
Class representing a 2d triangular linear interpolation based on area coordinates.
Definition: fei2dtrlin.h:44
virtual double giveCharacteristicSize(GaussPoint *gp, FloatArray &normalToCrackPlane, ElementCharSizeMethod method)
Returns characteristic element size for a given integration point and given direction.
Definition: trplanstrss.C:104
virtual double giveArea()
Definition: trplanstrss.C:92
The element interface corresponding to ZZErrorEstimator.
The element interface corresponding to HuertaErrorEstimator.
virtual void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType)
Definition: trplanstrss.C:290
virtual int SPRNodalRecoveryMI_giveNumberOfIP()
Definition: trplanstrss.C:525
UnknownType
Type representing particular unknown (its physical meaning).
Definition: unknowntype.h:55
virtual void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep)
Computes the element value in given node.
Definition: trplanstrss.C:186
virtual double giveParentElSize() const
Returns the size (length, area or volume depending on element type) of the parent element...
Definition: trplanstrss.h:76
virtual Interface * giveInterface(InterfaceType)
Interface requesting service.
Definition: trplanstrss.C:72
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual const char * giveClassName() const
Definition: trplanstrss.h:88
This class implements an triangular three-node plane-stress elasticity finite element.
Definition: trplanstrss.h:60
Class Interface.
Definition: interface.h:82
virtual int giveNumberOfIPForMassMtrxIntegration()
Return desired number of integration points for consistent mass matrix computation, if required.
Definition: trplanstrss.h:110
#define _IFT_TrPlaneStress2d_Name
Definition: trplanstrss.h:48
The spatial localizer element interface associated to spatial localizer.
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual const char * giveInputRecordName() const
Definition: trplanstrss.h:87
virtual void SPRNodalRecoveryMI_giveSPRAssemblyPoints(IntArray &pap)
Definition: trplanstrss.C:503
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
static FEI2dTrLin interp
Definition: trplanstrss.h:67

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