28 #ifndef EWOMS_DISCRETE_FRACTURE_PRIMARY_VARIABLES_HH 29 #define EWOMS_DISCRETE_FRACTURE_PRIMARY_VARIABLES_HH 45 template <
class TypeTag>
55 enum { numPhases = getPropValue<TypeTag, Properties::NumPhases>() };
71 using ParentType::operator=;
85 template <
class Flu
idState>
87 const MaterialLawParams& matParams)
89 FluidState matrixFluidState;
90 fractureToMatrixFluidState_(matrixFluidState, fractureFluidState,
97 template <
class Flu
idState>
98 void fractureToMatrixFluidState_(FluidState& matrixFluidState,
99 const FluidState& fractureFluidState,
100 const MaterialLawParams& matParams)
const 103 matrixFluidState.assign(fractureFluidState);
110 std::array<Scalar, numPhases> saturations;
111 MaterialLaw::saturations(saturations, matParams, matrixFluidState);
113 for (
unsigned phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx) {
114 matrixFluidState.setSaturation(phaseIdx, saturations[phaseIdx]);
Defines the properties required for the immiscible multi-phase model which considers discrete fractur...
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
Represents the primary variables used by the discrete fracture multi-phase model. ...
Definition: discretefractureprimaryvariables.hh:46
void assignNaive(const FluidState &fluidState)
Directly retrieve the primary variables from an arbitrary fluid state.
Definition: immiscibleprimaryvariables.hh:189
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
void assignNaiveFromFracture(const FluidState &fractureFluidState, const MaterialLawParams &matParams)
< Import base class assignment operators.
Definition: discretefractureprimaryvariables.hh:86
Represents the primary variables used by the immiscible multi-phase, model.
Definition: immiscibleprimaryvariables.hh:53
Represents the primary variables used by the immiscible multi-phase, model.
DiscreteFracturePrimaryVariables()=default
Default constructor.