OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
qtrplanstrssxfem.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 QTRPLANSTRSSXFEM_H_
36 #define QTRPLANSTRSSXFEM_H_
37 
38 #include "../sm/Elements/PlaneStress/qtrplstr.h"
39 #include "../sm/xfem/xfemstructuralelementinterface.h"
40 #include "vtkxmlexportmodule.h"
41 
42 #include "domain.h"
43 
44 #define _IFT_QTrPlaneStress2dXFEM_Name "qtrplanestress2dxfem"
45 #define _IFT_QTrPlaneStress2dXFEM_RegCoeff "reg_coeff"
46 #define _IFT_QTrPlaneStress2dXFEM_RegCoeffTol "reg_coeff_tol"
47 
48 namespace oofem {
49 
50 
57 {
58 protected:
59  virtual void updateYourself(TimeStep *tStep);
60  virtual void postInitialize();
61 
63 
64 public:
65  QTrPlaneStress2dXFEM(int n, Domain * d) : QTrPlaneStress2d(n, d), XfemStructuralElementInterface(this), VTKXMLExportModuleElementInterface() { numberOfDofMans = 6; mRegCoeff = 1.0e-6; mRegCoeffTol = 1.0e-6; }
66  virtual ~QTrPlaneStress2dXFEM();
67 
69 
70  virtual const char *giveInputRecordName() const { return _IFT_QTrPlaneStress2dXFEM_Name; }
71  virtual const char *giveClassName() const { return "QTrPlaneStress2dXFEM"; }
72 
73 
74  virtual int computeNumberOfDofs();
75  virtual void computeGaussPoints();
76  virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer);
77  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer,
78  int lowerIndx = 1, int upperIndx = ALL_STRAINS);
79  virtual void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer);
80 
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  virtual void computeConsistentMassMatrix(FloatMatrix &answer, TimeStep *tStep, double &mass, const double *ipDensity = NULL) { XfemStructuralElementInterface :: XfemElementInterface_computeConsistentMassMatrix(answer, tStep, mass, ipDensity); }
90 
92 
95  virtual void giveInputRecord(DynamicInputRecord &input);
96 
97  virtual void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer);
98 
100  virtual void giveCompositeExportData(std::vector< VTKPiece > &vtkPieces, IntArray &primaryVarsToExport, IntArray &internalVarsToExport, IntArray cellVarsToExport, TimeStep *tStep);
101 
102 protected:
103  virtual int giveNumberOfIPForMassMtrxIntegration() { return 6; } // TODO: Check
104 
105 };
106 
107 } /* namespace OOFEM */
108 #endif /* QTRPLANSTRSSXFEM_H_ */
virtual void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer)
Computes the unknown vector interpolated at the specified local coordinates.
virtual Element_Geometry_Type giveGeometryType() const
Returns the element geometry type.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Class and object Domain.
Definition: domain.h:115
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)
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
virtual void postInitialize()
Performs post initialization steps.
Elements with geometry defined as EGT_Composite are exported using individual pieces.
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 void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
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.
6-node triangle with XFEM kinematics.
#define _IFT_QTrPlaneStress2dXFEM_Name
virtual void giveCompositeExportData(std::vector< VTKPiece > &vtkPieces, IntArray &primaryVarsToExport, IntArray &internalVarsToExport, IntArray cellVarsToExport, TimeStep *tStep)
VTK Interface.
This class implements a quadratic triangular 6-node plane- stress elasticity finite element...
Definition: qtrplstr.h:53
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 giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
virtual void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer)
Computes a matrix which, multiplied by the column matrix of nodal displacements, gives the displaceme...
virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx=1, int upperIndx=ALL_STRAINS)
Computes the geometrical matrix of receiver in given integration point.
#define ALL_STRAINS
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...
Provides Xfem interface for a structural element.
virtual Interface * giveInterface(InterfaceType it)
Interface requesting service.
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 computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer)
Computes interpolation matrix for element unknowns.
Class representing the general Input Record.
Definition: inputrecord.h:101
QTrPlaneStress2dXFEM(int n, Domain *d)
virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep)
Computes the stiffness matrix of receiver.
Class Interface.
Definition: interface.h:82
virtual void updateYourself(TimeStep *tStep)
Updates element state after equilibrium in time step has been reached.
Class representing the a dynamic Input Record.
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
virtual const char * giveClassName() const
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual const char * giveInputRecordName() const
virtual void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord)
Evaluates nodal representation of real internal forces.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual int giveNumberOfIPForMassMtrxIntegration()
Return desired number of integration points for consistent mass matrix computation, if required.
int numberOfDofMans
Number of dofmanagers.
Definition: element.h:149
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *, TimeStep *tStep)
Computes constitutive matrix of receiver.

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