adding computeWellRatesWithBhp() to calculate well rates

for one well based on the give Bhp.
This commit is contained in:
Kai Bao
2017-03-31 12:56:30 +02:00
parent 7b2e6760e1
commit 402a5a125a
2 changed files with 40 additions and 0 deletions

View File

@@ -365,6 +365,15 @@ enum WellVariablePositions {
bool wellHasTHPConstraints(const int well_index) const;
// TODO: maybe we should provide a light version of computeWellFlux, which does not include the
// calculation of the derivatives
template<typename Simulator>
void
computeWellRatesWithBhp(const Simulator& ebosSimulator,
const EvalWell& bhp,
const int well_index,
std::vector<double>& well_flux) const;
};