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
9{
10
11template <int DisplacementDim>
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 {
22
23 return ProcessLib::Reflection::reflectWithName("sigma_total",
24 &Self::sigma_total);
25 }
26};
27} // namespace ProcessLib::ThermoRichardsMechanics
KV::KelvinVectorType< DisplacementDim > KelvinVector
auto reflectWithName(std::string name, Member Class::*member)