mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -25,8 +25,8 @@ Application
|
|||||||
wallShearStress
|
wallShearStress
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Calculates and reports wall shear stress for all patches, for the
|
Calculates and reports the turbulent wall shear stress for all patches,
|
||||||
specified times when using RAS turbulence models.
|
for the specified times.
|
||||||
|
|
||||||
Compressible modes is automatically selected based on the existence of the
|
Compressible modes is automatically selected based on the existence of the
|
||||||
"thermophysicalProperties" dictionary required to construct the
|
"thermophysicalProperties" dictionary required to construct the
|
||||||
@ -53,9 +53,9 @@ void calcIncompressible
|
|||||||
|
|
||||||
singlePhaseTransportModel laminarTransport(U, phi);
|
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());
|
const volSymmTensorField Reff(model->devReff());
|
||||||
@ -102,15 +102,9 @@ void calcCompressible
|
|||||||
autoPtr<fluidThermo> pThermo(fluidThermo::New(mesh));
|
autoPtr<fluidThermo> pThermo(fluidThermo::New(mesh));
|
||||||
fluidThermo& thermo = pThermo();
|
fluidThermo& thermo = pThermo();
|
||||||
|
|
||||||
autoPtr<compressible::RASModel> model
|
autoPtr<compressible::turbulenceModel> model
|
||||||
(
|
(
|
||||||
compressible::New<compressible::RASModel>
|
compressible::turbulenceModel::New(rho, U, phi, thermo)
|
||||||
(
|
|
||||||
rho,
|
|
||||||
U,
|
|
||||||
phi,
|
|
||||||
thermo
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const volSymmTensorField Reff(model->devRhoReff());
|
const volSymmTensorField Reff(model->devRhoReff());
|
||||||
|
|||||||
Reference in New Issue
Block a user