mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Spalart-Allmaras - update nut_ from nuTilda_*fv1 when turbulence inactive
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -367,6 +367,10 @@ void SpalartAllmaras::correct()
|
||||
|
||||
if (!turbulence_)
|
||||
{
|
||||
// Re-calculate viscosity
|
||||
nut_ = nuTilda_*fv1(this->chi());
|
||||
nut_.correctBoundaryConditions();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -401,6 +405,7 @@ void SpalartAllmaras::correct()
|
||||
bound(nuTilda_, dimensionedScalar("0", nuTilda_.dimensions(), 0.0));
|
||||
nuTilda_.correctBoundaryConditions();
|
||||
|
||||
// Re-calculate viscosity
|
||||
nut_.internalField() = fv1*nuTilda_.internalField();
|
||||
nut_.correctBoundaryConditions();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user