wallShearStress: Now may be used with any turbulence model (laminar, RAS or LES/DES)

Resolves feature-request http://www.openfoam.org/mantisbt/view.php?id=1939
This commit is contained in:
Henry Weller
2015-12-03 09:15:09 +00:00
parent 8d9f56d1b7
commit 95687c59ec

View File

@ -25,8 +25,8 @@ Application
wallShearStress
Description
Calculates and reports wall shear stress for all patches, for the
specified times when using RAS turbulence models.
Calculates and reports the turbulent wall shear stress for all patches,
for the specified times.
Compressible modes is automatically selected based on the existence of the
"thermophysicalProperties" dictionary required to construct the
@ -53,9 +53,9 @@ void calcIncompressible
singlePhaseTransportModel laminarTransport(U, phi);
autoPtr<incompressible::RASModel> model
autoPtr<incompressible::turbulenceModel> model
(
incompressible::New<incompressible::RASModel>(U, phi, laminarTransport)
incompressible::turbulenceModel::New(U, phi, laminarTransport)
);
const volSymmTensorField Reff(model->devReff());
@ -102,15 +102,9 @@ void calcCompressible
autoPtr<fluidThermo> pThermo(fluidThermo::New(mesh));
fluidThermo& thermo = pThermo();
autoPtr<compressible::RASModel> model
autoPtr<compressible::turbulenceModel> model
(
compressible::New<compressible::RASModel>
(
rho,
U,
phi,
thermo
)
compressible::turbulenceModel::New(rho, U, phi, thermo)
);
const volSymmTensorField Reff(model->devRhoReff());