Implement total rate constraint for wells.

Untested.
This commit is contained in:
Bård Skaflestad 2011-02-16 10:41:43 +01:00
parent 405900ac39
commit fb2192a7ed

View File

@ -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;