0
Error in Turbulence Solver

--> FOAM FATAL IO ERROR:
keyword RAS is undefined in dictionary "/home/kvk/Desktop/Hydraulicjump/constant/turbulenceProperties"

file: /home/kvk/Desktop/Hydraulicjump/constant/turbulenceProperties from line 19 to line 19.

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

FOAM exiting


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



/*--------------------------------*- C++ -*----------------------------------*\\
| =========                 |                                                 |
| \\\\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\\\    /   O peration     | Version:  2.3.1                                 |
|   \\\\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\\\/     M anipulation  |                                                 |
\\*---------------------------------------------------------------------------*/
/*  Windows port by Atizar Ltd                                               *\\
\\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    class    dictionary;
    format    ascii;
    location    "constant";
    object    RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
printCoeffs    on;
RAS    kEpsilon   ;
turbulence    on;


Please tell me how to over come the error.


OpenFOAM 18-03-16, 11:46 p.m. KVK
0
KVK,

we are looking into your case files.

For the above error, please check your RASProperties files in constant folder.

Regards,

Rahul Joshi
31-03-16, 12:16 p.m. rahuljoshi
Hi Rahul Joshi ;
I have checked RAS properties in Constant folder and made necessary corrections. When i am trying to run the simulation i am getting the error as follows

/*---------------------------------------------------------------------------*\\
| =========                 |                                                 |
| \\\\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\\\    /   O peration     | Version:  3.0.1                                 |
|   \\\\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\\\/     M anipulation  |                                                 |
\\*---------------------------------------------------------------------------*/
Build  : 3.0.1-d8a290b55d28
Exec   : interFoam
Date   : Mar 31 2016
Time   : 23:36:59
Host   : "kvk-DL-H61MXEL"
PID    : 3115
Case   : /home/kvk/Desktop/Hydraulicjump
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Reading field p_rgh

Reading field U

Reading/calculating face flux field phi

Reading transportProperties

Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model SpalartAllmaras
Selecting patchDistMethod meshWave
SpalartAllmarasCoeffs
{
    sigmaNut        0.66666;
    kappa           0.41;
    Cb1             0.1355;
    Cb2             0.622;
    Cw2             0.3;
    Cw3             2;
    Cv1             7.1;
    Cs              0.3;
}


Reading g

Reading hRef
Calculating field g.h

Creating MRF zone list from MRFProperties
No finite volume options present



--> FOAM FATAL ERROR:
Continuity error cannot be removed by adjusting the outflow.
Please check the velocity boundary conditions and/or run potentialFoam to initialise the outflow.
Total flux              : 1e-300
Specified mass inflow   : 1.25
Specified mass outflow  : 0
Adjustable mass outflow : 0


    From function adjustPhi(surfaceScalarField&, const volVectorField&,volScalarField&)
    in file cfdTools/general/adjustPhi/adjustPhi.C at line 114.

FOAM exiting


Please help me in this regard.

31-03-16, 11:42 p.m. KVK

Login to add comment


0
Hi Rahul Joshi;
I have solved the problem with RAS properties in constant folder . But when i am running the simulation i am getting an error as follows


/*---------------------------------------------------------------------------*\\
| =========                 |                                                 |
| \\\\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\\\    /   O peration     | Version:  3.0.1                                 |
|   \\\\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\\\/     M anipulation  |                                                 |
\\*---------------------------------------------------------------------------*/
Build  : 3.0.1-d8a290b55d28
Exec   : interFoam
Date   : Mar 31 2016
Time   : 23:36:59
Host   : "kvk-DL-H61MXEL"
PID    : 3115
Case   : /home/kvk/Desktop/Hydraulicjump
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Reading field p_rgh

Reading field U

Reading/calculating face flux field phi

Reading transportProperties

Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model SpalartAllmaras
Selecting patchDistMethod meshWave
SpalartAllmarasCoeffs
{
    sigmaNut        0.66666;
    kappa           0.41;
    Cb1             0.1355;
    Cb2             0.622;
    Cw2             0.3;
    Cw3             2;
    Cv1             7.1;
    Cs              0.3;
}


Reading g

Reading hRef
Calculating field g.h

Creating MRF zone list from MRFProperties
No finite volume options present



--> FOAM FATAL ERROR:
Continuity error cannot be removed by adjusting the outflow.
Please check the velocity boundary conditions and/or run potentialFoam to initialise the outflow.
Total flux              : 1e-300
Specified mass inflow   : 1.25
Specified mass outflow  : 0
Adjustable mass outflow : 0


    From function adjustPhi(surfaceScalarField&, const volVectorField&,volScalarField&)
    in file cfdTools/general/adjustPhi/adjustPhi.C at line 114.

FOAM exiting

Please help me how to solve it.

31-03-16, 11:38 p.m. KVK


0
This error usually comes when fvOption is missing in system directory.

Try running this case by putting your case directory inside the interFoam solver.


01-04-16, 8:13 a.m. rahuljoshi
can you please tell me step by step procedure about how to put my case directory inside Inter foam solver ?

01-04-16, 8:20 a.m. KVK

Login to add comment


0
There is a tutorial folder inside your OpenFOAM directory.
Inside which there is a folder named multiphase , in which you have interFoam solver ( directory ).
Put your case inside that directory. 
01-04-16, 8:30 a.m. rahuljoshi
I have done what you have said but i am getting the same error

02-04-16, 10:46 p.m. KVK

Login to add comment


0
Can you post your velocity and pressure files here. The error points out that there might be some issue with the boundary conditions that you have set,  which is not satisfying the continuity equation. 
02-04-16, 10:50 p.m. rahuljoshi
/*--------------------------------*- C++ -*----------------------------------*\\
| =========                 |                                                 |
| \\\\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\\\    /   O peration     | Version:  3.0.1                                 |
|   \\\\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\\\/     M anipulation  |                                                 |
\\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      binary;
    class       volVectorField;
    location    "0";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform (0 0 0);

boundaryField
{
    new_wall
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    wall
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    outlet
    {
        type            inletOutlet;
        inletValue      uniform (2.5 0 0);
        value           uniform (0 0 0);
    }
    inlet
    {
        type            variableHeightFlowRateInletVelocity;
        flowRate        50;
        alpha           alpha.phase1;
        value           uniform (2.5 0 0);
    }
}


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






/*--------------------------------*- C++ -*----------------------------------*\\
| =========                 |                                                 |
| \\\\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\\\    /   O peration     | Version:  2.3.1                                 |
|   \\\\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\\\/     M anipulation  |                                                 |
\\*---------------------------------------------------------------------------*/
/*  Windows port by Atizar Ltd                                               *\\
\\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      binary;
    class       volScalarField;
    location    "0";
   object    p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField    uniform 0.0;

boundaryField
{
    inlet
    {
        type    fixedFluxPressure;
    }
    new_wall
    {
        type    fixedFluxPressure;
    }
    outlet
    {
        type    fixedFluxPressure;
    }
    wall
    {
        type    fixedFluxPressure;
    }
}
// ************************************************************************* //




02-04-16, 11:19 p.m. KVK

Login to add comment


0
Did you check the boundary conditions. ?
04-04-16, 4:03 p.m. rahuljoshi
Yes, I did


06-04-16, 9:07 p.m. KVK
You have posted the p_rgh file which is the dynamic pressure.The type of boundary condition used here is  fixedFluxPressure, but you have not specified the value for for this flux pressure .

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

type            fixedFluxPressure;
value           uniform 0;

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

 Also why are you using two different versions of OpenFOAM. In the header it shows 3.0.1 for the U file and 2.3.1 for p_rgh file.

07-04-16, 10:56 a.m. rahuljoshi

Login to add comment


0
14-11-21, 6:53 p.m. Awe3423


0
You have uploaded the dynamic pressure file, p_rgh. The boundary condition type utilized here is fixedFluxPressure, but you have not provided the flux pressure value. Regards from plumbing westgate team!
29-06-23, 7:43 p.m. Katywillen


Log-in to answer to this question.