OOFEM 3.0
Loading...
Searching...
No Matches
compodamagemat.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 compodamagemat_h
36#define compodamagemat_h
37
38#include "material.h"
42#include "intarray.h"
43#include "floatarray.h"
44#include "cltypes.h"
45
47
48#define _IFT_CompoDamageMat_Name "compdammat"
49#define _IFT_CompoDamageMat_exx "exx"
50#define _IFT_CompoDamageMat_eyyezz "eyyezz"
51#define _IFT_CompoDamageMat_nuxynuxz "nuxynuxz"
52#define _IFT_CompoDamageMat_nuyz "nuyz"
53#define _IFT_CompoDamageMat_Gxy "gxygxz"
54#define _IFT_CompoDamageMat_tension_f0_gf "tension_f0_gf"
55#define _IFT_CompoDamageMat_compres_f0_gf "compres_f0_gf"
56#define _IFT_CompoDamageMat_afteriter "afteriter"
57#define _IFT_CompoDamageMat_allowSnapBack "allowsnapback"
59
60namespace oofem {
68{
69public:
72
73 void printOutputAt(FILE *file, TimeStep *tStep) const override;
74
75 void initTempStatus() override;
76
77 void updateYourself(TimeStep *tStep) override;
78
79 //tempVal are values used during iteration, Val are equilibrated values, updated after last iteration in previous time step
80
83
86
89
92
95
97 int Iteration = 0;
98
105
108
111
112 void saveContext(DataStream &stream, ContextMode mode) override;
113 void restoreContext(DataStream &stream, ContextMode mode) override;
114
115 const char *giveClassName() const override { return "CompoDamageMatStatus"; }
116};
117
118
119
138{
139public:
141 CompoDamageMat(int n, Domain * d);
142
143 const char *giveClassName() const override { return "CompositeDamageMaterial"; }
144 const char *giveInputRecordName() const override { return _IFT_CompoDamageMat_Name; }
145
146 void initializeFrom(InputRecord &ir) override;
147 void giveInputRecord(DynamicInputRecord &input) override;
148
149 std::unique_ptr<MaterialStatus> CreateStatus(GaussPoint *gp) const override { return std::make_unique<CompoDamageMatStatus>(gp); }
150
151 FloatMatrixF<6,6> give3dMaterialStiffnessMatrix(MatResponseMode mmode, GaussPoint *gp, TimeStep *tStep) const override;
152
154 const FloatArray &, TimeStep *tStep) const override;
155
157 {
158 FloatArray answer;
159 const_cast<CompoDamageMat*>(this)->giveRealStressVector(answer, gp, strain, tStep);
160 return answer;
161 }
163 {
164 FloatArray answer;
165 const_cast<CompoDamageMat*>(this)->giveRealStressVector(answer, gp, strain, tStep);
166 return answer;
167 }
168
169 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
170
176 int afterIter = 0;
177
178protected:
195
200
203
211 void giveCharLength(CompoDamageMatStatus *status, GaussPoint *gp, FloatMatrix &elementCs) const;
217 void giveCharLengthForModes(FloatArray &charLenModes, GaussPoint *gp) const;
223 void checkSnapBack(GaussPoint *gp, MaterialMode mMode) const;
224};
225} // end namespace oofem
226#endif // compodamagemat_h
FloatArray initDamageStress
Stress at which damage starts. For uniaxial loading is equal to given maximum stress in the input....
void updateYourself(TimeStep *tStep) override
FloatArray tempKappa
Highest strain ever reached at IP. Can be unequilibrated from last iterations [6 tension,...
FloatArray elemCharLength
Characteristic element length at IP in three perpendicular planes aligned with material orientation.
FloatArray kappa
Highest strain ever reached in all previous equilibrated steps [6 tension, 6 compression].
CompoDamageMatStatus(GaussPoint *g)
Constructor.
FloatArray tempStressMLCS
Only for printing purposes in CompoDamageMatStatus.
FloatArray strainAtMaxStress
Strain when damage is initiated at IP. In literature denoted eps_0 [6 tension, 6 compression].
IntArray hasSnapBack
Checks whether snapback occurred at IP.
int Iteration
Iteration in the time step.
FloatArray omega
Highest damage ever reached in all previous equilibrated steps at IP [6 for tension and compression].
const char * giveClassName() const override
FloatArray maxStrainAtZeroStress
Maximum strain when stress becomes zero due to complete damage (omega = 1) at IP. Determined from fra...
void saveContext(DataStream &stream, ContextMode mode) override
FloatArray tempOmega
Highest damage ever reached at IP. Can be unequilibrated from last iterations [6 for tension and comp...
void printOutputAt(FILE *file, TimeStep *tStep) const override
Print receiver's output to given stream.
void restoreContext(DataStream &stream, ContextMode mode) override
void giveCharLengthForModes(FloatArray &charLenModes, GaussPoint *gp) const
void initializeFrom(InputRecord &ir) override
IntArray allowSnapBack
Stress components which are allowed for snap back [6 tension, 6 compression].
const char * giveClassName() const override
FloatArray inputTension
Six stress components of tension components read from the input file.
int giveMatStiffRotationMatrix(FloatMatrixF< 6, 6 > &answer, GaussPoint *gp) const
void giveRealStressVector(FloatArray &answer, GaussPoint *gp, const FloatArray &, TimeStep *tStep) const override
const char * giveInputRecordName() const override
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
void checkSnapBack(GaussPoint *gp, MaterialMode mMode) const
void giveInputRecord(DynamicInputRecord &input) override
CompoDamageMat(int n, Domain *d)
Constructor.
void giveCharLength(CompoDamageMatStatus *status, GaussPoint *gp, FloatMatrix &elementCs) const
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
FloatArrayF< 1 > giveRealStressVector_1d(const FloatArrayF< 1 > &strain, GaussPoint *gp, TimeStep *tStep) const override
Default implementation relies on giveRealStressVector_StressControl.
FloatArrayF< 6 > giveRealStressVector_3d(const FloatArrayF< 6 > &strain, GaussPoint *gp, TimeStep *tStep) const override
Default implementation relies on giveRealStressVector for second Piola-Kirchoff stress.
FloatMatrixF< 6, 6 > giveUnrotated3dMaterialStiffnessMatrix(MatResponseMode mode, GaussPoint *gp) const
FloatArray inputCompression
Six stress components of compression components read from the input file.
FloatMatrixF< 6, 6 > give3dMaterialStiffnessMatrix(MatResponseMode mmode, GaussPoint *gp, TimeStep *tStep) const override
StructuralMaterialStatus(GaussPoint *g)
Constructor. Creates new StructuralMaterialStatus with IntegrationPoint g.
StructuralMaterial(int n, Domain *d)
#define _IFT_CompoDamageMat_Name
long ContextMode
Definition contextmode.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