My Project
|
Class for computing BHP limits. More...
#include <WellBhpThpCalculator.hpp>
Public Member Functions | |
WellBhpThpCalculator (const WellInterfaceGeneric &well) | |
Constructor sets reference to well. | |
bool | wellHasTHPConstraints (const SummaryState &summaryState) const |
Checks if well has THP constraints. | |
double | getTHPConstraint (const SummaryState &summaryState) const |
Get THP constraint for well. | |
double | mostStrictBhpFromBhpLimits (const SummaryState &summaryState) const |
Obtain the most strict BHP from BHP limits. | |
double | calculateThpFromBhp (const std::vector< double > &rates, const double bhp, const double rho, const std::optional< double > &alq, const double thp_limit, DeferredLogger &deferred_logger) const |
Calculates THP from BHP. | |
std::optional< double > | computeBhpAtThpLimitProd (const std::function< std::vector< double >(const double)> &frates, const SummaryState &summary_state, const double maxPerfPress, const double rho, const double alq_value, const double thp_limit, DeferredLogger &deferred_logger) const |
Compute BHP from THP limit for a producer. | |
std::optional< double > | computeBhpAtThpLimitInj (const std::function< std::vector< double >(const double)> &frates, const SummaryState &summary_state, const double rho, const double flo_rel_tol, const int max_iteration, const bool throwOnError, DeferredLogger &deferred_logger) const |
Compute BHP from THP limit for an injector. | |
void | updateThp (const double rho, const bool stop_or_zero_rate_target, const std::function< double()> &alq_value, const std::array< unsigned, 3 > &active, WellState &well_state, const SummaryState &summary_state, DeferredLogger &deferred_logger) const |
Update THP. | |
template<class EvalWell > | |
EvalWell | calculateBhpFromThp (const WellState &well_state, const std::vector< EvalWell > &rates, const Well &well, const SummaryState &summaryState, const double rho, DeferredLogger &deferred_logger) const |
double | calculateMinimumBhpFromThp (const WellState &well_state, const Well &well, const SummaryState &summaryState, const double rho) const |
bool | isStableSolution (const WellState &well_state, const Well &well, const std::vector< double > &rates, const SummaryState &summaryState) const |
std::optional< double > | estimateStableBhp (const WellState &well_state, const Well &well, const std::vector< double > &rates, const double rho, const SummaryState &summaryState) const |
std::pair< double, double > | getFloIPR (const WellState &well_state, const Well &well, const SummaryState &summary_state) const |
Class for computing BHP limits.