OOFEM 3.0
Loading...
Searching...
No Matches
structuralslipfe2material.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 structuralslipfe2material_h
36#define structuralslipfe2material_h
37
42
43#include <memory>
44
46
47#define _IFT_StructuralSlipFE2Material_Name "structslipfe2material"
48#define _IFT_StructuralSlipFE2Material_useExternalStiffness "use_ext_stiffness"
49#define _IFT_StructuralSlipFE2Material_allGPResults "export_all_gps"
50#define _IFT_StructuralSlipFE2Material_outputSelectedResults "output_selected_el_gps"
51#define _IFT_StructuralSlipFE2Material_dStressdEps "dsde"
52#define _IFT_StructuralSlipFE2Material_dBStressdEps "dbsde"
53#define _IFT_StructuralSlipFE2Material_dRStressdEps "drsde"
54#define _IFT_StructuralSlipFE2Material_dStressdS "dsds"
55#define _IFT_StructuralSlipFE2Material_dBStressdS "dbsds"
56#define _IFT_StructuralSlipFE2Material_dRStressdS "drsds"
57#define _IFT_StructuralSlipFE2Material_dStressdG "dsdg"
58#define _IFT_StructuralSlipFE2Material_dBStressdG "dbsdg"
59#define _IFT_StructuralSlipFE2Material_dRStressdG "drsdg"
60
62
63namespace oofem {
64class EngngModel;
65class PrescribedGradientHomogenization;
66class PrescribedDispSlipHomogenization;
67
69{
70protected:
72 std :: unique_ptr< EngngModel > rve;
75
76 std :: string mInputFile;
77
78 int nel=1; //macroscopic element number
79 int gpn=1; //gauss point number
80
81 //Tangents wrt to strain, slip and slip gradient
84
86 bool olddSdSTangent = true, olddBSdSTangent = true, olddRSdSTangent = true;
87
89 bool olddSdGTangent = true, olddBSdGTangent = true, olddRSdGTangent = true;
90
95
100
101public:
102 StructuralSlipFE2MaterialStatus(int rank, GaussPoint * g, const std :: string & inputfile, int el, int gp);
103
104 EngngModel *giveRVE() const { return this->rve.get(); }
106
107 bool createRVE(const std :: string &inputfile, int rank, int el, int gp);
108 void setTimeStep(TimeStep *tStep);
109
110 void markOldTangent();
111 void computeTangent(TimeStep *tStep);
112
113 void initTempStatus() override;
114
115 void updateYourself(TimeStep *tStep) override;
116
117 const char *giveClassName() const override { return "StructuralSlipFE2MaterialStatus"; }
118
121 void setdStressdEpsTangent(const FloatMatrix &iTangent) {dStressdEpsTangent = iTangent; olddSdETangent = false;}
122 void setdBStressdEpsTangent(const FloatMatrix &iTangent) {dBStressdEpsTangent = iTangent; olddBSdETangent = false;}
123 void setdRStressdEpsTangent(const FloatMatrix &iTangent) {dRStressdEpsTangent = iTangent; olddRSdETangent = false;}
124
125 void setdStressdSTangent(const FloatMatrix &iTangent) {dStressdSTangent = iTangent; olddSdSTangent = false;}
126 void setdBStressdSTangent(const FloatMatrix &iTangent) {dBStressdSTangent = iTangent; olddBSdSTangent = false;}
127 void setdRStressdSTangent(const FloatMatrix &iTangent) {dRStressdSTangent = iTangent; olddRSdSTangent = false;}
128
129 void setdStressdGTangent(const FloatMatrix &iTangent) {dStressdGTangent = iTangent; olddSdGTangent = false;}
130 void setdBStressdGTangent(const FloatMatrix &iTangent) {dBStressdGTangent = iTangent; olddBSdGTangent = false;}
131 void setdRStressdGTangent(const FloatMatrix &iTangent) {dRStressdGTangent = iTangent; olddRSdGTangent = false;}
132
133 const FloatArray &giveSlipVector() const { return slipVector; }
138
144};
145
146
170{
171protected:
172 bool useExtStiff = false;
173 bool allGPRes = false;
181
182 //sensitivities
183 FloatMatrix givendStressdEpsTangent; //3x3 stiffness matrix (plane stress)
187
188public:
190
191 void initializeFrom(InputRecord &ir) override;
192 void giveInputRecord(DynamicInputRecord &input) override;
193 const char *giveInputRecordName() const override { return _IFT_StructuralSlipFE2Material_Name; }
194 const char *giveClassName() const override { return "StructuralSlipFE2Material"; }
195
196 FloatMatrixF<3,3> givePlaneStressStiffMtrx(MatResponseMode mmode, GaussPoint *gp, TimeStep *tStep) const override;
198
199 std::unique_ptr<MaterialStatus> CreateStatus(GaussPoint *gp) const override;
200
204 virtual void giveHomogenizedFields(FloatArray &stress, FloatArray &bStress, FloatArray &rStress, const FloatArray &strain, const FloatArray &slip,
205 const FloatArray &slipGradient, GaussPoint *gp, TimeStep *tStep);
209 virtual void giveSensitivities(FloatMatrix &dStressdEps, FloatMatrix &dStressdS, FloatMatrix &dStressdG, FloatMatrix &dBStressdEps, FloatMatrix &dBStressdS,
210 FloatMatrix &dBStressdG, FloatMatrix &dRStressdEps, FloatMatrix &dRStressdS, FloatMatrix &dRStressdG, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
211
212};
213
214} // end namespace oofem
215#endif // structuralslipfe2material_h
GaussPoint * gp
Associated integration point.
StructuralMaterialStatus(GaussPoint *g)
Constructor. Creates new StructuralMaterialStatus with IntegrationPoint g.
void setdBStressdSTangent(const FloatMatrix &iTangent)
PrescribedDispSlipHomogenization * giveBC()
void setdRStressdGTangent(const FloatMatrix &iTangent)
void setdStressdEpsTangent(const FloatMatrix &iTangent)
void setdRStressdSTangent(const FloatMatrix &iTangent)
void setdStressdGTangent(const FloatMatrix &iTangent)
std ::unique_ptr< EngngModel > rve
The RVE.
FloatMatrix & givedStressdEpsTangent()
Setters and getters.
void setdBStressdEpsTangent(const FloatMatrix &iTangent)
PrescribedDispSlipHomogenization * bc
Boundary condition in RVE that performs the computational homogenization.
void setdStressdSTangent(const FloatMatrix &iTangent)
void setdBStressdGTangent(const FloatMatrix &iTangent)
void setdRStressdEpsTangent(const FloatMatrix &iTangent)
bool createRVE(const std ::string &inputfile, int rank, int el, int gp)
StructuralSlipFE2MaterialStatus(int rank, GaussPoint *g, const std ::string &inputfile, int el, int gp)
void giveInputRecord(DynamicInputRecord &input) override
virtual void giveHomogenizedFields(FloatArray &stress, FloatArray &bStress, FloatArray &rStress, const FloatArray &strain, const FloatArray &slip, const FloatArray &slipGradient, GaussPoint *gp, TimeStep *tStep)
virtual void giveSensitivities(FloatMatrix &dStressdEps, FloatMatrix &dStressdS, FloatMatrix &dStressdG, FloatMatrix &dBStressdEps, FloatMatrix &dBStressdS, FloatMatrix &dBStressdG, FloatMatrix &dRStressdEps, FloatMatrix &dRStressdS, FloatMatrix &dRStressdG, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
const char * giveInputRecordName() const override
void initializeFrom(InputRecord &ir) override
FloatMatrixF< 3, 3 > givePlaneStressStiffMtrx(MatResponseMode mmode, GaussPoint *gp, TimeStep *tStep) const override
FloatArrayF< 3 > giveRealStressVector_PlaneStress(const FloatArrayF< 3 > &strain, GaussPoint *gp, TimeStep *tStep) const override
Default implementation relies on giveRealStressVector_StressControl.
const char * giveClassName() const override
#define _IFT_StructuralSlipFE2Material_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