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

LES in OF 3.0.1, no Output for nuSgs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2016, 14:38
Default LES in OF 3.0.1, no Output for nuSgs
  #1
Member
 
Mirage
Join Date: Jul 2012
Posts: 43
Rep Power: 14
Mirage is on a distinguished road
Dear Foamers,

I am running a LES Simulation in OF 3.0.1 and unfortunately I am not getting any output file for nuSgs.

The declaration of LES and turbulence model in OF 3.0.1 was changed comparing with older version. I declared my LES properties in the turbulenceProperties as following:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

simulationType  LES;
LES
{

LESModel        Smagorinsky;

turbulence      on;

printCoeffs     on;

delta           vanDriest;

printCoeffs     on;

SmagorinskyCoeffs
{
    ce 1.048;
    ck 0.047147; //Cs = 0.1
}

vanDriestCoeffs
{
    delta           cubeRootVol;
    cubeRootVolCoeffs
    {
        deltaCoeff      1;
    }

    smoothCoeffs
    {
        delta           cubeRootVol;
        cubeRootVolCoeffs
        {
            deltaCoeff      1;
        }

        maxDeltaRatio   1.1;
    }

    Aplus           26;
    Cdelta          0.158;
}
}





// ************************************************************************* //
Here is the nuSgs file in 0 folder:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      nuSgs;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet_cyclic
    {
        type            cyclic;
    }

    outlet_cyclic
    {
        type            cyclic;
    }

    heatedWall
    {
        type            zeroGradient;
    }

    topWall
    {
        type            zeroGradient;
    }
  
     back1a
     {
        type            cyclic;
     }

     front1a
     {
        type            cyclic;
     }

     back1b
     {
        type            cyclic;
     }

     front1b
     {
        type            cyclic;
     }

     back1c
     {
        type            cyclic;
     }

     front1c
     {
        type            cyclic;
     }

     back2a
     {
        type            cyclic;
     }

     front2a
     {
        type            cyclic;
     }

     back2b
     {
         type            cyclic;
     }

     front2b
     {
        type            cyclic;
     }

     back2c
     {
        type            cyclic;
     }

     front2c
     {
        type            cyclic;
     }

     back3a
     {
        type            cyclic;
     }

     front3a
     {
        type            cyclic;
     }

     back3b
     {
        type            cyclic;
     }

     front3b
     {
        type            cyclic;
     }

     back3c
     {
         type            cyclic;
     }

     front3c
     {
        type            cyclic;
     }

     back3d
     {
        type            cyclic;
     }

     front3d
     {
        type            cyclic;
     }

     back3e
     {
        type            cyclic;
     }

     front3e
     {
        type            cyclic;
     }

     back4
     {
        type            cyclic;
     }

     front4
     {
        type            cyclic;
     }

}

// ************************************************************************* //
I was wondering, why i do not have any nuSgs file and if this could effect my result quality.

Do you think, that the LES declaration is correct?

How can I fix the problem?

Thank you in advance for your help
Mirage is offline   Reply With Quote

Old   October 4, 2016, 19:00
Default
  #2
New Member
 
Marco Atzori
Join Date: Mar 2016
Posts: 22
Rep Power: 10
Atzori is on a distinguished road
Hi!

I guess in OpenFOAM 3.0 nu_sgs has been substituted by nut.
Please check by yourself: I had a look at the initial conditions in the tutorial:

https://github.com/OpenFOAM/OpenFOAM...otorBike/0.org

And I tried to compare the Smagorinsky model in the different versions:

https://github.com/OpenFOAM/OpenFOAM.../Smagorinsky.C

https://github.com/OpenFOAM/OpenFOAM.../Smagorinsky.C

Cheers!!
Marco
Atzori is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
LES help pksri ANSYS 2 April 20, 2016 01:55
Turbulence dampening due to magnetic field in LES and RAS eelcovv OpenFOAM 0 June 8, 2010 12:35
LES grid mesh L3munoz Main CFD Forum 0 April 7, 2010 06:05
LES on two phase flow Li Yang Main CFD Forum 0 May 12, 2004 09:10
Help with DPM UDF for OUTPUT needed Zhengcai Ye FLUENT 0 January 5, 2004 17:58


All times are GMT -4. The time now is 23:56.