CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Error message (

shuo October 10, 2006 23:15

I modified the blockMesh and b
I modified the blockMesh and boundary dictionary in the forward step case in sonicFoam to simulate a supersonic jet. The blockMesh executed Ok but when I tried to compile I get the following error message.

--> FOAM FATAL IO ERROR : size 1250 is not equal to the given value of 5250

file: /home/li077/OpenFOAM/li077-1.3/run/tutorials/rhoSonicFoam/Jet/0/p from line 28 to line 1316.

From function Field<type>::Field(const word& keyword, const dictionary& dict, const label s)
in file /home/dm2/henry/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Field.C at line 223.

FOAM exiting


coops October 11, 2006 18:32

Shou, This is an error in y

This is an error in your initial pressure field Jet/0/p. You have changed the meshing and now have more points in your domain. I am assuming that you have a nonuniform initial pressure field. It appears as though you have only specified the pressure on 1250 of the required 5250 points. Alter you initial pressure field and it should run.

Hope this helps,


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