Refactor out the solving algorithm of bhp from thp via VFP to make it usable for injectors

This commit is contained in:
Tor Harald Sandve
2022-02-09 10:49:17 +01:00
parent 1001d35418
commit ec08f80405
2 changed files with 37 additions and 1 deletions

View File

@@ -184,6 +184,9 @@ public:
const double alq_value,
DeferredLogger& deferred_logger
) const;
protected:
bool getAllowCrossFlow() const;
double mostStrictBhpFromBhpLimits(const SummaryState& summaryState) const;
@@ -198,6 +201,13 @@ protected:
const double vfp_flo_front,
DeferredLogger& deferred_logger) const;
std::optional<double> computeBhpAtThpLimitCommon(
const std::function<std::vector<double>(const double)>& frates,
const std::function<double(const std::vector<double>)>& fbhp,
const std::array<double, 2> range,
DeferredLogger& deferred_logger) const;
bool bruteForceBracket(const std::function<double(const double)>& eq,
const std::array<double, 2>& range,
double& low, double& high,