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

[Other] FOAM error during meshing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2011, 06:59
Default FOAM error during meshing
  #1
New Member
 
prashanth
Join Date: Dec 2011
Posts: 5
Rep Power: 14
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, 07:06
Default
  #2
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 21
MartinB will become famous soon enough
Hi,

it must be:
convertToMeters 0.01;

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

Martin
MartinB is offline   Reply With Quote

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

Old   December 9, 2011, 07:10
Default
  #4
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 15
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, 07:13
Default
  #5
New Member
 
prashanth
Join Date: Dec 2011
Posts: 5
Rep Power: 14
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


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
[Salome] Salome import "Cannot find file "points" in directory..." mismichael OpenFOAM Meshing & Mesh Conversion 5 June 22, 2019 02:56
[mesh manipulation] refineMesh Error mohsen.boojari OpenFOAM Meshing & Mesh Conversion 3 March 1, 2018 22:07
error with reactingFoam BakedAlmonds OpenFOAM Running, Solving & CFD 4 June 22, 2016 02:21
[OpenFOAM] Take derivative of mean velocity in paraFoam hiuluom ParaView 13 April 26, 2016 06:44


All times are GMT -4. The time now is 23:43.