mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
updates to incompressible wall functions
This commit is contained in:
@ -170,7 +170,7 @@ tmp<scalarField> nutRoughWallFunctionFvPatchScalarField::calcNut() const
|
|||||||
|
|
||||||
const scalar Cmu25 = pow(Cmu_, 0.25);
|
const scalar Cmu25 = pow(Cmu_, 0.25);
|
||||||
|
|
||||||
tmp<scalarField> tnutw(scalarField(patch().size(), 0.0));
|
tmp<scalarField> tnutw(new scalarField(patch().size(), 0.0));
|
||||||
scalarField& nutw = tnutw();
|
scalarField& nutw = tnutw();
|
||||||
|
|
||||||
forAll(nutw, faceI)
|
forAll(nutw, faceI)
|
||||||
|
|||||||
@ -130,9 +130,7 @@ nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField::calcNut() const
|
|||||||
// The flow velocity at the adjacent cell centre
|
// The flow velocity at the adjacent cell centre
|
||||||
scalarField magUp = mag(Uw.patchInternalField() - Uw);
|
scalarField magUp = mag(Uw.patchInternalField() - Uw);
|
||||||
|
|
||||||
scalarField magFaceGradU = mag(Uw.snGrad());
|
tmp<scalarField> tnutw(new scalarField(patch().size(), 0.0));
|
||||||
|
|
||||||
tmp<scalarField> tnutw(scalarField(patch().size(), 0.0));
|
|
||||||
scalarField& nutw = tnutw();
|
scalarField& nutw = tnutw();
|
||||||
|
|
||||||
if (roughnessHeight_ > 0.0)
|
if (roughnessHeight_ > 0.0)
|
||||||
@ -262,22 +260,11 @@ nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField::yPlus() const
|
|||||||
{
|
{
|
||||||
notImplemented
|
notImplemented
|
||||||
(
|
(
|
||||||
"nutSpalartAllmarasWallFunctionFvPatchScalarField::yPlus() const"
|
"nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField::yPlus()"
|
||||||
|
"const"
|
||||||
);
|
);
|
||||||
|
|
||||||
return tmp<scalarField>(NULL);
|
return tmp<scalarField>(NULL);
|
||||||
/*
|
|
||||||
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
|
|
||||||
const scalarField& y = rasModel.y()[patch().index()];
|
|
||||||
|
|
||||||
const volScalarField& kw = db().lookupObject<volScalarField>(kName_);
|
|
||||||
const scalarField& kwc =
|
|
||||||
kw.boundaryField()[patch.index()].patchInternalField()
|
|
||||||
const scalarField& nuw =
|
|
||||||
patch().lookupPatchField<volScalarField, scalar>(nuName_);
|
|
||||||
|
|
||||||
return pow(Cmu_, 0.25)*y*sqrt(kwc)/nuw;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -150,22 +150,11 @@ nutSpalartAllmarasStandardWallFunctionFvPatchScalarField::yPlus() const
|
|||||||
{
|
{
|
||||||
notImplemented
|
notImplemented
|
||||||
(
|
(
|
||||||
"nutSpalartAllmarasWallFunctionFvPatchScalarField::yPlus() const"
|
"nutSpalartAllmarasStandardWallFunctionFvPatchScalarField::yPlus() "
|
||||||
|
"const"
|
||||||
);
|
);
|
||||||
|
|
||||||
return tmp<scalarField>(NULL);
|
return tmp<scalarField>(NULL);
|
||||||
/*
|
|
||||||
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
|
|
||||||
const scalarField& y = rasModel.y()[patch().index()];
|
|
||||||
|
|
||||||
const volScalarField& kw = db().lookupObject<volScalarField>(kName_);
|
|
||||||
const scalarField& kwc =
|
|
||||||
kw.boundaryField()[patch.index()].patchInternalField()
|
|
||||||
const scalarField& nuw =
|
|
||||||
patch().lookupPatchField<volScalarField, scalar>(nuName_);
|
|
||||||
|
|
||||||
return pow(Cmu_, 0.25)*y*sqrt(kwc)/nuw;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -82,7 +82,7 @@ tmp<scalarField> nutSpalartAllmarasWallFunctionFvPatchScalarField::calcUTau
|
|||||||
+ 1/E_*(fkUu - 1.0/6.0*kUu*sqr(kUu));
|
+ 1/E_*(fkUu - 1.0/6.0*kUu*sqr(kUu));
|
||||||
|
|
||||||
scalar df =
|
scalar df =
|
||||||
1.0*y[facei]/nuw[facei]
|
y[facei]/nuw[facei]
|
||||||
+ magUpara/sqr(ut)
|
+ magUpara/sqr(ut)
|
||||||
+ 1/E_*kUu*fkUu/ut;
|
+ 1/E_*kUu*fkUu/ut;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user