mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-27 09:40:59 -06:00
Remove WellState::segPressDrop()
This commit is contained in:
parent
6a859c0664
commit
3fd6d7781b
@ -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]]);
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user