20#ifndef OPM_PY_FLUID_STATE_HEADER_INCLUDED
21#define OPM_PY_FLUID_STATE_HEADER_INCLUDED
23#include <opm/models/utils/propertysystem.hh>
34 template <
class TypeTag>
36 using Simulator = GetPropType<TypeTag, Opm::Properties::Simulator>;
37 using Problem = GetPropType<TypeTag, Opm::Properties::Problem>;
38 using Model = GetPropType<TypeTag, Opm::Properties::Model>;
39 using ElementContext = GetPropType<TypeTag, Opm::Properties::ElementContext>;
40 using FluidSystem = GetPropType<TypeTag, Opm::Properties::FluidSystem>;
41 using Indices = GetPropType<TypeTag, Opm::Properties::Indices>;
42 using GridView = GetPropType<TypeTag, Opm::Properties::GridView>;
43 using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>;
45 enum class VariableType {
47 Sw, Sg, So, pw, pg, po, Rs, Rv, rho_w, rho_g, rho_o, T
55 void setPrimaryVariable(
const std::string &idx_name,
const double *data, std::size_t size);
58 std::size_t getPrimaryVarIndex_(
const std::string &idx_name)
const;
59 int getVariableMeaning_(PrimaryVariables &primary_vars,
const std::string &variable)
const;
60 VariableType getVariableType_(
const std::string &name)
const;
61 template <
class Flu
idState>
double getVariableValue_(
62 FluidState &fs, VariableType var_type,
const std::string &name)
const;
63 void variableNotFoundError_(
const std::string &name)
const;
65 Simulator* simulator_;
Definition: PyFluidState.hpp:35
std::map< std::string, int > getPrimaryVarMeaningMap(const std::string &variable) const
Definition: PyFluidState_impl.hpp:52
PyFluidState(Simulator *simulator)
Definition: PyFluidState_impl.hpp:25
std::vector< double > getFluidStateVariable(const std::string &name) const
Definition: PyFluidState_impl.hpp:112
std::vector< int > getPrimaryVarMeaning(const std::string &variable) const
Definition: PyFluidState_impl.hpp:36
void setPrimaryVariable(const std::string &idx_name, const double *data, std::size_t size)
Definition: PyFluidState_impl.hpp:156
std::vector< double > getPrimaryVariable(const std::string &idx_name) const
Definition: PyFluidState_impl.hpp:139
Definition: Pybind11Exporter.hpp:11