wells under zero injection target are also treated as stopped well

when formulating the well control equations
This commit is contained in:
Kai Bao
2023-03-28 13:14:33 +02:00
parent b4b8e7aff1
commit f4e0a996b9
10 changed files with 53 additions and 33 deletions

View File

@@ -31,8 +31,10 @@
namespace Opm {
class ParallelWellInfo;
struct WellProductionControls;
struct WellInjectionControls;
enum class WellProducerCMode;
class WellProductionControls;
enum class WellInjectorCMode;
namespace wellhelpers {
@@ -86,8 +88,12 @@ template <class DenseMatrix>
DenseMatrix transposeDenseDynMatrix(const DenseMatrix& M);
/// Helper to check whether the well is under zero production rate control
bool rateControlWithZeroTarget(const WellProducerCMode& mode,
const WellProductionControls& controls);
bool rateControlWithZeroProdTarget(const WellProductionControls& controls,
WellProducerCMode mode);
/// Helper to check whether the well is under zero injection rate control
bool rateControlWithZeroInjTarget(const WellInjectionControls& controls,
WellInjectorCMode mode);
} // namespace wellhelpers
} // namespace Opm