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 246af80ee8
commit 62e4b791d2
7 changed files with 65 additions and 46 deletions

View File

@@ -88,9 +88,10 @@ namespace Opm
return NULL;
}
bool WellCollection::conditionsMet(const std::vector<double>& well_bhp, const std::vector<double>& well_rate) const {
bool WellCollection::conditionsMet(const std::vector<double>& well_bhp, const std::vector<double>& well_rate,
const UnstructuredGrid& grid, const std::vector<double>& saturations, double epsilon) const {
for(size_t i = 0; i < leaf_nodes_.size(); i++) {
if(! static_cast<WellNode*>(leaf_nodes_[i].get())->conditionsMet(well_bhp, well_rate) ) {
if(! static_cast<WellNode*>(leaf_nodes_[i].get())->conditionsMet(well_bhp, well_rate, grid, saturations, epsilon) ) {
return false;
}
}