Skip to content
Snippets Groups Projects
Commit 33e0c95d authored by Mark OLESEN's avatar Mark OLESEN
Browse files

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

parent cb4bf9e6
Branches
Tags
No related merge requests found
...@@ -290,7 +290,6 @@ void Foam::fv::directionalPressureGradientExplicitSource::correct ...@@ -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 ...@@ -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:
{ {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment