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"
8
10{
11
12template <int DisplacementDim>
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 {
23
24 return ProcessLib::Reflection::reflectWithName("sigma_total",
25 &Self::sigma_total);
26 }
27};
28// Explicit instantiation declarations to avoid multiple-definition issues.
29extern template struct TotalStressData<2>;
30extern template struct TotalStressData<3>;
31
32} // namespace ProcessLib::ThermoRichardsMechanics
KV::KelvinVectorType< DisplacementDim > KelvinVector
auto reflectWithName(std::string name, Member Class::*member)