CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] FOAM error during meshing (https://www.cfd-online.com/Forums/openfoam-meshing/95213-foam-error-during-meshing.html)

prshnth23 December 9, 2011 06:59

FOAM error during meshing
 
Pls help me out here..this is my first run of openFOAM and im unable to find the error..im just trying to make air flow thru a square pipe:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}


converToMeters 0.01

vertices
{
(0 0 0)
(0 5 0)
(5 5 0)
(5 0 0)
(0 0 100)
(0 5 100)
(5 5 100)
(5 0 100)
};

blocks
(
hex(0 1 2 3 4 5 6 7) (20 20 1) simpleGrading(1 1 1)
);

edges
( /*define if not straight*/

);

boundary
(
inlet
{
type patch;


faces
(
(2 1 0 3)
);
}
outlet
{
type patch;
faces
(
(6 7 4 5)
);
}

upperWall
{
type wall;
faces
(
(5 6 2 1)
);
}
lowerWall
{
type wall;
faces
(
(3 0 4 7)
);
}
frontAndBack
{ type empty;
faces
(
(2 3 7 6)
(0 1 4 5)
);
}
);
mergePatchPairs
(
);

output from terminal
Create time

Creating block mesh from
"/home/prashanth/OpenFOAM/prashanth-2.0.1/run/2ndtry/constant/polyMesh/blockMeshDict"


--> FOAM FATAL IO ERROR:
keyword vertices is undefined in dictionary "/home/prashanth/OpenFOAM/prashanth-2.0.1/run/2ndtry/constant/polyMesh/blockMeshDict"

file: /home/prashanth/OpenFOAM/prashanth-2.0.1/run/2ndtry/constant/polyMesh/blockMeshDict from line 10 to line 44.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 400.

FOAM exiting

Any help would be very useful

MartinB December 9, 2011 07:06

Hi,

it must be:
convertToMeters 0.01;

You are missing the semicolon and there is a typo at "convert".

Martin

prshnth23 December 9, 2011 07:08

omg i should have seen that...
thanks Martin

stevenvanharen December 9, 2011 07:10

Well spotted MartinB.

Also change the accolades after 'vertices' in culry braces, like so:

convertToMeters 1;
vertices
(
(0 0 0)
(4 0 0)
(0 1 0)
(4 1 0)
(0 2 0)
(4 2 0)
(0 0 2)
(4 0 2)
(0 1 2)
(4 1 2)
(0 2 2)
(4 2 2)
);

prshnth23 December 9, 2011 07:13

oh yes i did that..forgot to change it here while posting..
thanks though stevenvanharen


All times are GMT -4. The time now is 02:17.