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

K-Epsilon failing for otherwise working case

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2016, 21:18
Default K-Epsilon failing for otherwise working case
  #1
Member
 
Join Date: Apr 2016
Posts: 39
Rep Power: 10
ss32 is on a distinguished road
I have flow over a cylinder, simple case to play with BCs and turbulence models. Everything is good for laminar and solving turbulence with SpalartAllmaras but trying to implement K-Epsilon diverges when trying to solve for epsilon. At the first time step it diverges and I get a floating point exception. Is there an issue with my boundary conditions for epsilon?

Code:
Create time

Create mesh for time = 0


SIMPLE: convergence criteria
    field p     tolerance 1e-05
    field U     tolerance 1e-05
    field nuTilda     tolerance 1e-05

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
    Cmu             0.09;
    C1              1.44;
    C2              1.92;
    C3              -0.33;
    sigmak          1;
    sigmaEps        1.3;
}

No MRF models present

No finite volume options present


Starting time loop

Time = 0.001

smoothSolver:  Solving for Ux, Initial residual = 1, Final residual = 5.8534e-09, No Iterations 50
smoothSolver:  Solving for Uy, Initial residual = 1, Final residual = 9.37619e-09, No Iterations 44
GAMG:  Solving for p, Initial residual = 1, Final residual = 0.0899236, No Iterations 7
GAMG:  Solving for p, Initial residual = 0.098076, Final residual = 0.00642081, No Iterations 1
time step continuity errors : sum local = 0.00354511, global = -1.46424e-05, cumulative = -1.46424e-05
smoothSolver:  Solving for epsilon, Initial residual = 0.995688, Final residual = nan, No Iterations 1000
smoothSolver:  Solving for k, Initial residual = nan, Final residual = nan, No Iterations 1000
ExecutionTime = 1.83 s  ClockTime = 2 s

Time = 0.002

smoothSolver:  Solving for Ux, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver:  Solving for Uy, Initial residual = nan, Final residual = nan, No Iterations 1000
GAMG:  Solving for p, Initial residual = nan, Final residual = nan, No Iterations 1000
GAMG:  Solving for p, Initial residual = nan, Final residual = nan, No Iterations 1000


--> FOAM FATAL IO ERROR: 
wrong token type - expected Scalar, found on line 0 the word 'nan'

file: /home/scott/OpenFOAM/scott-v3.0+/run/tutorials/incompressible/simpleFoam/cylinder/system/data.solverPerformance.p at line 0.

    From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::doubleScalar&)
    in file lnInclude/Scalar.C at line 93.

FOAM exiting
k:
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform 0.008;

boundaryField
{
    frontback
    {
        type            empty;
    }
    inlet
    {
        type            fixedValue;
        value           uniform 0.008;
    }
    outlet
    {
        type            zeroGradient;
    }
    topbottom
    {
        type            zeroGradient;
    }
    walls
    {
        type            kqRWallFunction;
        value           uniform 0.008;
    }
}


// ************************************************************************* //
epsilon - my calculated epsilon is much lower but reading through old posts some people suggested raising it to fix the error but no such luck for me.
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -3 0 0 0 0];

internalField   uniform 0.5;

boundaryField
{
    frontback
    {
        type            empty;
    }
    inlet
    {
        type            fixedValue;
        value           uniform 0.5;
    }
    outlet
    {
        type            zeroGradient;
    }
    topbottom
    {
        type            zeroGradient;
    }
    walls
    {
        type            epsilonWallFunction;
        value           uniform 0.5;
    }
}


// ************************************************************************* //
ss32 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
successful time step for 2D problem failing for 3D case of same problem. mandman Main CFD Forum 6 March 10, 2015 19:01
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 06:37
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24
Adaptation failing in // Fluent case? Riaan FLUENT 0 February 3, 2006 14:57
Working with compressed case and data files Darrell Anthony Egarr FLUENT 0 December 15, 2002 07:05


All times are GMT -4. The time now is 07:12.