mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fixed bug for computeMc.
This commit is contained in:
parent
4e3f486d13
commit
023cbb228e
@ -220,7 +220,6 @@ namespace Opm
|
|||||||
}
|
}
|
||||||
|
|
||||||
void computeMc(const double& c,
|
void computeMc(const double& c,
|
||||||
const double* visc,
|
|
||||||
double& mc,
|
double& mc,
|
||||||
double& dmcdc) const
|
double& dmcdc) const
|
||||||
{
|
{
|
||||||
@ -228,7 +227,7 @@ namespace Opm
|
|||||||
double omega = mix_param_;
|
double omega = mix_param_;
|
||||||
double r = std::pow(viscMult(c_max_), 1 - omega); // viscMult(c_max_)=mu_p/mu_w
|
double r = std::pow(viscMult(c_max_), 1 - omega); // viscMult(c_max_)=mu_p/mu_w
|
||||||
mc = c/(cbar + (1 - cbar)*r);
|
mc = c/(cbar + (1 - cbar)*r);
|
||||||
dmdc = r/std::pow(cbar + (1 - cbar)*r, 2);
|
dmcdc = r/std::pow(cbar + (1 - cbar)*r, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user