OOFEM 3.0
Loading...
Searching...
No Matches
trwarp.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 tr_warp_h
36#define tr_warp_h
37
38#include "structuralelement.h"
39#include "spatiallocalizer.h"
41#include "fei2dtrlin.h"
42
43#define _IFT_Tr_Warp_Name "trwarp"
44
45
46namespace oofem {
51{
52protected:
54
55public:
56 Tr_Warp(int n, Domain *d);
57 virtual ~Tr_Warp();
59 double computeVolumeAround(GaussPoint *gp) override;
60 void giveEdgeDofMapping(IntArray &answer, int iEdge) const override;
61 void computeEdgeLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode);
62 void giveCharacteristicVector(FloatArray &answer, CharType mtrx, ValueModeType mode, TimeStep *tStep) override;
63 // definition
64 const char *giveInputRecordName() const override { return _IFT_Tr_Warp_Name; }
65 const char *giveClassName() const override { return "Tr_WarpElement"; }
66
67 int computeNumberOfDofs() override { return 4; }
68 void initializeFrom(InputRecord &ir, int priority) override;
69 MaterialMode giveMaterialMode() override { return _Warping; }
70 double giveThicknessAt(const FloatArray &gcoords);
71 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
72 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
73 void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override;
74 void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int li, int ui) override;
75 void giveDofManDofIDMask(int inode, IntArray &answer) const override;
76
78
79 void giveInternalDofManDofIDMask(int inode, IntArray &answer) const override;
80 DofManager *giveInternalDofManager(int i) const override;
81
82 int giveNumberOfInternalDofManagers() const override { return 1; }
83
86 int SpatialLocalizerI_containsPoint(const FloatArray &coords) override;
87
88 FEInterpolation *giveInterpolation() const override { return & this->interp; }
89 Element_Geometry_Type giveGeometryType() const override { return EGT_triangle_1; }
90#ifdef __OOFEG
91 // Graphics output
92 //void drawYourself(oofegGraphicContext&) override;
93 //void drawRawGeometry(oofegGraphicContext&) override {}
94 //void drawDeformedGeometry(oofegGraphicContext&, UnknownType) override {}
95#endif
96
97protected:
98 void computeGaussPoints() override;
99 double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override;
100 void transformCoordinates(FloatArray &answer, FloatArray &c, const int CGnumber);
101 void postInitialize() override;
102};
103} // end namespace oofem
104#endif // tr_warp_h
SpatialLocalizerInterface(Element *element)
StructuralElement(int n, Domain *d)
DofManager * giveInternalDofManager(int i) const override
Definition trwarp.C:322
bool ZZNodalRecoveryMI_computeNValProduct(FloatMatrix &answer, InternalStateType type, TimeStep *tStep) override
Definition trwarp.C:395
int computeNumberOfDofs() override
Definition trwarp.h:67
MaterialMode giveMaterialMode() override
Definition trwarp.h:69
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override
Definition trwarp.C:119
void postInitialize() override
Performs post initialization steps.
Definition trwarp.C:426
void ZZNodalRecoveryMI_computeNNMatrix(FloatArray &answer, InternalStateType type) override
Definition trwarp.C:351
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
Definition trwarp.C:105
void giveDofManDofIDMask(int inode, IntArray &answer) const override
Definition trwarp.C:300
void computeFirstMomentOfArea(FloatArray &answer)
Definition trwarp.C:179
void giveCharacteristicVector(FloatArray &answer, CharType mtrx, ValueModeType mode, TimeStep *tStep) override
Definition trwarp.C:69
void initializeFrom(InputRecord &ir, int priority) override
Definition trwarp.C:97
virtual ~Tr_Warp()
Definition trwarp.C:65
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int li, int ui) override
Definition trwarp.C:134
void computeEdgeLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode)
Definition trwarp.C:228
double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override
Definition trwarp.C:292
void computeGaussPoints() override
Definition trwarp.C:85
const char * giveClassName() const override
Definition trwarp.h:65
Interface * giveInterface(InterfaceType t) override
Definition trwarp.C:329
void transformCoordinates(FloatArray &answer, FloatArray &c, const int CGnumber)
Definition trwarp.C:164
double giveThicknessAt(const FloatArray &gcoords)
Definition trwarp.C:285
int giveNumberOfInternalDofManagers() const override
Definition trwarp.h:82
void giveInternalDofManDofIDMask(int inode, IntArray &answer) const override
Definition trwarp.C:314
const char * giveInputRecordName() const override
Definition trwarp.h:64
int SpatialLocalizerI_containsPoint(const FloatArray &coords) override
Definition trwarp.C:343
FEInterpolation * giveInterpolation() const override
Definition trwarp.h:88
Element_Geometry_Type giveGeometryType() const override
Definition trwarp.h:89
Tr_Warp(int n, Domain *d)
Definition trwarp.C:58
double computeVolumeAround(GaussPoint *gp) override
Definition trwarp.C:193
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition trwarp.C:112
static FEI2dTrLin interp
Definition trwarp.h:53
void giveEdgeDofMapping(IntArray &answer, int iEdge) const override
Definition trwarp.C:204
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
#define _IFT_Tr_Warp_Name
Definition trwarp.h:43

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