CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

SpallartAllmarasDES and DDES -> y_

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2024, 16:29
Default SpallartAllmarasDES and DDES -> y_
  #1
gu1
Senior Member
 
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10
gu1 is on a distinguished road
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_())
        );
    }
}
SpalartAllmarasDDES.C
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)
        )
    );
}
...in the same equation I have y_ and y_().

Thanks
gu1 is offline   Reply With Quote

Old   February 10, 2024, 16:35
Default
  #2
gu1
Senior Member
 
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10
gu1 is on a distinguished road
Anyone can help me?

Last edited by gu1; February 11, 2024 at 09:35.
gu1 is offline   Reply With Quote

Reply

Tags
openfoam9, spallartallmarasddes


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 20:25.