CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   omegaFinal in IOstream.solvers / pimpleFoam (https://www.cfd-online.com/Forums/openfoam-solving/151742-omegafinal-iostream-solvers-pimplefoam.html)

ASo April 16, 2015 08:08

omegaFinal in IOstream.solvers / pimpleFoam
 
Hi All,

I'm a beginner in CFD/OpenFoam.

I'm trying to make a simulation with pimpleFoam. I would like to use kOmegaSST as turbulence model.

I used the pimpleFoam pitzDaily tutorial material as example.

I think I changed all the parameters in order to use the KomegaSST turbulence model but an error I can't understand remains. The error is about omegaFinal.

The error message in log.pimpleFoam
Code:

DeltaT = 0.000111111
Time = 0.000111111

smoothSolver:  Solving for Ux, Initial residual = 0.961556, Final residual = 0.00587764, No Iterations 1000
smoothSolver:  Solving for Uy, Initial residual = 0.999952, Final residual = 0.00642699, No Iterations 1000
smoothSolver:  Solving for Uz, Initial residual = 0.94829, Final residual = 0.00264515, No Iterations 1000
GAMG:  Solving for p, Initial residual = 0.866831, Final residual = 0.00840605, No Iterations 3
time step continuity errors : sum local = 1.48906e-05, global = -1.45615e-06, cumulative = -1.45615e-06
GAMG:  Solving for p, Initial residual = 0.0490086, Final residual = 9.64383e-08, No Iterations 14
time step continuity errors : sum local = 2.82694e-09, global = 3.34429e-10, cumulative = -1.45581e-06
[0] [6]
[6]
[6] --> FOAM FATAL IO ERROR:
[6] keyword omegaFinal is undefined in dictionary "IOstream.solvers"
[6]
[6] file: IOstream.solvers from line 0 to line 0.
[6]
[6]    From function dictionary::subDict(const word& keyword) const
[6]    in file db/di

The fvSchemes file :
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    "system";
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default        Euler;
}

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

divSchemes
{
    default        none;
    div(phi,U)      bounded Gauss linearUpwind grad(U);
    div(phi,k)      bounded Gauss upwind;
    div(phi,epsilon) bounded Gauss upwind;
    div(phi,R)      bounded Gauss upwind;
    div(R)          Gauss linear;
    div(phi,nuTilda) bounded Gauss upwind;
    div((nuEff*dev(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default        none;
    laplacian(nuEff,U) Gauss linear corrected;
    laplacian(rAUf,p)  Gauss linear corrected;
    laplacian(DkEff,k) Gauss linear corrected;
    laplacian(DepsilonEff,epsilon) Gauss linear corrected;
    laplacian(DREff,R) Gauss linear corrected;
    laplacian(DnuTildaEff,nuTilda) Gauss linear corrected;
}

interpolationSchemes
{
    default        linear;
    interpolate(U)  linear;
}

snGradSchemes
{
    default        corrected;
}

fluxRequired
{
    default        no;
    p              ;
}


// ************************************************************************* //

And the fvSolution file :
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    "system";
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    p
    {
        solver          GAMG;
        tolerance        1e-7;
        relTol          0.01;

        smoother        DICGaussSeidel;

        cacheAgglomeration true;
        nCellsInCoarsestLevel 10;
        agglomerator    faceAreaPair;
        mergeLevels      1;
    }

    pFinal
    {
        $p;
        relTol          0;
    }

    "(U|k|omega)"
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance      1e-05;
        relTol          0.1;
    }

    "(U|k|omega)Final"
    {
        $U;
        relTol          0;
    $omega;
    relTol 0.1
    }
}

PIMPLE
{
    nNonOrthogonalCorrectors 0;
    nCorrectors        2;
}


// ************************************************************************* //

Thanks for answers !!

jherb April 16, 2015 13:23

I think it doesn't make sense to have two relTol and $U and $omega in your fvSolution file. Remove $omega and relTol 0.1.

Quote:

Originally Posted by ASo (Post 542070)
And the fvSolution file :
Code:

    "(U|k|omega)Final"
    {
        $U;
        relTol          0;
    $omega;
    relTol 0.1
    }
}



ASo April 17, 2015 09:36

Thanks

It was quite evident but I'm learning Openfoam

jessethomas5 June 11, 2015 09:32

omegaFinal undefined
 
Help!

I am trying to use reactingFoam with reactions off to simulate gas spread, and need to use a turbulent solver rather than a laminar solver. In switching the solver I have a similar problem where my simulation crashes with the following error:

--> FOAM FATAL IO ERROR:
keyword omegaFinal is undefined in dictionary "/home/jessethomas/OpenFOAM/tutorials/combustion/reactingFoam/ras/myBuilding3/system/fvSolution.solvers"

file: /home/jessethomas/OpenFOAM/tutorials/combustion/reactingFoam/ras/myBuilding3/system/fvSolution.solvers from line 22 to line 52.

From function dictionary::subDict(const word& keyword) const
in file db/dictionary/dictionary.C at line 643.

FOAM exiting

What do I need to change in my fvSolution and fvScheme dictionaries?

Linxiangfeng January 14, 2017 02:07

have you resolved your problem?


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