BUG: incorrect fall-through in directionalPressureGradientExplicitSource (fixed #486)

This commit is contained in:
Mark Olesen
2017-05-29 15:34:14 +02:00
parent 76c39302dd
commit 0f83b3f04b

View File

@ -290,7 +290,6 @@ void Foam::fv::directionalPressureGradientExplicitSource::correct
const scalarField nu(turbModel.nu(), cells_); const scalarField nu(turbModel.nu(), cells_);
gradPporous_ = -flowDir_*(D_*nu + I_*0.5*magUn)*magUn*length_; gradPporous_ = -flowDir_*(D_*nu + I_*0.5*magUn)*magUn*length_;
break;
} }
else else
{ {
@ -307,6 +306,7 @@ void Foam::fv::directionalPressureGradientExplicitSource::correct
gradPporous_ = gradPporous_ =
- flowDir_*(D_*mu + I_*0.5*rho*magUn)*magUn*length_; - flowDir_*(D_*mu + I_*0.5*rho*magUn)*magUn*length_;
} }
break;
} }
case pConstant: case pConstant:
{ {