mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Improvments in convergence for flow_ebos
- restrict pressure changes. Set default to 1.0 (this also effects flow) - change default number of linear iterations to 150 - tell stabilized newton the residual occilates even if it occilates in only one phase (this also effects flow) - avoid problems realated to division on small numbers Tested on SPE9, norne and Model 2 with significant improvments.
This commit is contained in:
@@ -1502,7 +1502,8 @@ namespace Opm {
|
||||
currentControlIdx += wells().comp_frac[np*wellIdx + i] * i;
|
||||
}
|
||||
|
||||
if (wellVolumeFractionScaled(wellIdx,currentControlIdx) == 0) {
|
||||
const double eps = 1e-6;
|
||||
if (wellVolumeFractionScaled(wellIdx,currentControlIdx) < eps) {
|
||||
return qs;
|
||||
}
|
||||
return (target_rate * wellVolumeFractionScaled(wellIdx,phaseIdx) / wellVolumeFractionScaled(wellIdx,currentControlIdx));
|
||||
|
||||
Reference in New Issue
Block a user