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

fvSchemes for DES

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2023, 13:01
Exclamation fvSchemes for DES
  #1
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Hello Foamers,

I'm going to use DES for my simulation. I have read that in DES the scheme is specified using:

Code:
divSchemes
{
    default         none;
    div(phi,U)      Gauss DEShybrid
        linear                        // scheme 1
        linearUpwind grad(U)          // scheme 2
        0.65                          // DES coefficient, typically = 0.65
        30                            // Reference velocity scale
        2                             // Reference length scale
        0                             // Minimum sigma limit (0-1)
        1                             // Maximum sigma limit (0-1)
        1e-3;                         // Limiter of B function, typically 1e-03
}
Besides, in order to use the scheme, libs ("libturbulenceModelSchemes.so") must be added to controlDict.

Althouth I'v done this procedure, I,v come across fatal error:

Code:
file: stream.divSchemes.div(phi,U) at line 0.
[2]
[2]     From static Foam::tmp<Foam::surfaceInterpolationScheme<Type> > Foam::surfaceInterpolationScheme<Type>::New(const Foam::fvMesh&, const surfaceScalarField&, Foam::Istream&) [with Type = Foam::Vector<double>; Foam::surfaceScalarField = Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>]
[2]     in file lnInclude/surfaceInterpolationScheme.C at line 114.
[2]
FOAM parallel run exiting
[2]
[3]
[3]
[3] --> FOAM FATAL IO ERROR: (openfoam-2112 patch=220610)
[3] Unknown discretisation type DEShybrid

Valid discretisation types :

63
(
CoBlended
Gamma
GammaV
LUST
MUSCL
MUSCLV
Minmod
MinmodV
OSPRE
OSPREV
Phi
QUICK
QUICKV
SFCD
SFCDV
SuperBee
SuperBeeV
UMIST
UMISTV
biLinearFit
blended
cellCoBlended
clippedLinear
cubic
cubicUpwindFit
deferredCorrection
downwind
filteredLinear
filteredLinear2
filteredLinear2V
filteredLinear3
filteredLinear3V
fixedBlended
limitWith
limitedCubic
limitedCubicV
limitedLinear
limitedLinearV
limiterBlended
linear
linearFit
linearPureUpwindFit
linearUpwind
linearUpwindV
localBlended
localMax
localMin
midPoint
outletStabilised
pointLinear
quadraticFit
quadraticLinearFit
quadraticLinearUpwindFit
quadraticUpwindFit
reverseLinear
skewCorrected
upwind
vanAlbada
vanAlbadaV
vanLeer
vanLeerV
weighted
weightedFlux
)
How can I handle this problem?

thanks.
saeed jamshidi is offline   Reply With Quote

Old   November 7, 2023, 13:37
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 802
Blog Entries: 1
Rep Power: 18
dlahaye is on a distinguished road
What do tutorials do?
dlahaye is offline   Reply With Quote

Old   November 7, 2023, 13:40
Default
  #3
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Dear dlahaye, thank you for the prompt reply.
Which tutorial, do you know which tutorial is the best fit?
saeed jamshidi is offline   Reply With Quote

Old   November 7, 2023, 13:57
Default
  #4
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 802
Blog Entries: 1
Rep Power: 18
dlahaye is on a distinguished road
Any tutorial using DES on a sufficiently small mesh, I imagine.

Unix is your best friend.

Code:
tut 
cd incompressible 
for jfile in `find . -name turbulenceProperties` ; do echo $jfile; grep -i des $jfile; done
dlahaye is offline   Reply With Quote

Old   November 7, 2023, 14:53
Default
  #5
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
I cloudn't find the problem

Here are my fvschemes & fvsolution:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2112                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default         backward;
}

gradSchemes
{
    default         Gauss linear;
    grad(p)         Gauss linear;
}

divSchemes
{
    default         none;
    div(phi,U)      Gauss DEShybrid
        linear                        // scheme 1
        linearUpwind grad(U)          // scheme 2
        0.65                          // DES coefficient, typically = 0.65
        1                            // Reference velocity scale
        0.04                             // Reference length scale
        0                             // Minimum sigma limit (0-1)
        1                             // Maximum sigma limit (0-1)
        1e-3;                         // Limiter of B function, typically 1e-03
		
    div(phi,k)      Gauss limitedLinear 1;
    div(phi,omega)  Gauss limitedLinear 1;
    div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}

wallDist
{
    method          meshWave;
    nRequired       yes;
}


// ************************************************************************* //
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2112                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    p
    {
        solver          GAMG;
        smoother        DICGaussSeidel;
        tolerance       1e-06;
        relTol          0.05;
    }

    pFinal
    {
        $p;
        relTol          0;
    }

    "(U|k|omega)"
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance       1e-6;
        relTol          0.1;
    }

    "(U|k|omega)Final"
    {
        $U;
        relTol          0;
    }
	/*
    cellDisplacement
    {
        solver          GAMG;
        tolerance       1e-6;
        relTol          0;
        smoother        GaussSeidel;
    }
	*/
}

SIMPLE
{
    nNonOrthogonalCorrectors 0;
    pRefCell        0;
    pRefValue       0;
}

PIMPLE
{
    nOuterCorrectors 1;
    nCorrectors      3;
    nNonOrthogonalCorrectors 1;
    pRefCell        0;
    pRefValue       0;
}

relaxationFactors
{
    fields
    {
        p               0.3;
    }
    equations
    {
        "(U|k|omega)"   0.7;
        "(U|k|omega)Final" 1.0;
    }
}

cache
{
    grad(U);
}

// ************************************************************************* //
I will appreciate any assistance.
saeed jamshidi is offline   Reply With Quote

Old   November 8, 2023, 02:54
Default
  #6
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 802
Blog Entries: 1
Rep Power: 18
dlahaye is on a distinguished road
I do suggest running a tutorial that uses DES first.

Use Unix tools to find such a tutorial.
dlahaye is offline   Reply With Quote

Old   November 8, 2023, 06:16
Default
  #7
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Dear dlahaye, thank you again for the reply.

I looked at all of my tutorials and there was not any DES turbulence model!!
Furtheremore, by reading below thread I'm going to accept that maybe my openfoam v2112 does not support DEShybrid !!

k-omega SST IDDES Setup
saeed jamshidi is offline   Reply With Quote

Old   November 8, 2023, 06:41
Default
  #8
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Saeed,

As Domenico suggested, you can use Unix tools to search for things in the tutorials.
For instance, this should lead you to tutorials using DEShydrid:

Code:
grep -r "DEShybrid" $FOAM_TUTORIALS
Yann
Yann is offline   Reply With Quote

Old   November 8, 2023, 07:05
Default
  #9
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Thank all of you.

I saw them, and for the periodic hill case SpalartAllmarasIDDES turbulent model is used with the fvschem of:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2112                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default         backward;
}

gradSchemes
{
    default         Gauss linear;
    grad(p)         Gauss linear;
}

divSchemes
{
    default         none;

    div(phi,U)      Gauss DEShybrid
        linear                    // scheme 1
        linearUpwind grad(U)      // scheme 2
        hmax
        0.65                      // DES coefficient, typically = 0.65
        1                         // Reference velocity scale
        0.028                     // Reference length scale
        0                         // Minimum sigma limit (0-1)
        1                         // Maximum sigma limit (0-1)
        1; // 1.0e-03;                  // Limiter of B function, typically 1e-03

    div(phi,k)      Gauss limitedLinear 1;
    div(phi,nuTilda) Gauss limitedLinear 1;

    div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}

wallDist
{
    method          meshWave;
    nRequired       yes;
}


// ************************************************************************* //
and I'm going to use kOmegaSSTIDDES. However, my fvscheme is:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2112                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default         backward;
}

gradSchemes
{
    default         Gauss linear;
    grad(p)         Gauss linear;
}

divSchemes
{
    default         none;
    div(phi,U)      Gauss DEShybrid
        linear                        // scheme 1
        linearUpwind grad(U)          // scheme 2
        0.65                          // DES coefficient, typically = 0.65
        1                            // Reference velocity scale
        0.04                             // Reference length scale
        0                             // Minimum sigma limit (0-1)
        1                             // Maximum sigma limit (0-1)
        1e-3;                         // Limiter of B function, typically 1e-03
		
    div(phi,k)      Gauss limitedLinear 1;
    div(phi,omega)  Gauss limitedLinear 1;
    div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}

wallDist
{
    method          meshWave;
    nRequired       yes;
}


// ************************************************************************* //
major difference is in divSchemes part, where I should consider omega instead of nutilda (SpalartAllmaras model).

I am wondering about this really!!!!
saeed jamshidi is offline   Reply With Quote

Old   November 8, 2023, 08:20
Default
  #10
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 802
Blog Entries: 1
Rep Power: 18
dlahaye is on a distinguished road
It should suffice to extend

Code:
div(phi,k)      Gauss limitedLinear 1;
to

Code:
div(phi,k)              Gauss limitedLinear 1;
div(phi,omega)      Gauss limitedLinear 1;
dlahaye is offline   Reply With Quote

Old   November 9, 2023, 05:09
Default
  #11
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Finally, I found the problem, and I want to share it for readers of this thread.

Please, refer to here:

k-omega SST IDDES Setup
saeed jamshidi 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
Error in fvSchemes TGS OpenFOAM 0 May 10, 2023 12:20
fvschemes for laminar particles of fluidisedBed gryphaea1635 OpenFOAM Pre-Processing 1 April 26, 2020 17:10
First order in fvSchemes does not seem to work gerritgroot OpenFOAM Running, Solving & CFD 0 September 30, 2015 21:06
Unrealistic values in cells at edge (high pressure & velocity) - fvSchemes?! matzbanni OpenFOAM Running, Solving & CFD 8 August 24, 2015 17:46
fvschemes and fvsolutions in MRFSimpleFoam renyun0511 OpenFOAM Running, Solving & CFD 23 August 3, 2011 05:07


All times are GMT -4. The time now is 14:35.