updates to incompressible wall functions

This commit is contained in:
andy
2009-07-23 10:31:03 +01:00
parent 711ef82589
commit f6ec1cdc64
4 changed files with 7 additions and 31 deletions

View File

@ -170,7 +170,7 @@ tmp<scalarField> nutRoughWallFunctionFvPatchScalarField::calcNut() const
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();
forAll(nutw, faceI)

View File

@ -130,9 +130,7 @@ nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField::calcNut() const
// The flow velocity at the adjacent cell centre
scalarField magUp = mag(Uw.patchInternalField() - Uw);
scalarField magFaceGradU = mag(Uw.snGrad());
tmp<scalarField> tnutw(scalarField(patch().size(), 0.0));
tmp<scalarField> tnutw(new scalarField(patch().size(), 0.0));
scalarField& nutw = tnutw();
if (roughnessHeight_ > 0.0)
@ -262,22 +260,11 @@ nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField::yPlus() const
{
notImplemented
(
"nutSpalartAllmarasWallFunctionFvPatchScalarField::yPlus() const"
"nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField::yPlus()"
"const"
);
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;
*/
}

View File

@ -150,22 +150,11 @@ nutSpalartAllmarasStandardWallFunctionFvPatchScalarField::yPlus() const
{
notImplemented
(
"nutSpalartAllmarasWallFunctionFvPatchScalarField::yPlus() const"
"nutSpalartAllmarasStandardWallFunctionFvPatchScalarField::yPlus() "
"const"
);
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;
*/
}

View File

@ -82,7 +82,7 @@ tmp<scalarField> nutSpalartAllmarasWallFunctionFvPatchScalarField::calcUTau
+ 1/E_*(fkUu - 1.0/6.0*kUu*sqr(kUu));
scalar df =
1.0*y[facei]/nuw[facei]
y[facei]/nuw[facei]
+ magUpara/sqr(ut)
+ 1/E_*kUu*fkUu/ut;