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
5a9cfc95
Commit
5a9cfc95
authored
Sep 29, 2008
by
Andrew Heather
Browse files
== assignments for nut/mut
parent
4fb952b0
Changes
14
Hide whitespace changes
Inline
Side-by-side
src/turbulenceModels/RAS/compressible/LRR/LRR.C
View file @
5a9cfc95
...
...
@@ -206,7 +206,7 @@ LRR::LRR
autoCreateMut
(
"mut"
,
mesh_
)
)
{
mut_
=
Cmu_
*
rho_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
=
=
Cmu_
*
rho_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
.
correctBoundaryConditions
();
if
(
couplingFactor_
.
value
()
<
0
.
0
||
couplingFactor_
.
value
()
>
1
.
0
)
...
...
@@ -310,7 +310,7 @@ void LRR::correct()
if
(
!
turbulence_
)
{
// Re-calculate viscosity
mut_
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
=
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
.
correctBoundaryConditions
();
return
;
}
...
...
@@ -399,7 +399,7 @@ void LRR::correct()
// Re-calculate viscosity
mut_
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
mut_
=
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
mut_
.
correctBoundaryConditions
();
...
...
src/turbulenceModels/RAS/compressible/LaunderGibsonRSTM/LaunderGibsonRSTM.C
View file @
5a9cfc95
...
...
@@ -228,7 +228,7 @@ LaunderGibsonRSTM::LaunderGibsonRSTM
autoCreateMut
(
"mut"
,
mesh_
)
)
{
mut_
=
Cmu_
*
rho_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
=
=
Cmu_
*
rho_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
.
correctBoundaryConditions
();
if
(
couplingFactor_
.
value
()
<
0
.
0
||
couplingFactor_
.
value
()
>
1
.
0
)
...
...
@@ -335,7 +335,7 @@ void LaunderGibsonRSTM::correct()
if
(
!
turbulence_
)
{
// Re-calculate viscosity
mut_
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
=
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
.
correctBoundaryConditions
();
return
;
}
...
...
@@ -438,7 +438,7 @@ void LaunderGibsonRSTM::correct()
// Re-calculate turbulent viscosity
mut_
=
Cmu_
*
rho_
*
sqr
(
k_
)
/
epsilon_
;
mut_
=
=
Cmu_
*
rho_
*
sqr
(
k_
)
/
epsilon_
;
mut_
.
correctBoundaryConditions
();
...
...
src/turbulenceModels/RAS/compressible/RNGkEpsilon/RNGkEpsilon.C
View file @
5a9cfc95
...
...
@@ -176,7 +176,7 @@ RNGkEpsilon::RNGkEpsilon
autoCreateMut
(
"mut"
,
mesh_
)
)
{
mut_
=
Cmu_
*
rho_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
=
=
Cmu_
*
rho_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
.
correctBoundaryConditions
();
printCoeffs
();
...
...
@@ -263,7 +263,7 @@ void RNGkEpsilon::correct()
if
(
!
turbulence_
)
{
// Re-calculate viscosity
mut_
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
=
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
.
correctBoundaryConditions
();
return
;
}
...
...
@@ -330,7 +330,7 @@ void RNGkEpsilon::correct()
// Re-calculate viscosity
mut_
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
mut_
=
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
mut_
.
correctBoundaryConditions
();
}
...
...
src/turbulenceModels/RAS/compressible/kEpsilon/kEpsilon.C
View file @
5a9cfc95
...
...
@@ -157,7 +157,7 @@ kEpsilon::kEpsilon
autoCreateMut
(
"mut"
,
mesh_
)
)
{
mut_
=
Cmu_
*
rho_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
=
=
Cmu_
*
rho_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
.
correctBoundaryConditions
();
printCoeffs
();
...
...
@@ -243,7 +243,7 @@ void kEpsilon::correct()
if
(
!
turbulence_
)
{
// Re-calculate viscosity
mut_
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
=
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
.
correctBoundaryConditions
();
return
;
}
...
...
@@ -303,7 +303,7 @@ void kEpsilon::correct()
// Re-calculate viscosity
mut_
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
mut_
=
=
rho_
*
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
mut_
.
correctBoundaryConditions
();
}
...
...
src/turbulenceModels/RAS/compressible/kOmegaSST/kOmegaSST.C
View file @
5a9cfc95
...
...
@@ -260,7 +260,7 @@ kOmegaSST::kOmegaSST
autoCreateMut
(
"mut"
,
mesh_
)
)
{
mut_
=
a1_
*
rho_
*
k_
/
max
(
a1_
*
omega_
,
F2
()
*
sqrt
(
magSqr
(
symm
(
fvc
::
grad
(
U_
)))));
mut_
=
=
a1_
*
rho_
*
k_
/
max
(
a1_
*
omega_
,
F2
()
*
sqrt
(
magSqr
(
symm
(
fvc
::
grad
(
U_
)))));
mut_
.
correctBoundaryConditions
();
printCoeffs
();
...
...
@@ -351,7 +351,7 @@ void kOmegaSST::correct()
if
(
!
turbulence_
)
{
// Re-calculate viscosity
mut_
=
mut_
=
=
a1_
*
rho_
*
k_
/
max
(
a1_
*
omega_
,
F2
()
*
sqrt
(
magSqr
(
symm
(
fvc
::
grad
(
U_
)))));
mut_
.
correctBoundaryConditions
();
...
...
@@ -430,7 +430,7 @@ void kOmegaSST::correct()
// Re-calculate viscosity
mut_
=
a1_
*
rho_
*
k_
/
max
(
a1_
*
omega_
,
F2
()
*
sqrt
(
S2
));
mut_
=
=
a1_
*
rho_
*
k_
/
max
(
a1_
*
omega_
,
F2
()
*
sqrt
(
S2
));
mut_
.
correctBoundaryConditions
();
}
...
...
src/turbulenceModels/RAS/compressible/realizableKE/realizableKE.C
View file @
5a9cfc95
...
...
@@ -192,7 +192,7 @@ realizableKE::realizableKE
bound
(
k_
,
k0_
);
bound
(
epsilon_
,
epsilon0_
);
mut_
=
rCmu
(
fvc
::
grad
(
U_
))
*
rho_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
=
=
rCmu
(
fvc
::
grad
(
U_
))
*
rho_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
mut_
.
correctBoundaryConditions
();
printCoeffs
();
...
...
@@ -276,7 +276,7 @@ void realizableKE::correct()
if
(
!
turbulence_
)
{
// Re-calculate viscosity
mut_
=
rCmu
(
fvc
::
grad
(
U_
))
*
rho_
*
sqr
(
k_
)
/
epsilon_
;
mut_
=
=
rCmu
(
fvc
::
grad
(
U_
))
*
rho_
*
sqr
(
k_
)
/
epsilon_
;
mut_
.
correctBoundaryConditions
();
return
;
}
...
...
@@ -342,7 +342,7 @@ void realizableKE::correct()
bound
(
k_
,
k0_
);
// Re-calculate viscosity
mut_
=
rCmu
(
gradU
,
S2
,
magS
)
*
rho_
*
sqr
(
k_
)
/
epsilon_
;
mut_
=
=
rCmu
(
gradU
,
S2
,
magS
)
*
rho_
*
sqr
(
k_
)
/
epsilon_
;
mut_
.
correctBoundaryConditions
();
}
...
...
src/turbulenceModels/RAS/incompressible/LRR/LRR.C
View file @
5a9cfc95
...
...
@@ -187,7 +187,7 @@ LRR::LRR
autoCreateNut
(
"nut"
,
mesh_
)
)
{
nut_
=
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
nut_
=
=
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
nut_
.
correctBoundaryConditions
();
if
(
couplingFactor_
.
value
()
<
0
.
0
||
couplingFactor_
.
value
()
>
1
.
0
)
...
...
@@ -381,7 +381,7 @@ void LRR::correct()
// Re-calculate viscosity
nut_
=
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
nut_
=
=
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
nut_
.
correctBoundaryConditions
();
...
...
src/turbulenceModels/RAS/incompressible/LaunderGibsonRSTM/LaunderGibsonRSTM.C
View file @
5a9cfc95
...
...
@@ -216,7 +216,7 @@ LaunderGibsonRSTM::LaunderGibsonRSTM
autoCreateNut
(
"nut"
,
mesh_
)
)
{
nut_
=
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
nut_
=
=
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
nut_
.
correctBoundaryConditions
();
if
(
couplingFactor_
.
value
()
<
0
.
0
||
couplingFactor_
.
value
()
>
1
.
0
)
...
...
@@ -422,7 +422,7 @@ void LaunderGibsonRSTM::correct()
// Re-calculate turbulent viscosity
nut_
=
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
nut_
=
=
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
nut_
.
correctBoundaryConditions
();
...
...
src/turbulenceModels/RAS/incompressible/LienCubicKE/LienCubicKE.C
View file @
5a9cfc95
...
...
@@ -228,7 +228,7 @@ LienCubicKE::LienCubicKE
)
)
{
nut_
=
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
)
+
C5viscosity_
;
nut_
=
=
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
)
+
C5viscosity_
;
nut_
.
correctBoundaryConditions
();
printCoeffs
();
...
...
@@ -385,7 +385,7 @@ void LienCubicKE::correct()
-
2
.
0
*
pow
(
Cmu_
,
3
.
0
)
*
pow
(
k_
,
4
.
0
)
/
pow
(
epsilon_
,
3
.
0
)
*
(
magSqr
(
gradU_
+
gradU_
.
T
())
-
magSqr
(
gradU_
-
gradU_
.
T
()));
nut_
=
Cmu_
*
sqr
(
k_
)
/
epsilon_
+
C5viscosity_
;
nut_
=
=
Cmu_
*
sqr
(
k_
)
/
epsilon_
+
C5viscosity_
;
nut_
.
correctBoundaryConditions
();
nonlinearStress_
=
symm
...
...
src/turbulenceModels/RAS/incompressible/RNGkEpsilon/RNGkEpsilon.C
View file @
5a9cfc95
...
...
@@ -156,7 +156,7 @@ RNGkEpsilon::RNGkEpsilon
autoCreateNut
(
"nut"
,
mesh_
)
)
{
nut_
=
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
nut_
=
=
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
nut_
.
correctBoundaryConditions
();
printCoeffs
();
...
...
@@ -297,7 +297,7 @@ void RNGkEpsilon::correct()
// Re-calculate viscosity
nut_
=
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
nut_
=
=
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
nut_
.
correctBoundaryConditions
();
}
...
...
src/turbulenceModels/RAS/incompressible/kEpsilon/kEpsilon.C
View file @
5a9cfc95
...
...
@@ -130,7 +130,7 @@ kEpsilon::kEpsilon
autoCreateNut
(
"nut"
,
mesh_
)
)
{
nut_
=
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
nut_
=
=
Cmu_
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
nut_
.
correctBoundaryConditions
();
printCoeffs
();
...
...
@@ -267,7 +267,7 @@ void kEpsilon::correct()
// Re-calculate viscosity
nut_
=
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
nut_
=
=
Cmu_
*
sqr
(
k_
)
/
epsilon_
;
nut_
.
correctBoundaryConditions
();
}
...
...
src/turbulenceModels/RAS/incompressible/kOmega/kOmega.C
View file @
5a9cfc95
...
...
@@ -141,7 +141,7 @@ kOmega::kOmega
autoCreateNut
(
"nut"
,
mesh_
)
)
{
nut_
=
k_
/
(
omega_
+
omegaSmall_
);
nut_
=
=
k_
/
(
omega_
+
omegaSmall_
);
nut_
.
correctBoundaryConditions
();
printCoeffs
();
...
...
@@ -273,7 +273,7 @@ void kOmega::correct()
// Re-calculate viscosity
nut_
=
k_
/
omega_
;
nut_
=
=
k_
/
omega_
;
nut_
.
correctBoundaryConditions
();
}
...
...
src/turbulenceModels/RAS/incompressible/kOmegaSST/kOmegaSST.C
View file @
5a9cfc95
...
...
@@ -250,7 +250,7 @@ kOmegaSST::kOmegaSST
autoCreateNut
(
"nut"
,
mesh_
)
)
{
nut_
=
nut_
=
=
a1_
*
k_
/
max
(
...
...
@@ -411,7 +411,7 @@ void kOmegaSST::correct()
// Re-calculate viscosity
nut_
=
a1_
*
k_
/
max
(
a1_
*
omega_
,
F2
()
*
sqrt
(
S2
));
nut_
=
=
a1_
*
k_
/
max
(
a1_
*
omega_
,
F2
()
*
sqrt
(
S2
));
nut_
.
correctBoundaryConditions
();
}
...
...
src/turbulenceModels/RAS/incompressible/realizableKE/realizableKE.C
View file @
5a9cfc95
...
...
@@ -182,7 +182,7 @@ realizableKE::realizableKE
bound
(
k_
,
k0_
);
bound
(
epsilon_
,
epsilon0_
);
nut_
=
rCmu
(
fvc
::
grad
(
U_
))
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
nut_
=
=
rCmu
(
fvc
::
grad
(
U_
))
*
sqr
(
k_
)
/
(
epsilon_
+
epsilonSmall_
);
nut_
.
correctBoundaryConditions
();
printCoeffs
();
...
...
@@ -326,7 +326,7 @@ void realizableKE::correct()
// Re-calculate viscosity
nut_
=
rCmu
(
gradU
,
S2
,
magS
)
*
sqr
(
k_
)
/
epsilon_
;
nut_
=
=
rCmu
(
gradU
,
S2
,
magS
)
*
sqr
(
k_
)
/
epsilon_
;
nut_
.
correctBoundaryConditions
();
}
...
...
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