mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: Updated kOmegaSSTSato model to suppress compiler warning
This commit is contained in:
@ -132,8 +132,7 @@ kOmegaSSTSato<BasicTurbulenceModel>::gasTurbulence() const
|
|||||||
template<class BasicTurbulenceModel>
|
template<class BasicTurbulenceModel>
|
||||||
void kOmegaSSTSato<BasicTurbulenceModel>::correctNut
|
void kOmegaSSTSato<BasicTurbulenceModel>::correctNut
|
||||||
(
|
(
|
||||||
const volScalarField& S2,
|
const volScalarField& S2
|
||||||
const volScalarField& F2
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const PhaseCompressibleTurbulenceModel<transportModel>& gasTurbulence =
|
const PhaseCompressibleTurbulenceModel<transportModel>& gasTurbulence =
|
||||||
@ -145,7 +144,12 @@ void kOmegaSSTSato<BasicTurbulenceModel>::correctNut
|
|||||||
);
|
);
|
||||||
|
|
||||||
this->nut_ =
|
this->nut_ =
|
||||||
this->a1_*this->k_/max(this->a1_*this->omega_, this->b1_*F2*sqrt(S2))
|
this->a1_*this->k_
|
||||||
|
/max
|
||||||
|
(
|
||||||
|
this->a1_*this->omega_,
|
||||||
|
this->b1_*this->F23()*sqrt(S2)
|
||||||
|
)
|
||||||
+ sqr(1 - exp(-yPlus/16.0))
|
+ sqr(1 - exp(-yPlus/16.0))
|
||||||
*Cmub_*gasTurbulence.transport().d()*gasTurbulence.alpha()
|
*Cmub_*gasTurbulence.transport().d()*gasTurbulence.alpha()
|
||||||
*(mag(this->U_ - gasTurbulence.U()));
|
*(mag(this->U_ - gasTurbulence.U()));
|
||||||
|
|||||||
@ -156,11 +156,7 @@ protected:
|
|||||||
|
|
||||||
// Protected Member Functions
|
// Protected Member Functions
|
||||||
|
|
||||||
virtual void correctNut
|
virtual void correctNut(const volScalarField& S2);
|
||||||
(
|
|
||||||
const volScalarField& S2,
|
|
||||||
const volScalarField& F2
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user