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
8
namespace
ProcessLib::ThermoRichardsMechanics
9
{
10
11
template
<
int
DisplacementDim>
12
struct
TotalStressData
13
{
14
// Total stress is stateful for some constitutive settings and therefore
15
// must be initialized to something valid, e.g., zero.
16
// TODO find a better solution for that.
17
KelvinVector<DisplacementDim>
sigma_total
= KV::KVzero<DisplacementDim>();
18
19
static
auto
reflect
()
20
{
21
using
Self =
TotalStressData<DisplacementDim>
;
22
23
return
ProcessLib::Reflection::reflectWithName
(
"sigma_total"
,
24
&Self::sigma_total);
25
}
26
};
27
}
// namespace ProcessLib::ThermoRichardsMechanics
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:13
ProcessLib::ThermoRichardsMechanics::TotalStressData
Definition
TotalStressData.h:13
ProcessLib::ThermoRichardsMechanics::TotalStressData::reflect
static auto reflect()
Definition
TotalStressData.h:19
ProcessLib::ThermoRichardsMechanics::TotalStressData::sigma_total
KelvinVector< DisplacementDim > sigma_total
Definition
TotalStressData.h:17
ProcessLib
ThermoRichardsMechanics
ConstitutiveCommon
TotalStressData.h
Generated by
1.14.0