26 #ifndef OPM_MODELS_DIRECTIONAL_MOBILITY_HH 27 #define OPM_MODELS_DIRECTIONAL_MOBILITY_HH 40 template <
class TypeTag>
43 enum { numPhases = getPropValue<TypeTag, Properties::NumPhases>() };
47 using array_type = std::array<Evaluation,numPhases>;
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_{};
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
Definition: directionalmobility.hh:41
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:45
Declare the properties used by the infrastructure code of the finite volume discretizations.
The Opm property system, traits with inheritance.