OGS
EffectiveStressData.h
Go to the documentation of this file.
1
10
#pragma once
11
12
#include "
MathLib/KelvinVector.h
"
13
#include "
ProcessLib/Reflection/ReflectionData.h
"
14
15
namespace
ProcessLib::ConstitutiveRelations
16
{
17
template
<
int
DisplacementDim>
18
struct
EffectiveStressData
19
{
20
// TODO it seems fragile that some data have to be initialized that way.
21
MathLib::KelvinVector::KelvinVectorType<DisplacementDim>
sigma_eff
=
22
MathLib::KelvinVector::KVzero<DisplacementDim>
();
23
24
static
auto
reflect
()
25
{
26
using
Self =
EffectiveStressData<DisplacementDim>
;
27
28
return
ProcessLib::Reflection::reflectWithName
(
"sigma"
,
29
&Self::sigma_eff);
30
}
31
};
32
33
}
// namespace ProcessLib::ConstitutiveRelations
KelvinVector.h
ReflectionData.h
MathLib::KelvinVector::KelvinVectorType
Eigen::Matrix< double, kelvin_vector_dimensions(DisplacementDim), 1, Eigen::ColMajor > KelvinVectorType
Definition
KelvinVector.h:47
MathLib::KelvinVector::KVzero
constexpr auto KVzero()
Returns an expressions for a Kelvin vector filled with zero.
Definition
KelvinVector.h:61
ProcessLib::ConstitutiveRelations
Definition
Base.h:17
ProcessLib::Reflection::reflectWithName
auto reflectWithName(std::string name, Member Class::*member)
Definition
ReflectionData.h:79
ProcessLib::ConstitutiveRelations::EffectiveStressData
Definition
EffectiveStressData.h:19
ProcessLib::ConstitutiveRelations::EffectiveStressData::sigma_eff
MathLib::KelvinVector::KelvinVectorType< DisplacementDim > sigma_eff
Definition
EffectiveStressData.h:21
ProcessLib::ConstitutiveRelations::EffectiveStressData::reflect
static auto reflect()
Definition
EffectiveStressData.h:24
ProcessLib
ConstitutiveRelations
EffectiveStressData.h
Generated by
1.12.0