CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   interFoam Meshing Error (http://www.cfd-online.com/Forums/openfoam/106873-interfoam-meshing-error.html)

Sagun September 11, 2012 08:25

interFoam Meshing Error
 
Hello everyone,

I have made a very simple mesh of a 2-D tank in which I wish to simulate waves. But I'm getting this error when I do checkMesh:

--> FOAM Warning :
From function entry::getKeyword(keyType&, Istream&)
in file db/dictionary/entry/entryIO.C at line 77
Reading /home/stripathi/OpenFOAM/stripathi-2.1.1/run/tutorials/multiphase/interFoam/laminar/wavetank/constant/polyMesh/boundary
found on line 50 the punctuation token ')'
expected either } or EOF


--> FOAM FATAL IO ERROR:
Expected a ')' or a '}' while reading PtrList, found on line 54 an error

file: /home/stripathi/OpenFOAM/stripathi-2.1.1/run/tutorials/multiphase/interFoam/laminar/wavetank/constant/polyMesh/boundary at line 54.

From function Istream::readEndList(const char*)
in file db/IOstreams/IOstreams/Istream.C at line 159.

FOAM exiting

My blockMeshDict file looks like this:

convertToMeters 1;

vertices
(
(0 0 0)
(20 0 0)
(20 0.1 0)
(0 0.1 0)

(0 0 2)
(20 0 2)
(20 0.1 2)
(0 0.1 2)

(0 0 3)
(20 0 3)
(20 0.1 3)
(0 0.1 3)
);

blocks
(
hex (0 1 2 3 4 5 6 7) (20 1 3) simpleGrading (1 1 1)
hex (4 5 6 7 8 9 10 11) (20 1 3) simpleGrading (1 1 1)
);


edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(0 4 7 3)
(4 8 11 7)
);
}

outlet
{
type patch;
faces
(
(1 2 6 4)
(4 6 10 9)
);
}

sides
{
type empty;
faces
(
(0 1 5 4)
(4 5 9 8)
(2 3 7 6)
(6 7 11 10)
);
}

lower
{
type wall;
faces
(
(0 3 2 1)
);
}

atmosphere
{
type patch;
faces
(
(8 9 10 11)
);
}
);

mergePatchPairs
(
);


Line 54 is where I write a parenthesis sign while assigning the faces to inlet patch.

I don't understand what I'm doing wrong here. Please help.

Thanks,
Sagun


All times are GMT -4. The time now is 06:37.