CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Meshing & Mesh Conversion

FOAM error during meshing

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 9, 2011, 07:59
Default FOAM error during meshing
  #1
New Member
 
prashanth
Join Date: Dec 2011
Posts: 5
Rep Power: 4
prshnth23 is on a distinguished road
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
prshnth23 is offline   Reply With Quote

Old   December 9, 2011, 08:06
Default
  #2
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 252
Rep Power: 11
MartinB is on a distinguished road
Hi,

it must be:
convertToMeters 0.01;

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

Martin
MartinB is online now   Reply With Quote

Old   December 9, 2011, 08:08
Default
  #3
New Member
 
prashanth
Join Date: Dec 2011
Posts: 5
Rep Power: 4
prshnth23 is on a distinguished road
omg i should have seen that...
thanks Martin
prshnth23 is offline   Reply With Quote

Old   December 9, 2011, 08:10
Default
  #4
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 6
stevenvanharen is on a distinguished road
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)
);
stevenvanharen is offline   Reply With Quote

Old   December 9, 2011, 08:13
Default
  #5
New Member
 
prashanth
Join Date: Dec 2011
Posts: 5
Rep Power: 4
prshnth23 is on a distinguished road
oh yes i did that..forgot to change it here while posting..
thanks though stevenvanharen
prshnth23 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 15:11
Import problem ARC Open Source Meshers: Gmsh, Netgen, CGNS, ... 0 February 27, 2010 11:56
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 15:00
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 09:19


All times are GMT -4. The time now is 13:14.