Fixed naming convention
This commit is contained in:
@@ -35,9 +35,9 @@ namespace Opm {
|
||||
public:
|
||||
static WVFPDP serializationTestObject();
|
||||
|
||||
double getDP (double bhp_tab, double thp_limit) const;
|
||||
double getDPDP() const { return m_dp; }
|
||||
double getDPFP() const { return m_fp; }
|
||||
double getPressureLoss (double bhp_tab, double thp_limit) const;
|
||||
double getPressureAdjustment() const { return m_dp; }
|
||||
double getPLossScalingFactor() const { return m_fp; }
|
||||
void update(const DeckRecord& record);
|
||||
void update(const RestartIO::RstWell& rst_well);
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@ namespace Opm {
|
||||
WVFPDP WVFPDP::serializationTestObject()
|
||||
{
|
||||
WVFPDP result;
|
||||
result.m_dp = 0.0;
|
||||
result.m_fp = 1.0;
|
||||
result.m_dp = 1.23;
|
||||
result.m_fp = 0.456;
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -52,7 +52,7 @@ namespace Opm {
|
||||
this->m_fp = rst_well.vfp_bhp_scaling_factor;
|
||||
}
|
||||
|
||||
double WVFPDP::getDP(double bhp_tab, double thp_limit) const {
|
||||
double WVFPDP::getPressureLoss(double bhp_tab, double thp_limit) const {
|
||||
auto dpt = bhp_tab - thp_limit;
|
||||
return m_dp + (m_fp-1)*dpt;
|
||||
}
|
||||
|
||||
@@ -1038,8 +1038,8 @@ namespace {
|
||||
|
||||
const auto& options = well.getWVFPDP();
|
||||
|
||||
sWell[Ix::VfpBhpAdjustment] = swprop(M::pressure, options.getDPDP());
|
||||
sWell[Ix::VfpBhpScalingFact] = options.getDPFP();
|
||||
sWell[Ix::VfpBhpAdjustment] = swprop(M::pressure, options.getPressureAdjustment());
|
||||
sWell[Ix::VfpBhpScalingFact] = options.getPLossScalingFactor();
|
||||
}
|
||||
|
||||
template <class SWellArray>
|
||||
|
||||
Reference in New Issue
Block a user