# Help With a Cylindrical Tank Mesh

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

 February 21, 2012, 18:32 Help With a Cylindrical Tank Mesh #1 New Member   Join Date: Jul 2011 Posts: 8 Rep Power: 7 Hello, I am having difficulties with a cylindrical tank mesh. It was made by a generator that someone had posted on this site. Here is the blockMeshDict that is having problems... /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1; vertices ( ( 2.5 0.0 2.5) // Vertex fiveoclocksqb = 0 (-2.5 0.0 2.5) // Vertex sevenoclocksqb = 1 (-2.5 0.0 -2.5) // Vertex elevenoclocksqb = 2 ( 2.5 0.0 -2.5) // Vertex oneoclocksqb = 3 ( 3.5355339091057 0.0 3.53553390275978) // Vertex fiveoclockcb = 4 (-3.5355339091057 0.0 3.53553390275978) // Vertex sevenoclockcb = 5 (-3.5355339091057 0.0 -3.53553390275978) // Vertex elevenoclockcb = 6 ( 3.5355339091057 0.0 -3.53553390275978) // Vertex oneoclockcb = 7 ( 2.5 4 2.5) // Vertex fiveoclocksqt = 8 (-2.5 4 2.5) // Vertex sevenoclocksqt = 9 (-2.5 4 -2.5) // Vertex elevenoclocksqt = 10 ( 2.5 4 -2.5) // Vertex oneoclocksqt = 11 ( 3.5355339091057 4 3.53553390275978) // Vertex fiveoclockct = 12 (-3.5355339091057 4 3.53553390275978) // Vertex sevenoclockct = 13 (-3.5355339091057 4 -3.53553390275978) // Vertex elevenoclockct = 14 ( 3.5355339091057 4 -3.53553390275978) // Vertex oneoclockct = 15 ); blocks ( //square block hex ( 1 0 3 2 9 8 11 10 ) (10 10 10) simpleGrading (1 1 1) //slice1 hex ( 5 4 0 1 13 12 8 9 ) (10 10 10) simpleGrading (1 1 1) //slice2 hex ( 1 2 6 5 9 10 14 13 ) (10 10 10) simpleGrading (1 1 1) //slice3 hex ( 2 3 7 6 10 11 15 14 ) (10 10 10) simpleGrading (1 1 1) //slice4 hex ( 3 0 4 7 11 8 12 15 ) (10 10 10) simpleGrading (1 1 1) ); //create the quarter circles edges ( arc 4 5 (0.0 0.0 5) arc 5 6 (-5 0.0 0.0) arc 6 7 (0.0 0.0 -5) arc 7 4 (5 0.0 0.0) arc 12 13 (0.0 4 5) arc 13 14 (-5 4 0.0) arc 14 15 (0.0 4 -5) arc 15 12 (5 4 0.0) ); patches ( patch outlet ( (2 4(0 3 2 1)) (2 4(0 4 7 3)) (2 4(4 0 1 5)) (2 4(1 2 6 5)) (2 4(3 7 6 2)) ) patch inlet ( (2 4(8 11 10 9)) (2 4(8 12 15 11)) (2 4(12 8 9 13)) (2 4(9 10 14 13)) (2 4(11 15 14 10)) ) wall walls ( (2 4(5 4 12 13)) (2 4(5 13 14 6)) (2 4(6 14 15 7)) (2 4(7 15 12 4)) ) ); Any help as to why this is giving me errors would be greatly appreciated. Thanks

 February 21, 2012, 20:46 #2 Senior Member     Marco A. Turcios Join Date: Mar 2009 Location: Vancouver, BC, Canada Posts: 727 Rep Power: 20 It is generally useful to post the error messages you get when trying to run an application, otherwise we don't know what the problem is without running it ourselves, and the possibility exists that we can't reproduce the error. Please post your error message to obtain better help.

 February 21, 2012, 21:35 Reply #3 New Member   Join Date: Jul 2011 Posts: 8 Rep Power: 7 Thank you for your reply, sorry - here is the error code. Thank you! XXXXXX@XXXXXXX-VirtualBox:~/OpenFOAM/XXXXX-2.1.0/run/TankBlending\$ blockMesh /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.1.0-0bc225064152 Exec : blockMesh Date : Feb 21 2012 Time : 19:19:30 Host : "xxxxxx-VirtualBox" PID : 1681 Case : /home/xxxxx/OpenFOAM/xxxxxx-2.1.0/run/TankBlending nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Creating block mesh from "/home/xxxxx/OpenFOAM/george-2.1.0/run/TankBlending/constant/polyMesh/blockMeshDict" Creating curved edges Creating topology blocks Creating topology patches Reading patches section --> FOAM FATAL IO ERROR: wrong token type - expected int, found on line 106 the punctuation token '(' file: /home/xxxxxx/OpenFOAM/george-2.1.0/run/TankBlending/constant/polyMesh/blockMeshDict:atches at line 106. From function operator>>(Istream&, int&) in file primitives/ints/int/intIO.C at line 68. FOAM exiting

February 22, 2012, 13:26
#4
Senior Member

Marco A. Turcios
Join Date: Mar 2009
Posts: 727
Rep Power: 20
Quote:
 --> FOAM FATAL IO ERROR: wrong token type - expected int, found on line 106 the punctuation token '('
The error says that there was a '(' read when it expected a number. If you look carefully at your patches, you will see that there is an extra set of parentheses outside the patch definition along with extra numbers [i.e. (2 4(x x x x))] get rid of the extra parentheses and numbers and it should work.

Make sure you read the error messages carefully; though they can be obtuse sometimes they more often than not point you exactly where the error is, especially FOAM FATAL IO errors. They are probably the easiest to fix.

 February 23, 2012, 11:00 #5 New Member   Join Date: Jul 2011 Posts: 8 Rep Power: 7 Hello, I followed your advice and got a little closer. The blockMesh command looked like it worked and a boundary file as well as several other files were created (faces, etc). However, when I use the command paraFoam to view the mesh, I get this error: /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.1.0-0bc225064152 Exec : blockMesh Date : Feb 23 2012 Time : 08:49:45 Host : "george-VirtualBox" PID : 2155 Case : /home/george/OpenFOAM/george-2.1.0/run/TankBlending nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Creating block mesh from "/home/george/OpenFOAM/george-2.1.0/run/TankBlending/constant/polyMesh/blockMeshDict" Creating curved edges Creating topology blocks Creating topology patches Reading patches section Creating block mesh topology Reading physicalType from existing boundary file Default patch type set to empty Check topology Basic statistics Number of internal faces : 8 Number of boundary faces : 14 Number of defined boundary faces : 14 Number of undefined boundary faces : 0 Checking patch -> block consistency Creating block offsets Creating merge list . Creating polyMesh from blockMesh Creating patches Creating cells Creating points with scale 1 There are no merge patch pairs edges Writing polyMesh ---------------- Mesh Information ---------------- boundingBox: (-5 0 -5) (5 4 5) nPoints: 5731 nCells: 5000 nFaces: 15700 nInternalFaces: 14300 ---------------- Patches ---------------- patch 0 (start: 14300 size: 500) name: outlet patch 1 (start: 14800 size: 500) name: inlet patch 2 (start: 15300 size: 400) name: walls End george@george-VirtualBox:~/OpenFOAM/george-2.1.0/run/TankBlending\$ paraFoam created temporary 'TankBlending.OpenFOAM' --> FOAM FATAL IO ERROR: "ill defined primitiveEntry starting at keyword 'patch' on line 23 and ending at line 45" file: /home/george/OpenFOAM/george-2.1.0/run/TankBlending/0/U at line 45. From function primitiveEntry::readEntry(const dictionary&, Istream&) in file lnInclude/IOerror.C at line 132. FOAM exiting Segmentation fault I can't seem to see what the problems are at the specified lines. Any help would be appreciated. Thank you

February 23, 2012, 13:47
#6
Senior Member

Marco A. Turcios
Join Date: Mar 2009
Posts: 727
Rep Power: 20
Quote:
 --> FOAM FATAL IO ERROR: "ill defined primitiveEntry starting at keyword 'patch' on line 23 and ending at line 45" file: /home/george/OpenFOAM/george-2.1.0/run/TankBlending/0/U at line 45.
If you read this message carefully, it tells you exactly what the problem is: something is wrong with the U file in your 0 directory, probably your BC's don't conform to the mesh.

Make sure you take the time to actually READ the error messages before you give up. It will be better for you in the long run of using Foam and you will solve your problems faster. (Its taken roughly a day for me to see this latest post and reply, whereas you probably could have solved the problem on your own in half that time).

 Tags mesh check failed, tank

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post lindstroem OpenFOAM Native Meshers: blockMesh 11 July 31, 2012 04:24 Zymon enGrid 31 August 29, 2011 13:40 rikio CFX 0 June 3, 2009 22:21 lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09 Joe CFX 2 March 26, 2007 18:10

All times are GMT -4. The time now is 04:01.