OGS 6.2.1-499-g3b941532c.dirty.20191012113459
VariableType.h File Reference

Detailed Description

Author
Norbert Grunwald
Date
Sep 7, 2017

Definition in file VariableType.h.

#include <array>
#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< double, Vector >
 
using MaterialPropertyLib::VariableArray = std::array< VariableType, static_cast< int >(Variable::number_of_variables)>
 

Enumerations

enum  MaterialPropertyLib::Variable : int {
  MaterialPropertyLib::Variable::concentration, MaterialPropertyLib::Variable::phase_pressure, MaterialPropertyLib::Variable::capillary_pressure, MaterialPropertyLib::Variable::density,
  MaterialPropertyLib::Variable::temperature, MaterialPropertyLib::Variable::liquid_saturation, MaterialPropertyLib::Variable::displacement, MaterialPropertyLib::Variable::number_of_variables
}
 

Functions

double MaterialPropertyLib::getScalar (VariableType pv)
 This method returns a value of type double from the variables array. More...
 
Variable MaterialPropertyLib::convertStringToVariable (std::string const &input)