OOFEM 3.0
Loading...
Searching...
No Matches
tutorialmaterial.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 tutorialmaterial_h
36#define tutorialmaterial_h
37
41
43
44#define _IFT_TutorialMaterial_Name "tutorialmaterial"
45#define _IFT_TutorialMaterial_yieldstress "sigy"
46#define _IFT_TutorialMaterial_hardeningmoduli "h"
48
49namespace oofem {
50class Domain;
51
57{
58protected:
60 double H = 0.;
61
63 double sig0 = 0.;
64
66
67public:
68 TutorialMaterial(int n, Domain * d);
69
70 void initializeFrom(InputRecord &ir) override;
71 void giveInputRecord(DynamicInputRecord &ir) override;
72 const char *giveInputRecordName() const override { return _IFT_TutorialMaterial_Name; }
73 const char *giveClassName() const override { return "TutorialMaterial"; }
74 bool isCharacteristicMtrxSymmetric(MatResponseMode rMode) const override { return true; }
75
76 std::unique_ptr<MaterialStatus> CreateStatus(GaussPoint *gp) const override;
77
78 FloatArrayF<6> giveRealStressVector_3d(const FloatArrayF<6> &strain, GaussPoint *gp, TimeStep *tStep) const override;
79
80 FloatMatrixF<6,6> give3dMaterialStiffnessMatrix(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) const override;
81
82 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
83
85};
86
87
89{
90protected:
93
96
98
99 double tempK = 0.;
100 double k = 0.;
101
102public:
104
106
108
109 double giveK() const { return this->k; }
110
111 void letTempKBe(double value) { tempK = value; }
112
115
116 const char *giveClassName() const override { return "TutorialMaterialStatus"; }
117
118 void initTempStatus() override;
119 void updateYourself(TimeStep *tStep) override;
120
121 // semi optional methods
122 //void printOutputAt(FILE *file, TimeStep *tStep) override;
123 //void saveContext(DataStream &stream, ContextMode mode) override;
124 //void restoreContext(DataStream &stream, ContextMode mode) override;
125};
126
127} // end namespace oofem
128#endif // tutorialmaterial_h
StructuralMaterialStatus(GaussPoint *g)
Constructor. Creates new StructuralMaterialStatus with IntegrationPoint g.
StructuralMaterial(int n, Domain *d)
void letTempPlasticStrainBe(const FloatArrayF< 6 > &values)
FloatArrayF< 6 > plasticStrain
Last equilibriated plastic strain (end of last time step).
const FloatArrayF< 6 > & givePlasticStrain() const
void updateYourself(TimeStep *tStep) override
void letTempDevTrialStressBe(const FloatArrayF< 6 > &values)
const FloatArrayF< 6 > & giveTempDevTrialStress() const
FloatArrayF< 6 > tempPlasticStrain
Temporary plastic strain (the given iteration).
const char * giveClassName() const override
double H
Hardening modulus.
TutorialMaterial(int n, Domain *d)
const char * giveInputRecordName() const override
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
bool isCharacteristicMtrxSymmetric(MatResponseMode rMode) const override
void initializeFrom(InputRecord &ir) override
const char * giveClassName() const override
FloatArrayF< 6 > giveThermalDilatationVector(GaussPoint *gp, TimeStep *tStep) const override
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
FloatArrayF< 6 > giveRealStressVector_3d(const FloatArrayF< 6 > &strain, GaussPoint *gp, TimeStep *tStep) const override
Default implementation relies on giveRealStressVector for second Piola-Kirchoff stress.
void giveInputRecord(DynamicInputRecord &ir) override
IsotropicLinearElasticMaterial D
double sig0
Initial (uniaxial) yield stress.
FloatMatrixF< 6, 6 > give3dMaterialStiffnessMatrix(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) const override
#define _IFT_TutorialMaterial_Name

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