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
6b54a054
Commit
6b54a054
authored
Dec 28, 2014
by
Henry
Browse files
Bring TurbulenceModels up to date with turbulenceModels
parent
7dcb4414
Changes
4
Show whitespace changes
Inline
Side-by-side
src/TurbulenceModels/turbulenceModels/RAS/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.C
View file @
6b54a054
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012
-2014
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -53,6 +53,14 @@ void fWallFunctionFvPatchScalarField::checkType()
}
void
fWallFunctionFvPatchScalarField
::
writeLocalEntries
(
Ostream
&
os
)
const
{
os
.
writeKeyword
(
"Cmu"
)
<<
Cmu_
<<
token
::
END_STATEMENT
<<
nl
;
os
.
writeKeyword
(
"kappa"
)
<<
kappa_
<<
token
::
END_STATEMENT
<<
nl
;
os
.
writeKeyword
(
"E"
)
<<
E_
<<
token
::
END_STATEMENT
<<
nl
;
}
scalar
fWallFunctionFvPatchScalarField
::
yPlusLam
(
const
scalar
kappa
,
...
...
@@ -235,11 +243,8 @@ void fWallFunctionFvPatchScalarField::evaluate
void
fWallFunctionFvPatchScalarField
::
write
(
Ostream
&
os
)
const
{
writeLocalEntries
(
os
);
fixedValueFvPatchField
<
scalar
>::
write
(
os
);
os
.
writeKeyword
(
"Cmu"
)
<<
Cmu_
<<
token
::
END_STATEMENT
<<
nl
;
os
.
writeKeyword
(
"kappa"
)
<<
kappa_
<<
token
::
END_STATEMENT
<<
nl
;
os
.
writeKeyword
(
"E"
)
<<
E_
<<
token
::
END_STATEMENT
<<
nl
;
writeEntry
(
"value"
,
os
);
}
...
...
src/TurbulenceModels/turbulenceModels/RAS/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.H
View file @
6b54a054
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012
-2014
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -101,6 +101,9 @@ protected:
//- Check the type of the patch
virtual
void
checkType
();
//- Write local wall function variables
virtual
void
writeLocalEntries
(
Ostream
&
)
const
;
//- Calculate the Y+ at the edge of the laminar sublayer
scalar
yPlusLam
(
const
scalar
kappa
,
const
scalar
E
);
...
...
src/TurbulenceModels/turbulenceModels/RAS/derivedFvPatchFields/wallFunctions/v2WallFunctions/v2WallFunction/v2WallFunctionFvPatchScalarField.C
View file @
6b54a054
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012
-2014
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -225,11 +225,8 @@ void v2WallFunctionFvPatchScalarField::evaluate
void
v2WallFunctionFvPatchScalarField
::
write
(
Ostream
&
os
)
const
{
writeLocalEntries
(
os
);
fixedValueFvPatchField
<
scalar
>::
write
(
os
);
os
.
writeKeyword
(
"Cmu"
)
<<
Cmu_
<<
token
::
END_STATEMENT
<<
nl
;
os
.
writeKeyword
(
"kappa"
)
<<
kappa_
<<
token
::
END_STATEMENT
<<
nl
;
os
.
writeKeyword
(
"E"
)
<<
E_
<<
token
::
END_STATEMENT
<<
nl
;
writeEntry
(
"value"
,
os
);
}
...
...
src/TurbulenceModels/turbulenceModels/RAS/derivedFvPatchFields/wallFunctions/v2WallFunctions/v2WallFunction/v2WallFunctionFvPatchScalarField.H
View file @
6b54a054
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012
-2014
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -103,6 +103,9 @@ protected:
//- Check the type of the patch
virtual
void
checkType
();
//- Write local wall function variables
virtual
void
writeLocalEntries
(
Ostream
&
)
const
;
//- Calculate the Y+ at the edge of the laminar sublayer
scalar
yPlusLam
(
const
scalar
kappa
,
const
scalar
E
);
...
...
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