OOFEM 3.0
Loading...
Searching...
No Matches
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 - 2025 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
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
48namespace oofem {
49class ParamKey;
55{
56protected:
57 void updateYourself(TimeStep *tStep) override;
58 void postInitialize() override;
59
61
64
65public:
67
68 virtual ~TrPlaneStress2dXFEM();
69
70 int checkConsistency() override;
71
72 int testElementExtension(ElementExtension ext) override { return ( ( ext == Element_EdgeLoadSupport ) ? 1 : 0 ); }
73
75
76 const char *giveInputRecordName() const override { return _IFT_TrPlaneStress2dXFEM_Name; }
77 const char *giveClassName() const override { return "TrPlaneStress2dXFEM"; }
78
79 int computeNumberOfDofs() override;
80 void computeGaussPoints() override;
81 void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override;
82 void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx = 1, int upperIndx = ALL_STRAINS) override;
83 void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer) override;
84 void giveDofManDofIDMask(int inode, IntArray &answer) const override;
85 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
86 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
87 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override;
88
89 void computeDeformationGradientVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep) override;
90
91 void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord) override;
92
93 void computeConsistentMassMatrix(FloatMatrix &answer, TimeStep *tStep, double &mass, const double *ipDensity = NULL) override { XfemStructuralElementInterface :: XfemElementInterface_computeConsistentMassMatrix(answer, tStep, mass, ipDensity); }
94
96
97#ifdef __OOFEG
98 // TODO: Implement OOFEG functions
99 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
100 //void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType);
101 void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override;
102 //void drawSpecial(oofegGraphicContext &gc, TimeStep *tStep) override;
103#endif
104
105 void initializeFrom(InputRecord &ir, int priority) override;
106 MaterialMode giveMaterialMode() override;
107 void giveInputRecord(DynamicInputRecord &input) override;
108
109 void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer) override;
110 void giveElementDofIDMask(IntArray &answer) const override;
111
113 void giveCompositeExportData(std::vector< ExportRegion > &vtkPieces, IntArray &primaryVarsToExport, IntArray &internalVarsToExport, IntArray cellVarsToExport, TimeStep *tStep) override;
114
115};
116} /* namespace oofem */
117#endif /* TRPLANSTRSSXFEM_H_ */
int numberOfDofMans
Number of dofmanagers.
Definition element.h:136
Element_Geometry_Type giveGeometryType() const override
void updateYourself(TimeStep *tStep) override
int computeNumberOfDofs() override
static ParamKey IPK_TrPlaneStress2dXFEM_RegCoeff
TrPlaneStress2dXFEM(int n, Domain *d)
Interface * giveInterface(InterfaceType it) override
void initializeFrom(InputRecord &ir, int priority) override
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override
void computeGaussPoints() override
void postInitialize() override
Performs post initialization steps.
void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer) override
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx=1, int upperIndx=ALL_STRAINS) override
const char * giveClassName() const override
void giveElementDofIDMask(IntArray &answer) const override
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
void giveCompositeExportData(std::vector< ExportRegion > &vtkPieces, IntArray &primaryVarsToExport, IntArray &internalVarsToExport, IntArray cellVarsToExport, TimeStep *tStep) override
VTK Interface.
void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer) override
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
void computeDeformationGradientVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep) override
void giveInputRecord(DynamicInputRecord &input) override
MaterialMode giveMaterialMode() override
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord) override
void computeConsistentMassMatrix(FloatMatrix &answer, TimeStep *tStep, double &mass, const double *ipDensity=NULL) override
const char * giveInputRecordName() const override
int testElementExtension(ElementExtension ext) override
static ParamKey IPK_TrPlaneStress2dXFEM_RegCoeffTol
void giveDofManDofIDMask(int inode, IntArray &answer) const override
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
TrPlaneStress2d(int n, Domain *d)
Definition trplanstrss.C:58
@ Element_EdgeLoadSupport
Element extension for edge loads.
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define ALL_STRAINS
#define _IFT_TrPlaneStress2dXFEM_Name

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011