OGS
ProcessLib::TH2M::ConstitutiveRelations::ElasticTangentStiffnessModel< DisplacementDim > Struct Template Reference

Detailed Description

template<int DisplacementDim>
struct ProcessLib::TH2M::ConstitutiveRelations::ElasticTangentStiffnessModel< DisplacementDim >

Definition at line 21 of file ElasticTangentStiffnessModel.h.

#include <ElasticTangentStiffnessModel.h>

Public Member Functions

 ElasticTangentStiffnessModel (SolidConstitutiveRelation< DisplacementDim > const &solid_material)
 
void eval (SpaceTimeData const &x_t, TemperatureData const &T_data, ElasticTangentStiffnessData< DisplacementDim > &out) const
 

Private Attributes

SolidConstitutiveRelation< DisplacementDim > const & solid_material_
 

Constructor & Destructor Documentation

◆ ElasticTangentStiffnessModel()

template<int DisplacementDim>
ProcessLib::TH2M::ConstitutiveRelations::ElasticTangentStiffnessModel< DisplacementDim >::ElasticTangentStiffnessModel ( SolidConstitutiveRelation< DisplacementDim > const & solid_material)
inlineexplicit

Definition at line 23 of file ElasticTangentStiffnessModel.h.

25 : solid_material_(solid_material)
26 {
27 }

Member Function Documentation

◆ eval()

template<int DisplacementDim>
void ProcessLib::TH2M::ConstitutiveRelations::ElasticTangentStiffnessModel< DisplacementDim >::eval ( SpaceTimeData const & x_t,
TemperatureData const & T_data,
ElasticTangentStiffnessData< DisplacementDim > & out ) const

Definition at line 19 of file ElasticTangentStiffnessModel.cpp.

22{
23 namespace MPL = MaterialPropertyLib;
24
25 MPL::VariableArray variable_array;
26 MPL::VariableArray variable_array_prev;
27
28 auto const null_state = solid_material_.createMaterialStateVariables();
29 solid_material_.initializeInternalStateVariables(x_t.t, x_t.x, *null_state);
30
31 using KV = KelvinVector<DisplacementDim>;
32
33 variable_array.stress.emplace<KV>(KV::Zero());
34 variable_array.mechanical_strain.emplace<KV>(KV::Zero());
35 variable_array.temperature = T_data.T;
36
37 variable_array_prev.stress.emplace<KV>(KV::Zero());
38 variable_array_prev.mechanical_strain.emplace<KV>(KV::Zero());
39 variable_array_prev.temperature = T_data.T_prev;
40
41 auto&& solution = solid_material_.integrateStress(
42 variable_array_prev, variable_array, x_t.t, x_t.x, x_t.dt, *null_state);
43
44 if (!solution)
45 {
46 OGS_FATAL("Computation of elastic tangent stiffness failed.");
47 }
48
49 out.stiffness_tensor = std::move(std::get<2>(*solution));
50}
#define OGS_FATAL(...)
Definition Error.h:26

References ProcessLib::ConstitutiveRelations::SpaceTimeData::dt, MaterialPropertyLib::VariableArray::mechanical_strain, OGS_FATAL, ProcessLib::TH2M::ConstitutiveRelations::ElasticTangentStiffnessData< DisplacementDim >::stiffness_tensor, MaterialPropertyLib::VariableArray::stress, ProcessLib::ConstitutiveRelations::SpaceTimeData::t, ProcessLib::TH2M::ConstitutiveRelations::TemperatureData::T, ProcessLib::TH2M::ConstitutiveRelations::TemperatureData::T_prev, MaterialPropertyLib::VariableArray::temperature, and ProcessLib::ConstitutiveRelations::SpaceTimeData::x.

Member Data Documentation

◆ solid_material_

template<int DisplacementDim>
SolidConstitutiveRelation<DisplacementDim> const& ProcessLib::TH2M::ConstitutiveRelations::ElasticTangentStiffnessModel< DisplacementDim >::solid_material_
private

Definition at line 34 of file ElasticTangentStiffnessModel.h.


The documentation for this struct was generated from the following files: