mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixing well potentials calculation after introducing the saturation table
The calculation of well potentials of newly added well failed after using the saturation table. Here, we fix it using much smaller parameters to stablize the calculation, while it slows down the iteration process. TODO: improves the convergence rate by either introducing better paramters or better iteration strategy.
This commit is contained in:
@@ -1768,7 +1768,7 @@ namespace Opm {
|
|||||||
for (double& value : potentials) {
|
for (double& value : potentials) {
|
||||||
// make the value a little safer in case the BHP limits are default ones
|
// make the value a little safer in case the BHP limits are default ones
|
||||||
// TODO: a better way should be a better rescaling based on the investigation of the VFP table.
|
// TODO: a better way should be a better rescaling based on the investigation of the VFP table.
|
||||||
value *= 0.001;
|
value *= 0.00001;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2866,8 +2866,9 @@ namespace Opm {
|
|||||||
if (!converged) {
|
if (!converged) {
|
||||||
old_bhp = bhp;
|
old_bhp = bhp;
|
||||||
for (int p = 0; p < np; ++p) {
|
for (int p = 0; p < np; ++p) {
|
||||||
// TODO: improve the interpolation, will it always be valid with the way below
|
// TODO: improve the interpolation, will it always be valid with the way below?
|
||||||
potentials[p] = 0.01 * potentials[p] + 0.99 * old_potentials[p];
|
// TODO: finding better paramters, better iteration strategy for better convergence rate.
|
||||||
|
potentials[p] = 0.001 * potentials[p] + 0.999 * old_potentials[p];
|
||||||
old_potentials[p] = potentials[p];
|
old_potentials[p] = potentials[p];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user