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/)
-   -   Error in porousSimpleFoam (https://www.cfd-online.com/Forums/openfoam-solving/240636-error-poroussimplefoam.html)

wei123 January 17, 2022 03:42

Error in porousSimpleFoam
 
Hi all,

I am trying to implement porousSimpleFoam in my case and there is an error which I do not understand and I could not find much about it either.

Here is the error:
HTML Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  v2012                                |
|  \\  /    A nd          | Website:  www.openfoam.com                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : _7bdb509494-20201222 OPENFOAM=2012
Arch  : "LSB;label=32;scalar=64"
Exec  : porousSimpleFoam
Date  : Jan 17 2022
Time  : 09:01:05
Host  : MSI
PID    : 1646
I/O    : uncollated
Case  : /home/wei/OpenFOAM_files/work_ICVT/yarn1
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

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

Create mesh for time = 0


SIMPLE: no convergence criteria found. Calculations will run for 1000 steps.

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
RAS
{
    RASModel        kEpsilon;
    turbulence      on;
    printCoeffs    on;
    Cmu            0.09;
    C1              1.44;
    C2              1.92;
    C3              0;
    sigmak          1;
    sigmaEps        1.3;
}

No MRF models present

No finite volume options present
Creating porosity model list from porosityProperties

Porosity region porosity1:
    selecting model: DarcyForchheimer


--> FOAM FATAL IO ERROR: (openfoam-2012)
Entry 'cellZone' has 6 excess tokens in stream

    7(insideZone1 d ( 5e+07 5e+07 5e+07 ))

file: /home/wei/OpenFOAM_files/work_ICVT/yarn1/constant/porosityProperties.porosity1 at line 22.

FOAM exiting

And here is my porosityProperties file:

HTML Code:

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

porosity1
{
    type            DarcyForchheimer;

    cellZone        insideZone1

    d  (5e7 5e7 5e7);
    f  (0 0 0);

    coordinateSystem
    {
        origin  (0 0 0);
        e1      (1 0 0);
        e2      (0 1 0);
        e3        (0 0 1);
    }
}

porosity2
{
    type            DarcyForchheimer;

    cellZone        insideZone2

    d  (5e7 5e7 5e7);
    f        (0 0 0);

    coordinateSystem
    {
        origin        (0 0 0);
        e1        (1 0 0);
        e2        (0 1 0);
        e3        (0 0 1);
    }
}

porosity3
{
    type            DarcyForchheimer;

    cellZone        insideZone3

    d  (5e7 5e7 5e7);
    f        (0 0 0);

    coordinateSystem
    {
        origin        (0 0 0);
        e1        (1 0 0);
        e2        (0 1 0);
        e3        (0 0 1);
    }
}

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

Can anyone explain to this what this io error means and how to resolve this?

Thanks in advance!

wei123 January 17, 2022 03:49

Okay I finally found out it was due to the missing semi colon....
Problem solved :-)


All times are GMT -4. The time now is 22:21.