mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Implement total rate constraint for wells.
Untested.
This commit is contained in:
@@ -715,6 +715,11 @@ assemble_well_contrib(size_t nc,
|
||||
}
|
||||
|
||||
is_neumann = is_neumann && (! is_bhp);
|
||||
|
||||
if (! is_bhp) {
|
||||
/* Enforce total (reservoir volume) rate constraint. */
|
||||
h->b[nc + w] += wctrl->target[w];
|
||||
}
|
||||
}
|
||||
|
||||
return is_neumann;
|
||||
|
||||
Reference in New Issue
Block a user