OGS
MaterialLib::Solids::MechanicsBase< DisplacementDim >::InternalVariable Struct Reference

Detailed Description

template<int DisplacementDim>
struct MaterialLib::Solids::MechanicsBase< DisplacementDim >::InternalVariable

Helper type for providing access to internal variables.

Definition at line 103 of file MechanicsBase.h.

#include <MechanicsBase.h>

Public Types

using Getter = std::function< std::vector< double > const &(MaterialStateVariables const &, std::vector< double > &)>
 
using WriteAccess = std::function< std::span< double >(MaterialStateVariables &)>
 

Public Attributes

std::string const name
 name of the internal variable
 
int const num_components
 number of components of the internal variable
 
Getter const getter
 function accessing the internal variable
 
WriteAccess const reference
 function accessing the internal variable
 

Member Typedef Documentation

◆ Getter

template<int DisplacementDim>
using MaterialLib::Solids::MechanicsBase< DisplacementDim >::InternalVariable::Getter = std::function<std::vector<double> const&( MaterialStateVariables const&, std::vector<double>& )>

Definition at line 105 of file MechanicsBase.h.

◆ WriteAccess

template<int DisplacementDim>
using MaterialLib::Solids::MechanicsBase< DisplacementDim >::InternalVariable::WriteAccess = std::function<std::span<double>(MaterialStateVariables&)>

Definition at line 107 of file MechanicsBase.h.

Member Data Documentation

◆ getter

template<int DisplacementDim>
Getter const MaterialLib::Solids::MechanicsBase< DisplacementDim >::InternalVariable::getter

function accessing the internal variable

Definition at line 117 of file MechanicsBase.h.

◆ name

template<int DisplacementDim>
std::string const MaterialLib::Solids::MechanicsBase< DisplacementDim >::InternalVariable::name

name of the internal variable

Definition at line 111 of file MechanicsBase.h.

◆ num_components

template<int DisplacementDim>
int const MaterialLib::Solids::MechanicsBase< DisplacementDim >::InternalVariable::num_components

number of components of the internal variable

Definition at line 114 of file MechanicsBase.h.

◆ reference

template<int DisplacementDim>
WriteAccess const MaterialLib::Solids::MechanicsBase< DisplacementDim >::InternalVariable::reference

function accessing the internal variable

Definition at line 120 of file MechanicsBase.h.


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