OGS
TotalStressData.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#pragma once
5
6
#include "
Base.h
"
7
#include "
ProcessLib/Reflection/ReflectionData.h
"
8
9
namespace
ProcessLib::ThermoRichardsMechanics
10
{
11
12
template
<
int
DisplacementDim>
13
struct
TotalStressData
14
{
15
// Total stress is stateful for some constitutive settings and therefore
16
// must be initialized to something valid, e.g., zero.
17
// TODO find a better solution for that.
18
KelvinVector<DisplacementDim>
sigma_total
= KV::KVzero<DisplacementDim>();
19
20
static
auto
reflect
()
21
{
22
using
Self =
TotalStressData<DisplacementDim>
;
23
24
return
ProcessLib::Reflection::reflectWithName
(
"sigma_total"
,
25
&Self::sigma_total);
26
}
27
};
28
// Explicit instantiation declarations to avoid multiple-definition issues.
29
extern
template
struct
TotalStressData<2>;
30
extern
template
struct
TotalStressData<3>;
31
32
}
// namespace ProcessLib::ThermoRichardsMechanics
ReflectionData.h
Base.h
ProcessLib::ConstitutiveRelations::KelvinVector
KV::KelvinVectorType< DisplacementDim > KelvinVector
Definition
ConstitutiveRelations/Base.h:17
ProcessLib::Reflection::reflectWithName
auto reflectWithName(std::string name, Member Class::*member)
Definition
ReflectionData.h:72
ProcessLib::ThermoRichardsMechanics
Definition
ThermoRichardsMechanics/ConstitutiveCommon/Base.h:9
ProcessLib::ThermoRichardsMechanics::TotalStressData
Definition
TotalStressData.h:14
ProcessLib::ThermoRichardsMechanics::TotalStressData::reflect
static auto reflect()
Definition
TotalStressData.h:20
ProcessLib::ThermoRichardsMechanics::TotalStressData::sigma_total
KelvinVector< DisplacementDim > sigma_total
Definition
TotalStressData.h:18
ProcessLib
ThermoRichardsMechanics
ConstitutiveCommon
TotalStressData.h
Generated by
1.14.0