OGS
VariableType.h File Reference

Detailed Description

Author
Norbert Grunwald
Date
Sep 7, 2017

Definition in file VariableType.h.

#include <Eigen/Dense>
#include <array>
#include <string>
#include <variant>
Include dependency graph for VariableType.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 MaterialPropertyLib
 

Typedefs

using MaterialPropertyLib::Pair = std::array< double, 2 >
 
using MaterialPropertyLib::Vector = std::array< double, 3 >
 
using MaterialPropertyLib::SymmTensor = std::array< double, 6 >
 
using MaterialPropertyLib::Tensor2d = std::array< double, 4 >
 Very simple 2d tensor data type for holding tensor components. More...
 
using MaterialPropertyLib::Tensor = std::array< double, 9 >
 
using MaterialPropertyLib::VariableType = std::variant< std::monostate, double, Vector, Eigen::Matrix< double, 4, 1 >, Eigen::Matrix< double, 6, 1 > >
 
using MaterialPropertyLib::VariableArray = std::array< VariableType, static_cast< int >(Variable::number_of_variables)>
 

Enumerations

enum class  MaterialPropertyLib::Variable : int {
  MaterialPropertyLib::capillary_pressure , MaterialPropertyLib::concentration , MaterialPropertyLib::density , MaterialPropertyLib::displacement ,
  MaterialPropertyLib::effective_pore_pressure , MaterialPropertyLib::enthalpy_of_evaporation , MaterialPropertyLib::equivalent_plastic_strain , MaterialPropertyLib::grain_compressibility ,
  MaterialPropertyLib::liquid_phase_pressure , MaterialPropertyLib::liquid_saturation , MaterialPropertyLib::mechanical_strain , MaterialPropertyLib::molar_mass ,
  MaterialPropertyLib::molar_fraction , MaterialPropertyLib::phase_pressure , MaterialPropertyLib::porosity , MaterialPropertyLib::solid_grain_pressure ,
  MaterialPropertyLib::stress , MaterialPropertyLib::temperature , MaterialPropertyLib::total_strain , MaterialPropertyLib::total_stress ,
  MaterialPropertyLib::transport_porosity , MaterialPropertyLib::vapour_pressure , MaterialPropertyLib::volumetric_strain , MaterialPropertyLib::number_of_variables
}
 

Functions

Variable MaterialPropertyLib::convertStringToVariable (std::string const &string)
 

Variables

static const std::array< std::string, static_cast< int >Variable::number_of_variables)> MaterialPropertyLib::variable_enum_to_string