static Evaluation pcnw(const Params ¶ms, const FluidState &fs) { typedef MathToolbox<typename FluidState::Scalar> FsToolbox; const auto& Sw = FsToolbox::template toLhs<Evaluation>(fs.saturation(Traits::wettingPhaseIdx)); return twoPhaseSatPcnw(params, Sw); }
static Evaluation pcnw(const Params& params, const FluidState& fs) { const Evaluation& Sw = Opm::decay<Evaluation>(fs.saturation(Traits::wettingPhaseIdx)); assert(0.0 <= Sw && Sw <= 1.0); return twoPhaseSatPcnw(params, Sw); }
static Evaluation pcnw(const Params& params, const FluidState& fs) { const auto& Sw = Opm::decay<Evaluation>(fs.saturation(Traits::wettingPhaseIdx)); return twoPhaseSatPcnw(params, Sw); }