OOFEM 3.0
Loading...
Searching...
No Matches
htselement.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 htselement_h
36#define htselement_h
37
40
41#define _IFT_HTSelement_Name "htselement"
42
43namespace oofem {
50{
51protected:
53 //debug
54 double lambda, mu;
55 double cgX, cgY;
58
59public:
60 HTSelement(int n, Domain * d);
61 virtual ~HTSelement() { }
62
63 void postInitialize() override;
64
65 const char *giveInputRecordName() const override { return _IFT_HTSelement_Name; }
66 const char *giveClassName() const override { return "HTSelement"; }
67 Element_Geometry_Type giveGeometryType() const override {return EGT_unknown;}
68
69
70protected:
71 void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int, int) override { }
72 void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override { }
73 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override;
74 double computeVolumeAroundSide(GaussPoint *gp, int elemSideNumber);
75 Node *giveSideNode(int elementSideNumber, int nodeNumber);
76 double giveSideLength(int sideNumber);
77 int computeNumberOfDofs() override { return 4 * numberOfEdges; }
78 void computeGaussPoints() override;
79 void giveDofManDofIDMask(int inode, IntArray &) const override;
80 virtual StructuralElement *giveStructuralElement() { return this; }
81 //jak se pocita deformace???
82 void computeStrainVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep) override { answer.resize(numberOfStressDofs); }
83 //dodelat vypocet napeti!!!
84 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override { answer.resize(numberOfStressDofs); }
85 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override {
86 OOFEM_ERROR("Function not defined for this element and should never be called. This is a bug.");
87 }
88 //dodelat internal forces, budou potreba pro nelinearni vypocet
89 void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord) override { answer.resize(numberOfDofs); }
90
91 void computePuVectorAt(FloatArray &answer, FloatMatrix N, FloatArray u, GaussPoint *gp, int sideNumber);
93 void computePrescribedDisplacementLoadVectorAt(FloatArray &answer, TimeStep *tStep, ValueModeType mode);
94 int testElementExtension(ElementExtension ext) override { return ( ext == Element_EdgeLoadSupport ); }
95
96 void computeFMatrixAt(FloatMatrix &answer, FloatMatrix N, GaussPoint *gp, int sideNumber);
97 void computeAMatrixAt(FloatMatrix &answer, FloatMatrix N, GaussPoint *gp, int sideNumber);
98 void computeUvMatrixAt(FloatMatrix &answer, GaussPoint *gp, int sideNubmer);
99 void computeSvMatrixAt(FloatMatrix &answer, GaussPoint *gp, int sideNumber);
101 void computeOutwardNormalMatrix(FloatMatrix &answer, int sideNumber);
102
104 int giveNumberOfNodes() const override { return numberOfEdges; }
105 //uv functions
106 void uv1(FloatArray &answer, double x, double y);
107 void uv2(FloatArray &answer, double x, double y);
108 void uv3(FloatArray &answer, double x, double y);
109 void uv4(FloatArray &answer, double x, double y);
110 void uv5(FloatArray &answer, double x, double y);
111 void uv6(FloatArray &answer, double x, double y);
112 void uv7(FloatArray &answer, double x, double y);
113 void uv8(FloatArray &answer, double x, double y);
114 void uv9(FloatArray &answer, double x, double y);
115 void uv10(FloatArray &answer, double x, double y);
116 void uv11(FloatArray &answer, double x, double y);
117 void uv12(FloatArray &answer, double x, double y);
118 void uv25_4(FloatArray &answer, double x, double y);
119
120 //sv functions
121 void sv1(FloatArray &answer, double x, double y);
122 void sv2(FloatArray &answer, double x, double y);
123 void sv3(FloatArray &answer, double x, double y);
124 void sv4(FloatArray &answer, double x, double y);
125 void sv5(FloatArray &answer, double x, double y);
126 void sv6(FloatArray &answer, double x, double y);
127 void sv7(FloatArray &answer, double x, double y);
128 void sv8(FloatArray &answer, double x, double y);
129 void sv9(FloatArray &answer, double x, double y);
130 void sv10(FloatArray &answer, double x, double y);
131 void sv11(FloatArray &answer, double x, double y);
132 void sv12(FloatArray &answer, double x, double y);
133 void sv25_4(FloatArray &answer, double x, double y);
134
135 //u_gamma functions
136 double u_gammaConst(GaussPoint *gp);
137 double u_gammaLin(GaussPoint *gp);
138};
139} // end namespace oofem
140#endif // htselement_h
#define N(a, b)
void resize(Index s)
Definition floatarray.C:94
void giveDofManDofIDMask(int inode, IntArray &) const override
Definition htselement.C:63
void computePuVectorAt(FloatArray &answer, FloatMatrix N, FloatArray u, GaussPoint *gp, int sideNumber)
Definition htselement.C:204
void sv1(FloatArray &answer, double x, double y)
Definition htselement.C:537
double u_gammaConst(GaussPoint *gp)
Definition htselement.C:890
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
Definition htselement.C:163
int computeNumberOfDofs() override
Definition htselement.h:77
void uv11(FloatArray &answer, double x, double y)
Definition htselement.C:643
double computeVolumeAroundSide(GaussPoint *gp, int elemSideNumber)
Definition htselement.C:141
void uv2(FloatArray &answer, double x, double y)
Definition htselement.C:516
void sv7(FloatArray &answer, double x, double y)
Definition htselement.C:613
void uv9(FloatArray &answer, double x, double y)
Definition htselement.C:629
const char * giveClassName() const override
Definition htselement.h:66
const char * giveInputRecordName() const override
Definition htselement.h:65
void computeAMatrixAt(FloatMatrix &answer, FloatMatrix N, GaussPoint *gp, int sideNumber)
Definition htselement.C:310
void uv1(FloatArray &answer, double x, double y)
Definition htselement.C:509
void computeSvMatrixAt(FloatMatrix &answer, GaussPoint *gp, int sideNumber)
Definition htselement.C:395
void sv3(FloatArray &answer, double x, double y)
Definition htselement.C:553
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
Definition htselement.h:84
virtual ~HTSelement()
Definition htselement.h:61
void computeFMatrixAt(FloatMatrix &answer, FloatMatrix N, GaussPoint *gp, int sideNumber)
Definition htselement.C:294
virtual StructuralElement * giveStructuralElement()
Definition htselement.h:80
void sv10(FloatArray &answer, double x, double y)
Definition htselement.C:665
void uv12(FloatArray &answer, double x, double y)
Definition htselement.C:650
void uv8(FloatArray &answer, double x, double y)
Definition htselement.C:590
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
Definition htselement.h:85
void computePrescribedDisplacementLoadVectorAt(FloatArray &answer, TimeStep *tStep, ValueModeType mode)
Definition htselement.C:228
void sv8(FloatArray &answer, double x, double y)
Definition htselement.C:621
void uv6(FloatArray &answer, double x, double y)
Definition htselement.C:576
void computePsVectorAt(FloatArray &answer, FloatArray t, GaussPoint *gp)
Definition htselement.C:217
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override
Definition htselement.h:72
void sv4(FloatArray &answer, double x, double y)
Definition htselement.C:561
void uv4(FloatArray &answer, double x, double y)
Definition htselement.C:530
Element_Geometry_Type giveGeometryType() const override
Definition htselement.h:67
void computeUgammaMatrixAt(FloatMatrix &answer, GaussPoint *gp)
Definition htselement.C:484
void postInitialize() override
Performs post initialization steps.
Definition htselement.C:75
double u_gammaLin(GaussPoint *gp)
Definition htselement.C:896
void computeCenterOfGravity()
Definition htselement.C:97
void sv2(FloatArray &answer, double x, double y)
Definition htselement.C:545
void sv25_4(FloatArray &answer, double x, double y)
Definition htselement.C:880
int testElementExtension(ElementExtension ext) override
Definition htselement.h:94
void uv3(FloatArray &answer, double x, double y)
Definition htselement.C:523
double giveSideLength(int sideNumber)
Definition htselement.C:149
void sv11(FloatArray &answer, double x, double y)
Definition htselement.C:673
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int, int) override
Definition htselement.h:71
void uv25_4(FloatArray &answer, double x, double y)
Definition htselement.C:873
void computeUvMatrixAt(FloatMatrix &answer, GaussPoint *gp, int sideNubmer)
Definition htselement.C:324
int giveNumberOfNodes() const override
Definition htselement.h:104
void computeOutwardNormalMatrix(FloatMatrix &answer, int sideNumber)
Definition htselement.C:275
Node * giveSideNode(int elementSideNumber, int nodeNumber)
Definition htselement.C:122
void uv10(FloatArray &answer, double x, double y)
Definition htselement.C:636
void computeStrainVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep) override
Definition htselement.h:82
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord) override
Definition htselement.h:89
void sv9(FloatArray &answer, double x, double y)
Definition htselement.C:657
void computeGaussPoints() override
Definition htselement.C:84
void uv7(FloatArray &answer, double x, double y)
Definition htselement.C:583
void uv5(FloatArray &answer, double x, double y)
Definition htselement.C:569
HTSelement(int n, Domain *d)
Definition htselement.C:49
void sv6(FloatArray &answer, double x, double y)
Definition htselement.C:605
void sv12(FloatArray &answer, double x, double y)
Definition htselement.C:681
void sv5(FloatArray &answer, double x, double y)
Definition htselement.C:597
StructuralElement(int n, Domain *d)
#define OOFEM_ERROR(...)
Definition error.h:79
#define _IFT_HTSelement_Name
Definition htselement.h:41
@ Element_EdgeLoadSupport
Element extension for edge loads.

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