mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
renaming calcRates to calcResvCoeff
and calcInjRates to calcInjResvCoeff.
This commit is contained in:
parent
808035c9e8
commit
e968da28bb
@ -547,14 +547,14 @@ class WellContributions;
|
|||||||
|
|
||||||
void wellTesting(const int timeStepIdx, const double simulationTime, DeferredLogger& deferred_logger);
|
void wellTesting(const int timeStepIdx, const double simulationTime, DeferredLogger& deferred_logger);
|
||||||
|
|
||||||
void calcRates(const int fipnum,
|
void calcResvCoeff(const int fipnum,
|
||||||
const int pvtreg,
|
const int pvtreg,
|
||||||
const std::vector<Scalar>& production_rates,
|
const std::vector<Scalar>& production_rates,
|
||||||
std::vector<Scalar>& resv_coeff) override;
|
std::vector<Scalar>& resv_coeff) override;
|
||||||
|
|
||||||
void calcInjRates(const int fipnum,
|
void calcInjResvCoeff(const int fipnum,
|
||||||
const int pvtreg,
|
const int pvtreg,
|
||||||
std::vector<Scalar>& resv_coeff) override;
|
std::vector<Scalar>& resv_coeff) override;
|
||||||
|
|
||||||
void computeWellTemperature();
|
void computeWellTemperature();
|
||||||
|
|
||||||
|
@ -598,7 +598,7 @@ checkGroupHigherConstraints(const Group& group,
|
|||||||
if (!isField && group.isInjectionGroup()) {
|
if (!isField && group.isInjectionGroup()) {
|
||||||
// Obtain rates for group.
|
// Obtain rates for group.
|
||||||
std::vector<Scalar> resv_coeff_inj(phase_usage_.num_phases, 0.0);
|
std::vector<Scalar> resv_coeff_inj(phase_usage_.num_phases, 0.0);
|
||||||
calcInjRates(fipnum, pvtreg, resv_coeff_inj);
|
calcInjResvCoeff(fipnum, pvtreg, resv_coeff_inj);
|
||||||
|
|
||||||
for (int phasePos = 0; phasePos < phase_usage_.num_phases; ++phasePos) {
|
for (int phasePos = 0; phasePos < phase_usage_.num_phases; ++phasePos) {
|
||||||
const Scalar local_current_rate = WellGroupHelpers<Scalar>::sumWellSurfaceRates(group,
|
const Scalar local_current_rate = WellGroupHelpers<Scalar>::sumWellSurfaceRates(group,
|
||||||
@ -664,7 +664,7 @@ checkGroupHigherConstraints(const Group& group,
|
|||||||
rates[phasePos] = -comm_.sum(local_current_rate);
|
rates[phasePos] = -comm_.sum(local_current_rate);
|
||||||
}
|
}
|
||||||
std::vector<Scalar> resv_coeff(phase_usage_.num_phases, 0.0);
|
std::vector<Scalar> resv_coeff(phase_usage_.num_phases, 0.0);
|
||||||
calcRates(fipnum, pvtreg, this->groupState().production_rates(group.name()), resv_coeff);
|
calcResvCoeff(fipnum, pvtreg, this->groupState().production_rates(group.name()), resv_coeff);
|
||||||
// Check higher up only if under individual (not FLD) control.
|
// Check higher up only if under individual (not FLD) control.
|
||||||
const Group::ProductionCMode& currentControl = this->groupState().production_control(group.name());
|
const Group::ProductionCMode& currentControl = this->groupState().production_control(group.name());
|
||||||
if (currentControl != Group::ProductionCMode::FLD && group.productionGroupControlAvailable()) {
|
if (currentControl != Group::ProductionCMode::FLD && group.productionGroupControlAvailable()) {
|
||||||
|
@ -339,13 +339,13 @@ protected:
|
|||||||
void setWsolvent(const Group& group,
|
void setWsolvent(const Group& group,
|
||||||
const int reportStepIdx,
|
const int reportStepIdx,
|
||||||
Scalar wsolvent);
|
Scalar wsolvent);
|
||||||
virtual void calcRates(const int fipnum,
|
virtual void calcResvCoeff(const int fipnum,
|
||||||
const int pvtreg,
|
const int pvtreg,
|
||||||
const std::vector<Scalar>& production_rates,
|
const std::vector<Scalar>& production_rates,
|
||||||
std::vector<Scalar>& resv_coeff) = 0;
|
std::vector<Scalar>& resv_coeff) = 0;
|
||||||
virtual void calcInjRates(const int fipnum,
|
virtual void calcInjResvCoeff(const int fipnum,
|
||||||
const int pvtreg,
|
const int pvtreg,
|
||||||
std::vector<Scalar>& resv_coeff) = 0;
|
std::vector<Scalar>& resv_coeff) = 0;
|
||||||
|
|
||||||
void assignShutConnections(data::Wells& wsrpt,
|
void assignShutConnections(data::Wells& wsrpt,
|
||||||
const int reportStepIndex) const;
|
const int reportStepIndex) const;
|
||||||
|
@ -2530,10 +2530,10 @@ namespace Opm {
|
|||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
BlackoilWellModel<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
calcRates(const int fipnum,
|
calcResvCoeff(const int fipnum,
|
||||||
const int pvtreg,
|
const int pvtreg,
|
||||||
const std::vector<Scalar>& production_rates,
|
const std::vector<Scalar>& production_rates,
|
||||||
std::vector<Scalar>& resv_coeff)
|
std::vector<Scalar>& resv_coeff)
|
||||||
{
|
{
|
||||||
rateConverter_->calcCoeff(fipnum, pvtreg, production_rates, resv_coeff);
|
rateConverter_->calcCoeff(fipnum, pvtreg, production_rates, resv_coeff);
|
||||||
}
|
}
|
||||||
@ -2541,9 +2541,9 @@ namespace Opm {
|
|||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
BlackoilWellModel<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
calcInjRates(const int fipnum,
|
calcInjResvCoeff(const int fipnum,
|
||||||
const int pvtreg,
|
const int pvtreg,
|
||||||
std::vector<Scalar>& resv_coeff)
|
std::vector<Scalar>& resv_coeff)
|
||||||
{
|
{
|
||||||
rateConverter_->calcInjCoeff(fipnum, pvtreg, resv_coeff);
|
rateConverter_->calcInjCoeff(fipnum, pvtreg, resv_coeff);
|
||||||
}
|
}
|
||||||
|
@ -321,10 +321,10 @@ public:
|
|||||||
closed_offending_wells_ = {{"test4", {"test5", "test6"}}};
|
closed_offending_wells_ = {{"test4", {"test5", "test6"}}};
|
||||||
}
|
}
|
||||||
|
|
||||||
void calcRates(const int, const int, const std::vector<double>&, std::vector<double>&) override
|
void calcResvCoeff(const int, const int, const std::vector<double>&, std::vector<double>&) override
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void calcInjRates(const int, const int, std::vector<double>&) override
|
void calcInjResvCoeff(const int, const int, std::vector<double>&) override
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void computePotentials(const std::size_t,
|
void computePotentials(const std::size_t,
|
||||||
|
Loading…
Reference in New Issue
Block a user