mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
don't upwind densitiy
This commit is contained in:
parent
e5ac9f9dec
commit
8ee3493aed
@ -226,7 +226,7 @@ assembleHydroPressureLoss(const int seg,
|
||||
MultisegmentWellEquationAccess<Scalar,numWellEq,Indices::numEq> eqns(eqns1);
|
||||
eqns.residual()[seg][SPres] -= hydro_pressure_drop.value();
|
||||
for (int pv_idx = 0; pv_idx < numWellEq; ++pv_idx) {
|
||||
eqns.D()[seg][seg_upwind][SPres][pv_idx] -= hydro_pressure_drop.derivative(pv_idx + Indices::numEq);
|
||||
eqns.D()[seg][seg][SPres][pv_idx] -= hydro_pressure_drop.derivative(pv_idx + Indices::numEq);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -323,8 +323,8 @@ typename MultisegmentWellSegments<FluidSystem,Indices,Scalar>::EvalWell
|
||||
MultisegmentWellSegments<FluidSystem,Indices,Scalar>::
|
||||
getHydroPressureLoss(const int seg) const
|
||||
{
|
||||
const int seg_upwind = upwinding_segments_[seg];
|
||||
return densities_[seg_upwind] * well_.gravity() * depth_diffs_[seg];
|
||||
//const int seg_upwind = upwinding_segments_[seg];
|
||||
return densities_[seg] * well_.gravity() * depth_diffs_[seg];
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user