My Project
Loading...
Searching...
No Matches
Opm::WellBhpThpCalculator Class Reference

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< doublecomputeBhpAtThpLimitProd (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< doublecomputeBhpAtThpLimitInj (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
 

Detailed Description

Class for computing BHP limits.


The documentation for this class was generated from the following files: