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

compiling error(s) in interFoam (IOobject: volScalarField p_rgh not Stored)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2016, 15:24
Default compiling error(s) in interFoam (IOobject: volScalarField p_rgh not Stored)
  #1
New Member
 
Milad
Join Date: May 2016
Location: Tehran
Posts: 3
Rep Power: 10
Milad Mohassel is on a distinguished road
Hi every one
I'm new to openfOAm and I want to run k-e in simple open channel.
I,m using openfoam 2.4 and this error (s) rise up:
Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.4.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.4.0-f0842aea0e77
Exec   : interFoam
Date   : May 30 2016
Time   : 22:24:40
Host   : "asus-G56JK"
PID    : 3559
Case   : /home/asus/Desktop/RunningNewPracticeCleaned
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 RASModel
Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
    Cmu             0.09;
    C1              1.44;
    C2              1.92;
    sigmaEps        1.3;
}


Reading g
Calculating field g.h

No finite volume options present

time step continuity errors : sum local = 1.3439e-05, global = 9.59928e-06, cumulative = 9.59928e-06
GAMG:  Solving for pcorr, Initial residual = 1, Final residual = 8.34852e-06, No Iterations 15
GAMG:  Solving for pcorr, Initial residual = 0.129927, Final residual = 5.87487e-06, No Iterations 8
GAMG:  Solving for pcorr, Initial residual = 0.0118803, Final residual = 8.83448e-06, No Iterations 6
time step continuity errors : sum local = 3.65435e-10, global = 5.91482e-12, cumulative = 9.59928e-06
Courant Number mean: 0.000636646 max: 0.0144662

Starting time loop

Courant Number mean: 0.000636615 max: 0.0144654
Interface Courant Number mean: 0 max: 0
deltaT = 5.99952e-06
Time = 5.99952e-06

PIMPLE: iteration 1
smoothSolver:  Solving for alpha.water, Initial residual = 5.72698e-06, Final residual = 4.42909e-13, No Iterations 1
Phase-1 volume fraction = 0.459096  Min(alpha.water) = 0  Max(alpha.water) = 1
MULES: Correcting alpha.water
Phase-1 volume fraction = 0.459096  Min(alpha.water) = 0  Max(alpha.water) = 1
GAMG:  Solving for p_rgh, Initial residual = 1, Final residual = 0.0237197, No Iterations 4
GAMG:  Solving for p_rgh, Initial residual = 0.00233473, Final residual = 4.3589e-05, No Iterations 3
GAMG:  Solving for p_rgh, Initial residual = 0.000706746, Final residual = 6.72664e-07, No Iterations 7


--> FOAM FATAL ERROR: 
previous iteration field
IOobject: volScalarField p_rgh "/home/asus/Desktop/RunningNewPracticeCleaned/0"

  not stored.  Use field.storePrevIter() at start of iteration.

    From function GeometricField<Type, PatchField, GeoMesh>::prevIter() const
    in file /home/openfoam/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude/GeometricField.C at line 828.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::prevIter() const at ??:?
#3  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::relax(double) at ??:?
#4  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::relax() at ??:?
#5  ? at ??:?
#6  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7  ? at ??:?
Aborted (core dumped)
I think the BC's in P_rgh may cause it so my p_rgh as follows:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.4.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


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

internalField   uniform 10e5;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    outlet
    {
        type            zeroGradient;
    }

    wall
    {
        type            zeroGradient;
    }

    atmosphere
    {
        type            totalPressure;
        p0              uniform 10e5;
        U               U;
        phi             phi;
        rho             none;
        psi             none;
        gamma           1;
        value           uniform 0;
    }
}

// ************************************************************************* //
Milad Mohassel is offline   Reply With Quote

Reply

Tags
compiling error(s), interfoam, previous iteration field, p_rgh


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
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 10:21
reconstructParMesh not working with an axisymetric case francesco OpenFOAM Bugs 4 May 8, 2009 06:49
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


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