Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
f6ec1cdc
Commit
f6ec1cdc
authored
Jul 23, 2009
by
Andrew Heather
Browse files
updates to incompressible wall functions
parent
711ef825
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutRoughWallFunction/nutRoughWallFunctionFvPatchScalarField.C
View file @
f6ec1cdc
...
...
@@ -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
)
...
...
src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutSpalartAllmarasStandardRoughWallFunction/nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField.C
View file @
f6ec1cdc
...
...
@@ -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;
*/
}
...
...
src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutSpalartAllmarasStandardWallFunction/nutSpalartAllmarasStandardWallFunctionFvPatchScalarField.C
View file @
f6ec1cdc
...
...
@@ -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;
*/
}
...
...
src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutSpalartAllmarasWallFunction/nutSpalartAllmarasWallFunctionFvPatchScalarField.C
View file @
f6ec1cdc
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment