Use segmentstate for hydrostatic pressure drop

This commit is contained in:
Joakim Hove
2021-05-30 20:06:59 +02:00
parent 9801469488
commit 33f18279d7
3 changed files with 3 additions and 19 deletions

View File

@@ -225,22 +225,10 @@ public:
const auto& segments = this->segments(well_index);
const int top_segment_index = this->top_segment_index_[well_index];
return segments.pressure_drop_friction[segment_index] +
this->seg_pressdrop_hydorstatic_[top_segment_index + segment_index] +
segments.pressure_drop_hydrostatic[segment_index] +
this->seg_pressdrop_acceleration_[top_segment_index + segment_index];
}
double* segPressDropHydroStatic(std::size_t well_index)
{
const int top_segment_index = this->top_segment_index_[well_index];
return &seg_pressdrop_hydorstatic_[top_segment_index];
}
const double* segPressDropHydroStatic(std::size_t well_index) const
{
const int top_segment_index = this->top_segment_index_[well_index];
return &seg_pressdrop_hydorstatic_[top_segment_index];
}
double * segPressDropAcceleration(std::size_t well_index)
{
const int top_segment_index = this->top_segment_index_[well_index];
@@ -534,8 +522,6 @@ private:
int nseg_; // total number of the segments
// The following data are only recorded for output
// hydrostatic pressure drop
std::vector<double> seg_pressdrop_hydorstatic_;
// accelerational pressure drop
std::vector<double> seg_pressdrop_acceleration_;