OOFEM 3.0
Loading...
Searching...
No Matches
lsmastermat.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 lsmastermat_h
36#define lsmastermat_h
37
41#include "dictionary.h"
42#include "floatarray.h"
43#include "floatmatrix.h"
44
46
47#define _IFT_LargeStrainMasterMaterial_Name "lsmastermat"
48#define _IFT_LargeStrainMasterMaterial_m "m"
49#define _IFT_LargeStrainMasterMaterial_slaveMat "slavemat"
51
52namespace oofem {
53class GaussPoint;
54class Domain;
55
64{
65protected:
68
70 int slaveMat = 0;
72 double m = 0.;
73
74public:
76
77 void initializeFrom(InputRecord &ir) override;
78
79 const char *giveInputRecordName() const override { return _IFT_LargeStrainMasterMaterial_Name; }
80 const char *giveClassName() const override { return "LargeStrainMasterMaterial"; }
81
83
84 bool isCharacteristicMtrxSymmetric(MatResponseMode rMode) const override { return false; }
85
86 std::unique_ptr<MaterialStatus> CreateStatus(GaussPoint *gp) const override;
87
89 GaussPoint * gp,
90 TimeStep * tStep) const override;
91
93 { OOFEM_ERROR("not implemented, this material is designed for large strains only"); }
94 FloatArrayF<9> giveFirstPKStressVector_3d(const FloatArrayF<9> &vF, GaussPoint *gp, TimeStep *tStep) const override;
95
98 std::pair<FloatMatrixF<6,6>, FloatMatrixF<6,6>> constructL1L2TransformationMatrices(const FloatArrayF<3> &eigenValues, const FloatArrayF<6> &stress, double E1, double E2, double E3) const;
99
100 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
101};
102
103//=============================================================================
104
105
107{
108protected:
111 Domain *domain = nullptr;
112 int slaveMat = 0.;
113
114public:
116
117 const FloatMatrixF<6,6> &givePmatrix() const { return Pmatrix; }
118 const FloatMatrixF<6,6> &giveTLmatrix() const { return TLmatrix; }
120
121 void setPmatrix(const FloatMatrixF<6,6> &values) { Pmatrix = values; }
122 void setTLmatrix(const FloatMatrixF<6,6> &values) { TLmatrix = values; }
124
125 void printOutputAt(FILE *file, TimeStep *tStep) const override;
126 void initTempStatus() override;
127 void updateYourself(TimeStep *) override;
128
129 void saveContext(DataStream &stream, ContextMode mode) override;
130 void restoreContext(DataStream &stream, ContextMode mode) override;
131
132 const char *giveClassName() const override { return "LargeStrainMasterMaterialStatus"; }
133};
134} // end namespace oofem
135#endif // misesmat_h
void setPmatrix(const FloatMatrixF< 6, 6 > &values)
void setTransformationMatrix(const FloatMatrixF< 6, 6 > &values)
void printOutputAt(FILE *file, TimeStep *tStep) const override
Print receiver's output to given stream.
const FloatMatrixF< 6, 6 > & givePmatrix() const
void updateYourself(TimeStep *) override
LargeStrainMasterMaterialStatus(GaussPoint *g, Domain *d, int s)
void setTLmatrix(const FloatMatrixF< 6, 6 > &values)
const FloatMatrixF< 6, 6 > & giveTransformationMatrix() const
void saveContext(DataStream &stream, ContextMode mode) override
const FloatMatrixF< 6, 6 > & giveTLmatrix() const
FloatMatrixF< 6, 6 > transformationMatrix
void restoreContext(DataStream &stream, ContextMode mode) override
const char * giveClassName() const override
double m
Specifies the strain tensor.
Definition lsmastermat.h:72
bool isCharacteristicMtrxSymmetric(MatResponseMode rMode) const override
Definition lsmastermat.h:84
FloatArrayF< 6 > giveRealStressVector_3d(const FloatArrayF< 6 > &, GaussPoint *, TimeStep *) const override
Default implementation relies on giveRealStressVector for second Piola-Kirchoff stress.
Definition lsmastermat.h:92
FloatMatrixF< 6, 6 > constructTransformationMatrix(const FloatMatrixF< 3, 3 > &eigenVectors) const
transformation matrices
LinearElasticMaterial * giveLinearElasticMaterial()
Definition lsmastermat.h:82
const char * giveClassName() const override
Definition lsmastermat.h:80
FloatMatrixF< 9, 9 > give3dMaterialStiffnessMatrix_dPdF(MatResponseMode, GaussPoint *gp, TimeStep *tStep) const override
LinearElasticMaterial * linearElasticMaterial
Reference to the basic elastic material.
Definition lsmastermat.h:67
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
Definition lsmastermat.C:65
const char * giveInputRecordName() const override
Definition lsmastermat.h:79
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
FloatArrayF< 9 > giveFirstPKStressVector_3d(const FloatArrayF< 9 > &vF, GaussPoint *gp, TimeStep *tStep) const override
Default implementation relies on giveRealStressVector for second Piola-Kirchoff stress.
Definition lsmastermat.C:72
int slaveMat
'slave' material model number.
Definition lsmastermat.h:70
std::pair< FloatMatrixF< 6, 6 >, FloatMatrixF< 6, 6 > > constructL1L2TransformationMatrices(const FloatArrayF< 3 > &eigenValues, const FloatArrayF< 6 > &stress, double E1, double E2, double E3) const
LargeStrainMasterMaterial(int n, Domain *d)
Definition lsmastermat.C:53
void initializeFrom(InputRecord &ir) override
Definition lsmastermat.C:58
StructuralMaterialStatus(GaussPoint *g)
Constructor. Creates new StructuralMaterialStatus with IntegrationPoint g.
StructuralMaterial(int n, Domain *d)
#define OOFEM_ERROR(...)
Definition error.h:79
#define _IFT_LargeStrainMasterMaterial_Name
Definition lsmastermat.h:47
long ContextMode
Definition contextmode.h:43
FloatMatrixF< N, N > eye()
Constructs an identity matrix.

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