20 #ifndef OPM_PY_FLUID_STATE_HEADER_INCLUDED 21 #define OPM_PY_FLUID_STATE_HEADER_INCLUDED 35 template <
class TypeTag>
46 enum class VariableType {
48 Sw, Sg, So, pw, pg, po, Rs, Rv, rho_w, rho_g, rho_o, T
55 getFluidStateVariable(
const std::string& name)
const;
58 getPrimaryVarMeaning(
const std::string& variable)
const;
60 std::map<std::string, int>
61 getPrimaryVarMeaningMap(
const std::string& variable)
const;
64 getPrimaryVariable(
const std::string &idx_name)
const;
66 void setPrimaryVariable(
const std::string& idx_name,
71 std::size_t getPrimaryVarIndex_(
const std::string& idx_name)
const;
73 int getVariableMeaning_(PrimaryVariables& primary_vars,
74 const std::string& variable)
const;
76 VariableType getVariableType_(
const std::string& name)
const;
78 template <
class Flu
idState>
79 double getVariableValue_(FluidState& fs,
80 VariableType var_type,
81 const std::string& name)
const;
83 void variableNotFoundError_(
const std::string& name)
const;
85 Simulator* simulator_{
nullptr};
90 #include "PyFluidState_impl.hpp" 92 #endif // OPM_PY_FLUID_STATE_HEADER_INCLUDED typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(...))
Definition: propertysystem.hh:233
Defines the common properties required by the porous medium multi-phase models.
Declare the properties used by the infrastructure code of the finite volume discretizations.
The Opm property system, traits with inheritance.
Definition: PyBaseSimulator.hpp:41
Defines a type tags and some fundamental properties all models.
Definition: PyFluidState.hpp:36