|
[Sponsors] |
[blockMesh] External flow around cube with blockMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 31, 2015, 15:54 |
External flow around cube with blockMesh
|
#1 |
New Member
Join Date: Mar 2015
Location: Switzerland
Posts: 1
Rep Power: 0 |
Hi dear forum readers
First, the boring thing: My CFD-experiences are years behind. However, I installed CAElinux with OpenFOAM and would like to simulate an external flow around a cube (3-dimensional). The goal is actually to do a parameter study, involving different flow directions and cube sizes. I have started to look at the basic tutorials, from where I have a rough idea about the blockMesh utility. I then decided to try it with blockMesh, because I would like to control the mesh as much as possible (because of the planned post-processing, which is another story). However, upon my understanding how the blockMesh works, I set up a case (see case descriptions). Running blockMesh results in this error: --> FOAM FATAL ERROR: Trying to specify a boundary face 4(5 21 22 6) on the face on cell 1 which is either an internal face or already belongs to some other patch. This is face 0 of patch 3 named cube. ----- this works... ------ If I don' "patch" the cube, blockMesh and checkMesh runs through (unfortunately Paraview crashes - so there might be other problems :-( cube { type wall; faces ( //(5 21 22 6) // 0 //(9 25 26 10) // 1 //(5 9 25 21) // 2 //(6 10 26 22) // 3 //(21 22 26 25) // 4 ); } ----------------------------------------- Can someone help me with this problem? General question: Does my concept (numbering, etc.) work? Best regards, Woody8 --------- blockMeshDict ------ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1 ; vertices ( (0 0 0) // 0 (5 0 0) // 1 (6 0 0) // 2 (11 0 0) // 3 (0 5 0) // 4 (5 5 0) // 5 (6 5 0) // 6 (11 5 0) // 7 (0 6 0) // 8 (5 6 0) // 9 (6 6 0) // 10 (11 6 0) // 11 (0 11 0) // 12 (5 11 0) // 13 (6 11 0) // 14 (11 11 0) // 15 (0 0 1) // 16 (5 0 1) // 17 (6 0 1) // 18 (11 0 1) // 19 (0 5 1) // 20 (5 5 1) // 21 (6 5 1) // 22 (11 5 1) // 23 (0 6 1) // 24 (5 6 1) // 25 (6 6 1) // 26 (11 6 1) // 27 (0 11 1) // 28 (5 11 1) // 29 (6 11 1) // 30 (11 11 1) // 31 (0 0 6) // 32 (5 0 6) // 33 (6 0 6) // 34 (11 0 6) // 35 (0 5 6) // 36 (5 5 6) // 37 (6 5 6) // 38 (11 5 6) // 39 (0 6 6) // 40 (5 6 6) // 41 (6 6 6) // 42 (11 6 6) // 43 (0 11 6) // 44 (5 11 6) // 45 (6 11 6) // 46 (11 11 6) // 47 ); blocks ( hex (0 1 5 4 16 17 21 20) (20 20 20) simpleGrading (1 1 1) // Block 0 hex (1 2 6 5 17 18 22 21) (20 20 20) simpleGrading (1 1 1) // Block 1 hex (2 3 7 6 18 19 23 22) (20 20 20) simpleGrading (1 1 1) // Block 2 hex (4 5 9 8 20 21 25 24) (20 20 20) simpleGrading (1 1 1) // Block 3 hex (5 6 10 9 21 22 26 25) (20 20 20) simpleGrading (1 1 1) // Block 4 hex (6 7 11 10 22 23 27 26) (20 20 20) simpleGrading (1 1 1) // Block 5 hex (8 9 13 12 24 25 29 28) (20 20 20) simpleGrading (1 1 1) // Block 6 hex (9 10 14 13 25 26 30 29) (20 20 20) simpleGrading (1 1 1) // Block 7 hex (10 11 15 14 26 27 31 30) (20 20 20) simpleGrading (1 1 1) // Block 8 hex (16 17 21 20 32 33 37 36) (20 20 20) simpleGrading (1 1 1) // Block 9 hex (17 18 22 21 33 34 38 37) (20 20 20) simpleGrading (1 1 1) // Block 10 hex (18 19 23 22 34 35 39 38) (20 20 20) simpleGrading (1 1 1) // Block 11 hex (20 21 25 24 36 37 41 40) (20 20 20) simpleGrading (1 1 1) // Block 12 hex (21 22 26 25 37 38 42 41) (20 20 20) simpleGrading (1 1 1) // Block 13 hex (22 23 27 26 38 39 43 42) (20 20 20) simpleGrading (1 1 1) // Block 14 hex (24 25 29 28 40 41 45 44) (20 20 20) simpleGrading (1 1 1) // Block 15 hex (25 26 30 29 41 42 46 45) (20 20 20) simpleGrading (1 1 1) // Block 16 hex (26 27 31 30 42 43 47 46) (20 20 20) simpleGrading (1 1 1) // Block 17 ); edges ( ); boundary ( inlet { type wall; faces ( (0 4 20 16) // 0 (4 8 24 20) // 1 (8 12 28 24) // 2 (16 20 36 32) // 3 (20 24 40 36) // 4 (24 28 44 40) // 5 (12 13 29 28) // 6 (13 14 30 29) // 7 (14 15 31 30) // 8 (28 29 45 44) // 9 (29 30 46 45) // 10 (30 31 47 46) // 11 ); } outlet { type wall; faces ( (3 7 23 19) // 0 (7 11 27 23) // 1 (11 15 31 27) // 2 (19 23 39 35) // 3 (23 27 43 39) // 4 (27 31 47 43) // 5 (0 1 17 16) // 6 (1 2 18 17) // 7 (2 3 19 18) // 8 (16 17 33 32) // 9 (17 18 34 33) // 10 (18 19 35 34) // 11 ); } bottom { type wall; faces ( (0 1 5 4) // 0 (1 2 6 5) // 1 (2 3 7 6) // 2 (4 5 9 8) // 3 (5 6 10 9) // 4 (6 7 11 10) // 5 (8 9 13 12) // 6 (9 10 14 13) // 7 (10 11 15 14) // 8 ); } cube { type wall; faces ( (5 21 22 6) // 0 (9 25 26 10) // 1 (5 9 25 21) // 2 (6 10 26 22) // 3 (21 22 26 25) // 4 ); } empty { type wall; faces ( (32 33 37 36) // 0 (33 34 38 37) // 1 (34 35 39 38) // 2 (36 37 41 40) // 3 (37 38 42 41) // 4 (38 39 43 42) // 5 (40 41 45 44) // 6 (41 42 46 45) // 7 (42 43 47 46) // 8 ); } ); mergePatchPairs ( ); // ************************************************** *********************** // |
|
Tags |
blockmeshdict block mesh, cube, external flow |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Match Pressure Inlet/Outlet Boundary Condition Mass Flow Rate | MSchneid | Fluent UDF and Scheme Programming | 3 | February 23, 2019 07:00 |
About Some Concepts:Laminar flow, turbulent flow, steady flow and time-dependent flow | Jing | Main CFD Forum | 8 | October 5, 2018 18:02 |
simpleFoam - flow around a cube | egerland | OpenFOAM Running, Solving & CFD | 23 | February 23, 2011 06:41 |
[blockMesh] square external flow mesh generation | shackman287 | OpenFOAM Meshing & Mesh Conversion | 0 | September 7, 2010 14:58 |
External flow field. | Moon | FLUENT | 3 | March 5, 2003 11:32 |