OGS
ProcessLib::Deformation::InternalVariablesCollection< InternalVariable > Struct Template Reference

Detailed Description

template<typename InternalVariable>
struct ProcessLib::Deformation::InternalVariablesCollection< InternalVariable >

Definition at line 67 of file SolidMaterialInternalToSecondaryVariables.h.

#include <SolidMaterialInternalToSecondaryVariables.h>

Public Member Functions

template<typename LocalAssemblerInterface>
InternalVariable const * findInternalVariable (LocalAssemblerInterface const &loc_asm) const

Public Attributes

std::vector< std::pair< int, InternalVariable > > mat_iv_collection
int num_components
bool material_id_independent

Member Function Documentation

◆ findInternalVariable()

template<typename InternalVariable>
template<typename LocalAssemblerInterface>
InternalVariable const * ProcessLib::Deformation::InternalVariablesCollection< InternalVariable >::findInternalVariable ( LocalAssemblerInterface const & loc_asm) const
inline

Definition at line 70 of file SolidMaterialInternalToSecondaryVariables.h.

72 {
73 int const material_id =
74 material_id_independent ? 0 : loc_asm.getMaterialID();
75
76 auto const mat_iv_it = std::find_if(
78 [material_id](auto const& x) { return x.first == material_id; });
80 {
81 // If local assembler does not provide correct solid material
82 // model return empty vector, which will be ignored by the
83 // extrapolation algorithm.
84 return nullptr;
85 }
86
88
89 return &mat_iv_it->second;
90 }
std::vector< std::pair< int, InternalVariable > > mat_iv_collection

References mat_iv_collection, material_id_independent, and num_components.

Member Data Documentation

◆ mat_iv_collection

template<typename InternalVariable>
std::vector<std::pair<int, InternalVariable> > ProcessLib::Deformation::InternalVariablesCollection< InternalVariable >::mat_iv_collection

Definition at line 92 of file SolidMaterialInternalToSecondaryVariables.h.

Referenced by findInternalVariable().

◆ material_id_independent

template<typename InternalVariable>
bool ProcessLib::Deformation::InternalVariablesCollection< InternalVariable >::material_id_independent

Definition at line 94 of file SolidMaterialInternalToSecondaryVariables.h.

Referenced by findInternalVariable().

◆ num_components

template<typename InternalVariable>
int ProcessLib::Deformation::InternalVariablesCollection< InternalVariable >::num_components

Definition at line 93 of file SolidMaterialInternalToSecondaryVariables.h.

Referenced by findInternalVariable().


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