|
[Sponsors] |
February 10, 2024, 16:29 |
SpallartAllmarasDES and DDES -> y_
|
#1 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Hi,
Why does OpenFOAM use y_ at times and y_() at others (OpenFOAM 9)? SpalartAllmarasDES.C Code:
template<class BasicMomentumTransportModel> tmp<volScalarField::Internal> SpalartAllmarasDES<BasicMomentumTransportModel>::dTilda ( const volScalarField::Internal& chi, const volScalarField::Internal& fv1, const volTensorField::Internal& gradU ) const { return volScalarField::Internal::New ( modelName("dTilda"), min(CDES_*this->delta()(), y_) ); } template<class BasicMomentumTransportModel> void SpalartAllmarasDES<BasicMomentumTransportModel>::cacheLESRegion ( const volScalarField::Internal& dTilda ) const { if (this->mesh_.cacheTemporaryObject(modelName("LESRegion"))) { volScalarField::Internal::New ( modelName("LESRegion"), neg(dTilda - y_()) ); } } Code:
template<class BasicMomentumTransportModel> tmp<volScalarField::Internal> SpalartAllmarasDDES<BasicMomentumTransportModel>::dTilda ( const volScalarField::Internal& chi, const volScalarField::Internal& fv1, const volTensorField::Internal& gradU ) const { return volScalarField::Internal::New ( modelName("dTilda"), max ( this->y_ - fd(mag(gradU)) *max ( this->y_() - this->CDES_*this->delta()(), dimensionedScalar(dimLength, 0) ), dimensionedScalar(dimLength, small) ) ); } Thanks |
|
February 10, 2024, 16:35 |
|
#2 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Anyone can help me?
Last edited by gu1; February 11, 2024 at 09:35. |
|
Tags |
openfoam9, spallartallmarasddes |
|
|