MultisegmentWell: move getSegmentRate to MultisegmentWellPrimaryVariables

This commit is contained in:
Arne Morten Kvarving
2022-12-19 09:52:48 +01:00
parent 99020fe33b
commit 62297b2a63
4 changed files with 14 additions and 12 deletions

View File

@@ -360,22 +360,12 @@ computeSegmentFluidProperties(const EvalWell& temperature,
}
}
template<typename FluidSystem, typename Indices, typename Scalar>
typename MultisegmentWellEval<FluidSystem,Indices,Scalar>::EvalWell
MultisegmentWellEval<FluidSystem,Indices,Scalar>::
getSegmentRate(const int seg,
const int comp_idx) const
{
return primary_variables_.evaluation_[seg][WQTotal] *
primary_variables_.volumeFractionScaled(seg, comp_idx);
}
template<typename FluidSystem, typename Indices, typename Scalar>
typename MultisegmentWellEval<FluidSystem,Indices,Scalar>::EvalWell
MultisegmentWellEval<FluidSystem,Indices,Scalar>::
getQs(const int comp_idx) const
{
return getSegmentRate(0, comp_idx);
return primary_variables_.getSegmentRate(0, comp_idx);
}
template<typename FluidSystem, typename Indices, typename Scalar>