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

Detailed Description

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

Definition at line 74 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 77 of file SolidMaterialInternalToSecondaryVariables.h.

79 {
80 int const material_id =
81 material_id_independent ? 0 : loc_asm.getMaterialID();
82
83 auto const mat_iv_it = std::find_if(
85 [material_id](auto const& x) { return x.first == material_id; });
86 if (mat_iv_it == end(mat_iv_collection))
87 {
88 // If local assembler does not provide correct solid material
89 // model return empty vector, which will be ignored by the
90 // extrapolation algorithm.
91 return nullptr;
92 }
93
94 assert(num_components == mat_iv_it->second.num_components);
95
96 return &mat_iv_it->second;
97 }
std::vector< std::pair< int, InternalVariable > > mat_iv_collection

References ProcessLib::Deformation::InternalVariablesCollection< InternalVariable >::mat_iv_collection, ProcessLib::Deformation::InternalVariablesCollection< InternalVariable >::material_id_independent, and ProcessLib::Deformation::InternalVariablesCollection< InternalVariable >::num_components.

Member Data Documentation

◆ mat_iv_collection

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

◆ material_id_independent

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

◆ num_components


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