mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 10:40:21 -06:00
Move rel-perm and viscosity calculations closer to use
This is an aesthetic change, only.
This commit is contained in:
parent
fa2e02a579
commit
c8fb7169aa
@ -452,13 +452,13 @@ namespace Opm {
|
|||||||
|
|
||||||
for (int phase = 0; phase < np; ++phase) {
|
for (int phase = 0; phase < np; ++phase) {
|
||||||
const ADB cell_rho = pdepfdata_.phaseDensity(phase, p);
|
const ADB cell_rho = pdepfdata_.phaseDensity(phase, p);
|
||||||
const V kr = pdepfdata_.phaseRelPerm(phase);
|
|
||||||
const ADB mu = pdepfdata_.phaseViscosity(phase, p);
|
|
||||||
const V head = nkgradp +
|
const V head = nkgradp +
|
||||||
(grav_ * cell_rho.value().matrix()).array();
|
(grav_ * cell_rho.value().matrix()).array();
|
||||||
|
|
||||||
const UpwindSelector<double> upwind(grid_, ops_, head);
|
const UpwindSelector<double> upwind(grid_, ops_, head);
|
||||||
|
|
||||||
|
const V kr = pdepfdata_.phaseRelPerm(phase);
|
||||||
|
const ADB mu = pdepfdata_.phaseViscosity(phase, p);
|
||||||
const V mf = upwind.select(kr / mu.value());
|
const V mf = upwind.select(kr / mu.value());
|
||||||
|
|
||||||
flux += mf * head;
|
flux += mf * head;
|
||||||
|
Loading…
Reference in New Issue
Block a user