OOFEM 3.0
Loading...
Searching...
No Matches
structuralinterfaceelementphf.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 structuralinterfaceelementphf_h
36#define structuralinterfaceelementphf_h
37
40#include "element.h"
41#include "floatmatrix.h"
42#include "function.h"
43#include "matresponsemode.h"
44#include "valuemodetype.h"
45#include "integrationdomain.h"
46#include "dofmantransftype.h"
47
48namespace oofem {
49class TimeStep;
50class Node;
52class GaussPoint;
53class IntArray;
54class FEInterpolation;
55
56
61{
62protected:
64
66
67public:
74
75 //FEInterpolation *giveInterpolation() const override { return interpolation; };
76
77 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override;
78
79 //Phf
80 void computeStiffnessMatrix_uu(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep);
81 void computeStiffnessMatrix_ud(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep);
82 void computeStiffnessMatrix_dd(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep);
83 void computeStiffnessMatrix_du(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep);
84
85 void giveInternalForcesVector_u(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord = 0);
86 void giveInternalForcesVector_d(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord = 0);
87
88 virtual void giveDofManDofIDMask_u(IntArray &answer) = 0;
89 virtual void giveDofManDofIDMask_d(IntArray &answer) = 0;
90 virtual void computeLocationArrayOfDofIDs( const IntArray &dofIdArray, IntArray &answer );
91
92 virtual void getLocationArray_u( IntArray &answer )=0;
93 virtual void getLocationArray_d( IntArray &answer )=0;
94
95 //remove
96 int computeNumberOfDofs() override;
97
100 double giveInternalLength( ) { return internalLength; };
101 //double criticalEnergy;
102 //double giveCriticalEnergy() { return criticalEnergy; };
103 //double relaxationTime;
104 //double giveRelaxationTime( ) { return relaxationTime; };
105 //double penaltyParameter;
106 //double givePenaltyParameter() { return penaltyParameter; };
107 //double psiBar0;
108 //double givePsiBar0() { return psiBar0; };
109
111 double computeFreeEnergy( GaussPoint *gp, TimeStep *tStep );
112
113 virtual double computeDamageAt(GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN);
114
115 void computeDisplacementUnknowns(FloatArray &answer, ValueModeType valueMode, TimeStep *stepN);
116 void computeDamageUnknowns(FloatArray &answer, ValueModeType valueMode, TimeStep *stepN);
117
118 void computeBStress_u(FloatArray &answer, GaussPoint *gp, TimeStep *tStep, int useUpdatedGpRecord);
119 void computeNStress_d( FloatArray &answer, GaussPoint *gp, TimeStep *tStep, int useUpdatedGpRecord );
120
121 //Interpolation matrices for phase field
122 virtual void computeBd_matrixAt(GaussPoint *, FloatMatrix &);
123 virtual void computeNd_matrixAt(const FloatArray &lCoords, FloatMatrix &N);
124
125 void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord = 0) override;
126 virtual void computeTraction(FloatArray &traction, IntegrationPoint *ip, FloatArray &jump, TimeStep *tStep);
127 //virtual void computeSpatialJump(FloatArray &answer, GaussPoint *gp, TimeStep *tStep);
128 //int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
129
132
133 // Overloaded methods.
134 void updateInternalState(TimeStep *tStep) override;
135 void updateYourself(TimeStep *tStep) override;
136 //int checkConsistency() override;
137 //void initializeFrom(InputRecord &ir) override;
138 //void giveInputRecord(DynamicInputRecord &input) override;
139 const char *giveClassName() const override { return "StructuralInterfaceElementPhF"; };
140
141 //StructuralInterfaceCrossSection *giveInterfaceCrossSection();
142
143 //virtual methods that should be overloaded by the elements
144 virtual void giveEngTraction(FloatArray &answer, GaussPoint *gp, const FloatArray &jump, double damage, TimeStep *tStep)
145 {
146 OOFEM_ERROR("not implemented for the current element");
147 }
148};
149} // end namespace oofem
150#endif // structuralinterfaceelement_h
#define N(a, b)
void computeStiffnessMatrix_uu(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep)
virtual void computeCovarBaseVectorsAt(GaussPoint *gp, FloatMatrix &G)=0
virtual void getLocationArray_d(IntArray &answer)=0
virtual void computeNd_matrixAt(const FloatArray &lCoords, FloatMatrix &N)
void giveInternalForcesVector_d(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0)
virtual void getLocationArray_u(IntArray &answer)=0
virtual void computeTraction(FloatArray &traction, IntegrationPoint *ip, FloatArray &jump, TimeStep *tStep)
double computeFreeEnergy(GaussPoint *gp, TimeStep *tStep)
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
void giveInternalForcesVector_u(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0)
void computeStiffnessMatrix_du(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep)
virtual void computeLocationArrayOfDofIDs(const IntArray &dofIdArray, IntArray &answer)
void computeStiffnessMatrix_dd(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep)
void computeBStress_u(FloatArray &answer, GaussPoint *gp, TimeStep *tStep, int useUpdatedGpRecord)
virtual void giveDofManDofIDMask_u(IntArray &answer)=0
virtual void giveEngTraction(FloatArray &answer, GaussPoint *gp, const FloatArray &jump, double damage, TimeStep *tStep)
virtual void giveDofManDofIDMask_d(IntArray &answer)=0
virtual double computeDamageAt(GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN)
void computeDamageUnknowns(FloatArray &answer, ValueModeType valueMode, TimeStep *stepN)
virtual void computeBd_matrixAt(GaussPoint *, FloatMatrix &)
void computeNStress_d(FloatArray &answer, GaussPoint *gp, TimeStep *tStep, int useUpdatedGpRecord)
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0) override
void computeStiffnessMatrix_ud(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep)
void computeDisplacementUnknowns(FloatArray &answer, ValueModeType valueMode, TimeStep *stepN)
#define OOFEM_ERROR(...)
Definition error.h:79
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