mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adding flag to tell when using well potential for guide rate
for WellNode.
This commit is contained in:
@@ -921,7 +921,8 @@ namespace Opm
|
||||
self_index_(-1),
|
||||
group_control_index_(-1),
|
||||
shut_well_(true), // This is default for now
|
||||
target_updated_(false) // This is default for now, not sure whether to use the default value
|
||||
target_updated_(false), // This is default for now, not sure whether to use the default value
|
||||
is_guiderate_wellpotential_(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1651,6 +1652,18 @@ namespace Opm
|
||||
}
|
||||
|
||||
|
||||
bool WellNode::isGuideRateWellPotential() const
|
||||
{
|
||||
return is_guiderate_wellpotential_;
|
||||
}
|
||||
|
||||
|
||||
void WellNode::setIsGuideRateWellPotential(const bool flag)
|
||||
{
|
||||
is_guiderate_wellpotential_ = flag;
|
||||
}
|
||||
|
||||
|
||||
bool WellNode::canProduceMore() const
|
||||
{
|
||||
return (isProducer() && !individualControl());
|
||||
|
Reference in New Issue
Block a user