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
74aec19f
Commit
74aec19f
authored
Nov 27, 2012
by
andy
Browse files
ENH: Updated incompressible turbulence models
parent
1e7035b3
Changes
22
Hide whitespace changes
Inline
Side-by-side
src/turbulenceModels/incompressible/LES/LESModel/LESModel.H
View file @
74aec19f
...
...
@@ -166,7 +166,7 @@ public:
//- Const access to the coefficients dictionary,
// which provides info. about choice of models,
// and all related data (particularly model coefficients).
inline
const
dictionary
&
coeffDict
()
const
virtual
const
dictionary
&
coeffDict
()
const
{
return
coeffDict_
;
}
...
...
src/turbulenceModels/incompressible/LES/kOmegaSSTSAS/kOmegaSSTSAS.C
View file @
74aec19f
...
...
@@ -353,7 +353,7 @@ void kOmegaSSTSAS::correct(const tmp<volTensorField>& gradU)
volScalarField
L
(
sqrt
(
k_
)
/
(
pow025
(
Cmu_
)
*
omega_
));
volScalarField
CDkOmega
((
2
.
0
*
alphaOmega2_
)
*
(
gradK
&
gradOmega
)
/
omega_
);
volScalarField
F1
(
this
->
F1
(
CDkOmega
));
volScalarField
G
(
nuSgs_
*
S2
);
volScalarField
G
(
type
()
+
".G"
,
nuSgs_
*
S2
);
// Turbulent kinetic energy equation
{
...
...
src/turbulenceModels/incompressible/RAS/LRR/LRR.C
View file @
74aec19f
...
...
@@ -339,7 +339,7 @@ void LRR::correct()
}
volSymmTensorField
P
(
-
twoSymm
(
R_
&
fvc
::
grad
(
U_
)));
volScalarField
G
(
"RASModel
.G"
,
0
.
5
*
mag
(
tr
(
P
)));
volScalarField
G
(
type
()
+
"
.G"
,
0
.
5
*
mag
(
tr
(
P
)));
// Update epsilon and G at the wall
epsilon_
.
boundaryField
().
updateCoeffs
();
...
...
src/turbulenceModels/incompressible/RAS/LamBremhorstKE/LamBremhorstKE.C
View file @
74aec19f
...
...
@@ -252,7 +252,7 @@ void LamBremhorstKE::correct()
y_
.
correct
();
}
volScalarField
G
(
"RASModel
.G"
,
nut_
*
2
*
magSqr
(
symm
(
fvc
::
grad
(
U_
))));
volScalarField
G
(
type
()
+
"
.G"
,
nut_
*
2
*
magSqr
(
symm
(
fvc
::
grad
(
U_
))));
// Calculate parameters and coefficients for low-Reynolds number model
...
...
src/turbulenceModels/incompressible/RAS/LaunderGibsonRSTM/LaunderGibsonRSTM.C
View file @
74aec19f
...
...
@@ -386,7 +386,7 @@ void LaunderGibsonRSTM::correct()
}
volSymmTensorField
P
(
-
twoSymm
(
R_
&
fvc
::
grad
(
U_
)));
volScalarField
G
(
"RASModel
.G"
,
0
.
5
*
mag
(
tr
(
P
)));
volScalarField
G
(
type
()
+
"
.G"
,
0
.
5
*
mag
(
tr
(
P
)));
// Update epsilon and G at the wall
epsilon_
.
boundaryField
().
updateCoeffs
();
...
...
src/turbulenceModels/incompressible/RAS/LaunderSharmaKE/LaunderSharmaKE.C
View file @
74aec19f
...
...
@@ -255,7 +255,7 @@ void LaunderSharmaKE::correct()
tmp
<
volScalarField
>
S2
=
2
*
magSqr
(
symm
(
fvc
::
grad
(
U_
)));
volScalarField
G
(
"RASModel
.G"
,
nut_
*
S2
);
volScalarField
G
(
type
()
+
"
.G"
,
nut_
*
S2
);
const
volScalarField
E
(
2
.
0
*
nu
()
*
nut_
*
fvc
::
magSqrGradGrad
(
U_
));
const
volScalarField
D
(
2
.
0
*
nu
()
*
magSqr
(
fvc
::
grad
(
sqrt
(
k_
))));
...
...
src/turbulenceModels/incompressible/RAS/LienCubicKE/LienCubicKE.C
View file @
74aec19f
...
...
@@ -356,7 +356,7 @@ void LienCubicKE::correct()
volScalarField
G
(
"RASModel
.G"
,
type
()
+
"
.G"
,
Cmu_
*
sqr
(
k_
)
/
epsilon_
*
S2
-
(
nonlinearStress_
&&
gradU
)
);
...
...
src/turbulenceModels/incompressible/RAS/LienCubicKELowRe/LienCubicKELowRe.C
View file @
74aec19f
...
...
@@ -446,7 +446,7 @@ void LienCubicKELowRe::correct()
volScalarField
G
(
"RASModel
.G"
,
type
()
+
"
.G"
,
Cmu_
*
fMu
*
sqr
(
k_
)
/
epsilon_
*
S2
-
(
nonlinearStress_
&&
gradU
)
);
...
...
src/turbulenceModels/incompressible/RAS/LienLeschzinerLowRe/LienLeschzinerLowRe.C
View file @
74aec19f
...
...
@@ -319,7 +319,7 @@ void LienLeschzinerLowRe::correct()
const
volScalarField
f2
(
scalar
(
1
)
-
0
.
3
*
exp
(
-
sqr
(
Rt
)));
volScalarField
G
(
"RASModel
.G"
,
Cmu_
*
fMu
*
sqr
(
k_
)
/
epsilon_
*
S2
);
volScalarField
G
(
type
()
+
"
.G"
,
Cmu_
*
fMu
*
sqr
(
k_
)
/
epsilon_
*
S2
);
// Dissipation equation
...
...
src/turbulenceModels/incompressible/RAS/NonlinearKEShih/NonlinearKEShih.C
View file @
74aec19f
...
...
@@ -348,9 +348,8 @@ void NonlinearKEShih::correct()
volScalarField
G
(
"RASModel.G"
,
Cmu_
*
sqr
(
k_
)
/
epsilon_
*
S2
-
(
nonlinearStress_
&&
gradU
)
type
()
+
".G"
,
Cmu_
*
sqr
(
k_
)
/
epsilon_
*
S2
-
(
nonlinearStress_
&&
gradU
)
);
#include
"nonLinearWallFunctionsI.H"
...
...
src/turbulenceModels/incompressible/RAS/RASModel/RASModel.H
View file @
74aec19f
...
...
@@ -208,7 +208,7 @@ public:
}
//- Const access to the coefficients dictionary
const
dictionary
&
coeffDict
()
const
virtual
const
dictionary
&
coeffDict
()
const
{
return
coeffDict_
;
}
...
...
src/turbulenceModels/incompressible/RAS/RNGkEpsilon/RNGkEpsilon.C
View file @
74aec19f
...
...
@@ -267,7 +267,7 @@ void RNGkEpsilon::correct()
}
const
volScalarField
S2
(
2
*
magSqr
(
symm
(
fvc
::
grad
(
U_
))));
volScalarField
G
(
"RASModel
.G"
,
nut_
*
S2
);
volScalarField
G
(
type
()
+
"
.G"
,
nut_
*
S2
);
const
volScalarField
eta
(
sqrt
(
S2
)
*
k_
/
epsilon_
);
volScalarField
R
...
...
src/turbulenceModels/incompressible/RAS/backwardsCompatibility/wallFunctions/backwardsCompatibilityWallFunctions.C
View file @
74aec19f
...
...
@@ -75,7 +75,7 @@ tmp<volScalarField> autoCreateNut
if
(
isA
<
wallFvPatch
>
(
bm
[
patchI
]))
{
nutBoundaryTypes
[
patchI
]
=
RASModels
::
nutkWallFunctionFvPatchScalarField
::
typeName
;
nutkWallFunctionFvPatchScalarField
::
typeName
;
}
else
{
...
...
@@ -145,7 +145,7 @@ tmp<volScalarField> autoCreateLowReNut
if
(
isA
<
wallFvPatch
>
(
bm
[
patchI
]))
{
nutBoundaryTypes
[
patchI
]
=
RASModels
::
nutLowReWallFunctionFvPatchScalarField
::
typeName
;
nutLowReWallFunctionFvPatchScalarField
::
typeName
;
}
else
{
...
...
@@ -191,7 +191,7 @@ tmp<volScalarField> autoCreateEpsilon
autoCreateWallFunctionField
<
scalar
,
RASModels
::
epsilonWallFunctionFvPatchScalarField
epsilonWallFunctionFvPatchScalarField
>
(
fieldName
,
...
...
@@ -210,7 +210,7 @@ tmp<volScalarField> autoCreateOmega
autoCreateWallFunctionField
<
scalar
,
RASModels
::
omegaWallFunctionFvPatchScalarField
omegaWallFunctionFvPatchScalarField
>
(
fieldName
,
...
...
@@ -229,7 +229,7 @@ tmp<volScalarField> autoCreateK
autoCreateWallFunctionField
<
scalar
,
RASModels
::
kqRWallFunctionFvPatchField
<
scalar
>
kqRWallFunctionFvPatchField
<
scalar
>
>
(
fieldName
,
...
...
@@ -248,7 +248,7 @@ tmp<volScalarField> autoCreateQ
autoCreateWallFunctionField
<
scalar
,
RASModels
::
kqRWallFunctionFvPatchField
<
scalar
>
kqRWallFunctionFvPatchField
<
scalar
>
>
(
fieldName
,
...
...
@@ -267,7 +267,7 @@ tmp<volSymmTensorField> autoCreateR
autoCreateWallFunctionField
<
symmTensor
,
RASModels
::
kqRWallFunctionFvPatchField
<
symmTensor
>
kqRWallFunctionFvPatchField
<
symmTensor
>
>
(
fieldName
,
...
...
src/turbulenceModels/incompressible/RAS/kEpsilon/kEpsilon.C
View file @
74aec19f
...
...
@@ -235,7 +235,7 @@ void kEpsilon::correct()
return
;
}
volScalarField
G
(
"RASModel
.G"
,
nut_
*
2
*
magSqr
(
symm
(
fvc
::
grad
(
U_
))));
volScalarField
G
(
type
()
+
"
.G"
,
nut_
*
2
*
magSqr
(
symm
(
fvc
::
grad
(
U_
))));
// Update epsilon and G at the wall
epsilon_
.
boundaryField
().
updateCoeffs
();
...
...
src/turbulenceModels/incompressible/RAS/kOmega/kOmega.C
View file @
74aec19f
...
...
@@ -244,7 +244,7 @@ void kOmega::correct()
return
;
}
volScalarField
G
(
"RASModel
.G"
,
nut_
*
2
*
magSqr
(
symm
(
fvc
::
grad
(
U_
))));
volScalarField
G
(
type
()
+
"
.G"
,
nut_
*
2
*
magSqr
(
symm
(
fvc
::
grad
(
U_
))));
// Update omega and G at the wall
omega_
.
boundaryField
().
updateCoeffs
();
...
...
src/turbulenceModels/incompressible/RAS/kOmegaSST/kOmegaSST.C
View file @
74aec19f
...
...
@@ -364,7 +364,7 @@ void kOmegaSST::correct()
}
const
volScalarField
S2
(
2
*
magSqr
(
symm
(
fvc
::
grad
(
U_
))));
volScalarField
G
(
"RASModel
.G"
,
nut_
*
S2
);
volScalarField
G
(
type
()
+
"
.G"
,
nut_
*
S2
);
// Update omega and G at the wall
omega_
.
boundaryField
().
updateCoeffs
();
...
...
src/turbulenceModels/incompressible/RAS/qZeta/qZeta.C
View file @
74aec19f
...
...
@@ -311,7 +311,7 @@ void qZeta::correct()
tmp
<
volScalarField
>
S2
=
2
*
magSqr
(
symm
(
fvc
::
grad
(
U_
)));
volScalarField
G
(
"RASModel
.G"
,
nut_
/
(
2
.
0
*
q_
)
*
S2
);
volScalarField
G
(
type
()
+
"
.G"
,
nut_
/
(
2
.
0
*
q_
)
*
S2
);
const
volScalarField
E
(
nu
()
*
nut_
/
q_
*
fvc
::
magSqrGradGrad
(
U_
));
...
...
src/turbulenceModels/incompressible/RAS/realizableKE/realizableKE.C
View file @
74aec19f
...
...
@@ -297,7 +297,7 @@ void realizableKE::correct()
const
volScalarField
eta
(
magS
*
k_
/
epsilon_
);
tmp
<
volScalarField
>
C1
=
max
(
eta
/
(
scalar
(
5
)
+
eta
),
scalar
(
0
.
43
));
volScalarField
G
(
"RASModel
.G"
,
nut_
*
S2
);
volScalarField
G
(
type
()
+
"
.G"
,
nut_
*
S2
);
// Update epsilon and G at the wall
epsilon_
.
boundaryField
().
updateCoeffs
();
...
...
src/turbulenceModels/incompressible/RAS/v2f/v2f.C
View file @
74aec19f
...
...
@@ -364,9 +364,9 @@ void v2f::correct()
const
volTensorField
gradU
(
fvc
::
grad
(
U_
));
const
volScalarField
S2
(
2
*
magSqr
(
dev
(
symm
(
gradU
))));
const
volScalarField
G
(
"RASModel
.G"
,
nut_
*
S2
);
const
volScalarField
G
(
type
()
+
"
.G"
,
nut_
*
S2
);
const
volScalarField
T
(
Ts
());
const
volScalarField
L2
(
"v2f
.L2"
,
sqr
(
Ls
()));
const
volScalarField
L2
(
type
()
+
"
.L2"
,
sqr
(
Ls
()));
const
volScalarField
alpha
(
"v2f::alpha"
,
...
...
src/turbulenceModels/incompressible/turbulenceModel/laminar/laminar.C
View file @
74aec19f
...
...
@@ -77,6 +77,12 @@ autoPtr<laminar> laminar::New
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
const
dictionary
&
laminar
::
coeffDict
()
const
{
return
dictionary
::
null
;
}
tmp
<
volScalarField
>
laminar
::
nut
()
const
{
return
tmp
<
volScalarField
>
...
...
Prev
1
2
Next
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