26#ifndef OPM_MODELS_DIRECTIONAL_MOBILITY_HH
27#define OPM_MODELS_DIRECTIONAL_MOBILITY_HH
40template <
class TypeTag>
41class DirectionalMobility
47 using array_type = std::array<Evaluation,numPhases>;
49 DirectionalMobility() =
default;
51 DirectionalMobility(
const array_type& mX,
54 : mobility_{mX, mY, mZ}
57 const array_type& getArray(
unsigned index)
const
60 throw std::runtime_error(
"Unexpected mobility array index " + std::to_string(index));
63 return mobility_[index];
66 array_type& getArray(
unsigned index)
68 return const_cast<array_type&
>(std::as_const(*this).getArray(index));
72 std::array<array_type,3> mobility_{};
Declare the properties used by the infrastructure code of the finite volume discretizations.
Defines the common properties required by the porous medium multi-phase models.
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
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
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:240
The Opm property system, traits with inheritance.