revising injectionGuideRate and productionGuideRate
for WellNode. It gives a better logic.
This commit is contained in:
1 parent
7295f26f54
commit
e183ab6ccd
1 file changed
+8
-8
@@ -1026,13 +1026,12 @@ namespace Opm
|
|||||||
{
|
{
|
||||||
// Current understanding. Two ways might prevent to return the guide_rate here
|
// Current understanding. Two ways might prevent to return the guide_rate here
|
||||||
// 1. preventing the well from group control with keyword WGRUPCON
|
// 1. preventing the well from group control with keyword WGRUPCON
|
||||||
// 2. the well violating some limits and working under limits. We do not have strategy
|
// 2. the well violating some limits and working under limits.
|
||||||
// to handle this situation yet.
|
if (!only_group || !individual_control_) {
|
||||||
// if (!only_group || prodSpec().control_mode_ == ProductionSpecification::GRUP) {
|
|
||||||
std::cout << "guide_rate for well " << name() << " is " << prodSpec().guide_rate_ << std::endl;
|
|
||||||
return prodSpec().guide_rate_;
|
return prodSpec().guide_rate_;
|
||||||
// }
|
} else {
|
||||||
// return 0.0;
|
return 0.0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Calculates the injection guide rate for the group.
|
/// Calculates the injection guide rate for the group.
|
||||||
@@ -1040,11 +1039,12 @@ namespace Opm
|
|||||||
/// wells under group control
|
/// wells under group control
|
||||||
double WellNode::injectionGuideRate(bool only_group)
|
double WellNode::injectionGuideRate(bool only_group)
|
||||||
{
|
{
|
||||||
if (!only_group || injSpec().control_mode_ == InjectionSpecification::GRUP) {
|
if (!only_group || !individual_control_) {
|
||||||
return injSpec().guide_rate_;
|
return injSpec().guide_rate_;
|
||||||
}
|
} else {
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user