Skip to content
Snippets Groups Projects
Commit 328204dc authored by Henry Weller's avatar Henry Weller
Browse files

TurbulenceModels::ReynoldsStress: remove the spherical part of the wall-function Reynolds stress

The spherical part of the Reynolds stress is included in the pressure so
that the wall boundary condition for the pressure is zeroGradient.

Resolves bug-report http://bugs.openfoam.org/view.php?id=2325
parent 5ffdb2d4
Branches
Tags
No related merge requests found
......@@ -89,16 +89,13 @@ void Foam::ReynoldsStress<BasicTurbulenceModel>::correctWallShearStress
forAll(curPatch, facei)
{
// Calculate near-wall velocity gradient
tensor gradUw
const tensor gradUw
= (faceAreas[facei]/magFaceAreas[facei])*snGradU[facei];
// Calculate near-wall shear-stress tensor
tensor tauw = -nutw[facei]*2*dev(symm(gradUw));
// Reset the shear components of the stress tensor
Rw[facei].xy() = tauw.xy();
Rw[facei].xz() = tauw.xz();
Rw[facei].yz() = tauw.yz();
// Set the wall Reynolds-stress to the near-wall shear-stress
// Note: the spherical part of the normal stress is included in
// the pressure
Rw[facei] = -nutw[facei]*2*dev(symm(gradUw));
}
}
}
......
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