Remove WellState::segPressDrop()

This commit is contained in:
Joakim Hove 2021-05-30 20:19:29 +02:00
parent 6a859c0664
commit 3fd6d7781b
2 changed files with 2 additions and 11 deletions

View File

@ -1152,14 +1152,13 @@ WellState::reportSegmentResults(const PhaseUsage& pu,
using Value = data::SegmentPressures::Value;
auto& segpress = seg_res.pressures;
segpress[Value::Pressure] = this->segPress(well_id)[seg_ix];
segpress[Value::PDrop] = this->segPressDrop(well_id, seg_ix);
segpress[Value::PDrop] = segments.pressure_drop(seg_ix);
segpress[Value::PDropHydrostatic] = segments.pressure_drop_hydrostatic[seg_ix];
segpress[Value::PDropFriction] = segments.pressure_drop_friction[seg_ix];
segpress[Value::PDropAccel] = segments.pressure_drop_accel[seg_ix];
}
const auto segment_rates = this->segRates(well_id);
const auto rate = &segment_rates[seg_ix * this->numPhases()];
const auto rate = &this->segRates(well_id)[seg_ix * pu.num_phases];
if (pu.phase_used[Water]) {
seg_res.rates.set(data::Rates::opt::wat,
rate[pu.phase_pos[Water]]);

View File

@ -220,14 +220,6 @@ public:
return &seg_press_[top_segment_index];
}
double segPressDrop(std::size_t well_index, std::size_t segment_index) const
{
const auto& segments = this->segments(well_index);
return segments.pressure_drop_friction[segment_index] +
segments.pressure_drop_hydrostatic[segment_index] +
segments.pressure_drop_accel[segment_index];
}
int numSegment() const
{