Skip to content
Snippets Groups Projects
Commit c51cf4ae authored by Andrew Heather's avatar Andrew Heather Committed by Mark OLESEN
Browse files

ENH: kOmegaSSTLM improved robustness

parent 710a717c
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,12 @@ tmp<volScalarField::Internal> kOmegaSSTLM<BasicTurbulenceModel>::Fthetat ...@@ -81,7 +81,12 @@ tmp<volScalarField::Internal> kOmegaSSTLM<BasicTurbulenceModel>::Fthetat
const volScalarField::Internal& omega = this->omega_(); const volScalarField::Internal& omega = this->omega_();
const volScalarField::Internal& y = this->y_(); const volScalarField::Internal& y = this->y_();
const volScalarField::Internal delta(375*Omega*nu*ReThetat_()*y/sqr(Us)); dimensionedScalar deltaMin("deltaMin", dimLength, SMALL);
volScalarField::Internal delta
(
max(375*Omega*nu*ReThetat_()*y/sqr(Us), deltaMin)
);
const volScalarField::Internal ReOmega(sqr(y)*omega/nu); const volScalarField::Internal ReOmega(sqr(y)*omega/nu);
const volScalarField::Internal Fwake(exp(-sqr(ReOmega/1e5))); const volScalarField::Internal Fwake(exp(-sqr(ReOmega/1e5)));
...@@ -617,11 +622,11 @@ void kOmegaSSTLM<BasicTurbulenceModel>::correct() ...@@ -617,11 +622,11 @@ void kOmegaSSTLM<BasicTurbulenceModel>::correct()
return; return;
} }
// Correct ReThetat and gammaInt
correctReThetatGammaInt();
// Correct k and omega // Correct k and omega
kOmegaSST<BasicTurbulenceModel>::correct(); kOmegaSST<BasicTurbulenceModel>::correct();
// Correct ReThetat and gammaInt
correctReThetatGammaInt();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment