mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-06 14:16:45 -05:00
Added checks for BHP and fluid_volume_rate for group control. Also added error tolerance for group control
This commit is contained in:
1 parent
40ac7414ac
commit
fcca65748e
1 file changed
+1
-1
@@ -76,7 +76,7 @@ int main(int argc, char** argv) {
|
|||||||
std::vector<double> well_rate;
|
std::vector<double> well_rate;
|
||||||
pressure_solver.solve(totmob, omega, src, wdp, bcs.c_bcs(), pressure, face_flux, well_bhp, well_rate);
|
pressure_solver.solve(totmob, omega, src, wdp, bcs.c_bcs(), pressure, face_flux, well_bhp, well_rate);
|
||||||
std::cout << "Solved" << std::endl;
|
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;
|
std::cout << "Conditions met for wells!" << std::endl;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user