OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
trplanstrssxfem.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 TRPLANSTRSSXFEM_H_
36 #define TRPLANSTRSSXFEM_H_
37 
38 #include "../sm/Elements/PlaneStress/trplanstrss.h"
39 #include "../sm/xfem/xfemstructuralelementinterface.h"
40 #include "vtkxmlexportmodule.h"
41 
42 
43 #define _IFT_TrPlaneStress2dXFEM_Name "trplanestress2dxfem"
44 
45 #define _IFT_TrPlaneStress2dXFEM_RegCoeff "reg_coeff"
46 #define _IFT_TrPlaneStress2dXFEM_RegCoeffTol "reg_coeff_tol"
47 
48 namespace oofem {
54 {
55 protected:
56  virtual void updateYourself(TimeStep *tStep);
57  virtual void postInitialize();
58 
60 
61 public:
62  TrPlaneStress2dXFEM(int n, Domain * d) : TrPlaneStress2d(n, d), XfemStructuralElementInterface(this), VTKXMLExportModuleElementInterface() { numberOfDofMans = 3; mRegCoeff = 1.0e-6; mRegCoeffTol = 1.0e-6;}
63 
64  virtual ~TrPlaneStress2dXFEM();
65 
66  virtual int checkConsistency();
67 
68  virtual int testElementExtension(ElementExtension ext) { return ( ( ext == Element_EdgeLoadSupport ) ? 1 : 0 ); }
69 
71 
72  virtual const char *giveInputRecordName() const { return _IFT_TrPlaneStress2dXFEM_Name; }
73  virtual const char *giveClassName() const { return "TrPlaneStress2dXFEM"; }
74 
75  virtual int computeNumberOfDofs();
76  virtual void computeGaussPoints();
77  virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer);
78  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer,
79  int lowerIndx = 1, int upperIndx = ALL_STRAINS);
80  virtual void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer);
81  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
82  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *, TimeStep *tStep);
83  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
84  virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep);
85 
86  virtual void computeDeformationGradientVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep);
87 
88  virtual void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord);
89 
90  virtual void computeConsistentMassMatrix(FloatMatrix &answer, TimeStep *tStep, double &mass, const double *ipDensity = NULL) { XfemStructuralElementInterface :: XfemElementInterface_computeConsistentMassMatrix(answer, tStep, mass, ipDensity); }
91 
93 
94 #ifdef __OOFEG
95  // TODO: Implement OOFEG functions
96  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
97  //void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType);
98  virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep);
99  //virtual void drawSpecial(oofegGraphicContext &gc, TimeStep *tStep);
100 #endif
101 
103  virtual MaterialMode giveMaterialMode();
104  virtual void giveInputRecord(DynamicInputRecord &input);
105 
106  virtual void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer);
107  virtual void giveElementDofIDMask(IntArray &answer) const;
108 
110  virtual void giveCompositeExportData(std::vector< VTKPiece > &vtkPieces, IntArray &primaryVarsToExport, IntArray &internalVarsToExport, IntArray cellVarsToExport, TimeStep *tStep);
111 
112 };
113 } /* namespace oofem */
114 #endif /* TRPLANSTRSSXFEM_H_ */
virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep)
virtual void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord)
Evaluates nodal representation of real internal forces.
Class and object Domain.
Definition: domain.h:115
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
Element_Geometry_Type
Enumerative type used to classify element geometry Possible values are: EGT_point - point in space EG...
virtual void XfemElementInterface_computeConsistentMassMatrix(FloatMatrix &answer, TimeStep *tStep, double &mass, const double *ipDensity=NULL)
#define _IFT_TrPlaneStress2dXFEM_Name
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
Elements with geometry defined as EGT_Composite are exported using individual pieces.
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
virtual void computeConsistentMassMatrix(FloatMatrix &answer, TimeStep *tStep, double &mass, const double *ipDensity=NULL)
Computes consistent mass matrix of receiver using numerical integration over element volume...
virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep)
Computes the stiffness matrix of receiver.
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx=1, int upperIndx=ALL_STRAINS)
Computes the geometrical matrix of receiver in given integration point.
virtual int testElementExtension(ElementExtension ext)
Tests if the element implements required extension.
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.
virtual int computeNumberOfDofs()
Computes or simply returns total number of element&#39;s local DOFs.
virtual int checkConsistency()
Performs consistency check.
ElementExtension
Type representing element extension.
TrPlaneStress2dXFEM(int n, Domain *d)
virtual void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer)
Computes a matrix which, multiplied by the column matrix of nodal displacements, gives the displaceme...
virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep)
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
virtual void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer)
Computes the unknown vector interpolated at the specified local coordinates.
virtual const char * giveClassName() const
virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer)
Computes interpolation matrix for element unknowns.
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
#define ALL_STRAINS
Provides Xfem interface for a structural element.
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual Element_Geometry_Type giveGeometryType() const
Returns the element geometry type.
virtual void computeDeformationGradientVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep)
Computes the deformation gradient in Voigt form at integration point ip and at time step tStep...
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
Class representing the general Input Record.
Definition: inputrecord.h:101
This class implements an triangular three-node plane-stress elasticity finite element.
Definition: trplanstrss.h:60
Class Interface.
Definition: interface.h:82
3-node triangle with XFEM kinematics
Class representing the a dynamic Input Record.
virtual const char * giveInputRecordName() const
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual void updateYourself(TimeStep *tStep)
Updates element state after equilibrium in time step has been reached.
virtual void giveCompositeExportData(std::vector< VTKPiece > &vtkPieces, IntArray &primaryVarsToExport, IntArray &internalVarsToExport, IntArray cellVarsToExport, TimeStep *tStep)
VTK Interface.
virtual void giveElementDofIDMask(IntArray &answer) const
Returns element dof mask for node.
virtual void postInitialize()
Performs post initialization steps.
virtual Interface * giveInterface(InterfaceType it)
Interface requesting service.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *, TimeStep *tStep)
Computes constitutive matrix of receiver.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
int numberOfDofMans
Number of dofmanagers.
Definition: element.h:149
Element extension for edge loads.

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