Added checks for BHP and fluid_volume_rate for group control. Also added error tolerance for group control

This commit is contained in:
Kjetil Olsen Lye
2012-04-13 12:57:47 +02:00
parent fdfd360481
commit affbb08795
9 changed files with 67 additions and 48 deletions

View File

@@ -76,7 +76,7 @@ int main(int argc, char** argv) {
std::vector<double> well_rate;
pressure_solver.solve(totmob, omega, src, wdp, bcs.c_bcs(), pressure, face_flux, well_bhp, well_rate);
std::cout << "Solved" << std::endl;
if(wells.wellCollection().conditionsMet(well_bhp, well_rate)) {
if(wells.wellCollection().conditionsMet(well_bhp, well_rate, *grid.c_grid(), state.saturation() )) {
std::cout << "Conditions met for wells!" << std::endl;
}
else