OOFEM 3.0
Loading...
Searching...
No Matches
intelline1PF.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 intelline1pf_h
36#define intelline1pf_h
37
40
41#define _IFT_IntElLine1PF_Name "IntElLine1PF"
42#define _IFT_IntElLine1PF_prescribedDamage "prescribeddamage"
43
44namespace oofem {
45class FEI2dLineLin;
46
54{
55protected:
57
58public:
59 IntElLine1PF(int n, Domain *d);
60
61 FEInterpolation *giveInterpolation() const override;
62
63 int computeNumberOfDofs() override { return 12; }
64 void giveDofManDofIDMask(int inode, IntArray &answer) const override;
65
66 double computeAreaAround(GaussPoint *gp) override;
67 void computeTransformationMatrixAt(GaussPoint *gp, FloatMatrix &answer) override;
69
70 int testElementExtension(ElementExtension ext) override { return 0; }
71
72 //virtual Interface *giveInterface(InterfaceType) { return NULL; }
73
74 // definition & identification
75 const char *giveInputRecordName() const override { return _IFT_IntElLine1PF_Name; }
76 const char *giveClassName() const override { return "IntElLine1PF"; }
77 void initializeFrom(InputRecord &ir) override;
78
79 void giveEngTraction(FloatArray &answer, GaussPoint *gp, const FloatArray &jump, TimeStep *tStep) override
80 {
81 answer = this->giveInterfaceCrossSection()->giveEngTraction_2d(jump, gp, tStep);
82 }
83
84 void giveStiffnessMatrix_Eng(FloatMatrix &answer, MatResponseMode rMode, IntegrationPoint *ip, TimeStep *tStep) override
85 {
86 answer = this->giveInterfaceCrossSection()->give2dStiffnessMatrix_Eng(rMode, ip, tStep);
87 }
88
89 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override;
90
91
92 // PF
93 int giveNumberOfDofManagers() const override { return 4; }
94 StructuralInterfaceElement *giveElement() override { return this; }
95 void giveDofManDofIDMask_u(IntArray &answer) override;
96 void giveDofManDofIDMask_d(IntArray &answer) override;
97
98 virtual void computeStiffnessMatrix_uu(FloatMatrix &, MatResponseMode, TimeStep *);
99 virtual void computeStiffnessMatrix_ud(FloatMatrix &, MatResponseMode, TimeStep *);
100 virtual void computeStiffnessMatrix_dd(FloatMatrix &, MatResponseMode, TimeStep *);
101 //virtual void computeStiffnessMatrix_du(FloatMatrix &, MatResponseMode, TimeStep *);
102
103 void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord = 0) override;
104 virtual void giveInternalForcesVectorUD(FloatArray &fu, FloatArray &fd, TimeStep *tStep, int useUpdatedGpRecord = 0);
105 virtual double computeDamageAt(GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN);
106 virtual void computeLocationArrayOfDofIDs( const IntArray &dofIdArray, IntArray &answer );
107 virtual void computeBd_vectorAt(GaussPoint *gp, FloatArray &B);
108 virtual void computeNd_vectorAt(const FloatArray &lCoords, FloatArray &N);
109 virtual double computeFreeEnergy(GaussPoint *gp, TimeStep *tStep);
110
111 double computeOldG(GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN);
112 double neg_MaCauley(double par) const
113 {
114 return 0.5 * ( std::abs(par) - par );
115 }
116
117 double neg_MaCauleyPrime(double par) const
118 {
119 return 0.5 * ( std::abs(par)/(par + 1.0e-12) - 1.0 ); // 0.5*(sign - 1) taken from Ragnars code
120 }
121
122 double MaCauley(double par) const
123 {
124 return 0.5 * ( std::abs(par) + par );
125 }
126
127 double MaCauleyPrime(double par) const
128 {
129 return 0.5 * ( std::abs(par)/(par + 1.0e-12) + 1.0 ); // 0.5*(sign + 1) taken from Ragnars code
130 }
131
132
133 void solveForLocalDamage(FloatMatrix &answer, TimeStep *tStep);
134 void computeGMatrix(FloatMatrix &answer, const double damage, GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN);
135
136protected:
140
144 double prescribed_damage = 0.;
145
146 void computeNmatrixAt(GaussPoint *gp, FloatMatrix &answer) override;
147 void computeGaussPoints() override;
148
149 virtual int giveApproxOrder() { return 1; }
150 Element_Geometry_Type giveGeometryType() const override { return EGT_quad_1_interface; };
151};
152} // end namespace oofem
153#endif
#define N(a, b)
const char * giveInputRecordName() const override
void giveStiffnessMatrix_Eng(FloatMatrix &answer, MatResponseMode rMode, IntegrationPoint *ip, TimeStep *tStep) override
double MaCauleyPrime(double par) const
double computeAreaAround(GaussPoint *gp) override
FloatArray deltaUnknownVectorD
virtual void computeStiffnessMatrix_dd(FloatMatrix &, MatResponseMode, TimeStep *)
void solveForLocalDamage(FloatMatrix &answer, TimeStep *tStep)
StructuralInterfaceElement * giveElement() override
void giveEngTraction(FloatArray &answer, GaussPoint *gp, const FloatArray &jump, TimeStep *tStep) override
void giveDofManDofIDMask(int inode, IntArray &answer) const override
void computeNmatrixAt(GaussPoint *gp, FloatMatrix &answer) override
FloatArrayF< 2 > computeCovarBaseVectorAt(GaussPoint *gp) const
double computeOldG(GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN)
int giveNumberOfDofManagers() const override
static FEI2dLineLin interp
virtual void computeStiffnessMatrix_ud(FloatMatrix &, MatResponseMode, TimeStep *)
virtual void giveInternalForcesVectorUD(FloatArray &fu, FloatArray &fd, TimeStep *tStep, int useUpdatedGpRecord=0)
int testElementExtension(ElementExtension ext) override
virtual void computeNd_vectorAt(const FloatArray &lCoords, FloatArray &N)
virtual void computeLocationArrayOfDofIDs(const IntArray &dofIdArray, IntArray &answer)
FEInterpolation * giveInterpolation() const override
virtual int giveApproxOrder()
virtual void computeBd_vectorAt(GaussPoint *gp, FloatArray &B)
void giveDofManDofIDMask_d(IntArray &answer) override
virtual void computeStiffnessMatrix_uu(FloatMatrix &, MatResponseMode, TimeStep *)
int computeNumberOfDofs() override
virtual double computeFreeEnergy(GaussPoint *gp, TimeStep *tStep)
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
virtual double computeDamageAt(GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN)
void initializeFrom(InputRecord &ir) override
void computeGaussPoints() override
double neg_MaCauleyPrime(double par) const
FloatArray unknownVectorD
void giveDofManDofIDMask_u(IntArray &answer) override
void computeGMatrix(FloatMatrix &answer, const double damage, GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN)
IntElLine1PF(int n, Domain *d)
Element_Geometry_Type giveGeometryType() const override
FloatArray unknownVectorU
double MaCauley(double par) const
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0) override
double neg_MaCauley(double par) const
const char * giveClassName() const override
void computeTransformationMatrixAt(GaussPoint *gp, FloatMatrix &answer) override
PhaseFieldElement(int i, Domain *aDomain)
FloatMatrixF< 2, 2 > give2dStiffnessMatrix_Eng(MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) const
FloatArrayF< 2 > giveEngTraction_2d(const FloatArrayF< 2 > &jump, GaussPoint *gp, TimeStep *tStep) const
StructuralInterfaceCrossSection * giveInterfaceCrossSection()
#define _IFT_IntElLine1PF_Name
GaussPoint IntegrationPoint
Definition gausspoint.h:272

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