|
[Sponsors] |
April 13, 2016, 12:26 |
create a Mesh
|
#1 |
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Hi everyone,
I want to create a cubic domain with (Lx=54m Ly=Lz=18m) dimensions, and divide them into (600 200 200) part so I can have cells with 0.09*0.09*0.09 dimension. I have created 8 Blocks,2 in each X,Y,Z direction .according to this, the cell numbers will become 24-e06! is it possible to create such a domain only with BlockMesh ? or I have to use snappyHexMesh too? Thanks |
|
April 13, 2016, 16:11 |
|
#2 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
Hi,
This kind of a mesh is very easy to create with blockMesh and actually it's probably the best tool for it. Just define one block with eight vertices. There are several tutorials how to do this. Look for example $FOAM_TUTORIALS/incompressible/icoFoam/cavity/system/blockMeshDict. Regards, Mikko |
|
April 13, 2016, 16:21 |
|
#3 | |
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Quote:
Code:
FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1.0; vertices ( (-18 -9 0)//0 (-18 0 0)//1 (-18 9 0)//2 (-18 -9 9)//3 (-18 0 9)//4 (-18 9 9)//5 (-18 -9 18)//6 (-18 0 18)//7 (-18 9 18)//8 (9 -9 0)//9 (9 0 0)//10 (9 9 0)//11 (9 -9 9)//12 (9 0 9)//13 (9 9 9)//14 (9 -9 18)//15 (9 0 18)//16 (9 9 18)//17 (36 -9 0)//18 (36 0 0)//19 (36 9 0)//20 (36 -9 9)//21 (36 0 9)//22 (36 9 9)//23 (36 -9 18)//24 (36 0 18)//25 (36 9 18)//26 ); blocks ( hex (0 1 4 3 9 10 13 12) (300 100 100) simpleGrading (1 1 1)//1 hex (1 2 5 4 10 11 14 13) (300 100 100) simpleGrading (1 1 1)//2 hex (3 4 7 6 12 13 16 15) (300 100 100) simpleGrading (1 1 1)//3 hex (4 5 8 7 13 14 17 16) (300 100 100) simpleGrading (1 1 1)//4 hex (9 10 13 12 18 19 22 21) (300 100 100) simpleGrading (1 1 1)//5 hex (10 11 14 13 19 20 23 22) (300 100 100) simpleGrading (1 1 1)//6 hex (12 13 16 15 21 22 25 24) (300 100 100) simpleGrading (1 1 1)//7 hex (13 14 17 16 22 23 26 25) (300 100 100) simpleGrading (1 1 1)//8 ); edges ( ); boundary ( inlet { type patch; faces ( (0 1 4 3) (1 2 5 4) (3 4 7 6) (4 5 8 7) ); } outlet { type patch; faces ( (18 19 22 21) (19 20 23 22) (21 22 25 24) (22 23 26 25) ); } walls { type wall; faces ( (5 14 17 8) (14 23 26 17) (2 11 14 5) (11 20 23 14) (0 9 12 3) (3 12 15 6) (9 18 21 12) (12 21 24 15) ); } top { type wall; faces ( (6 7 16 15) (7 8 17 16) (15 16 25 24) (16 17 26 25) ); } bottom { type wall; faces ( (0 1 10 9) (1 2 11 10) (9 10 19 18) (10 11 20 19) ); } ); mergePatchPairs ( ); |
||
April 13, 2016, 16:45 |
|
#4 |
New Member
Maryam
Join Date: Dec 2015
Posts: 13
Rep Power: 10 |
You don't need hpc for creating such a simple mesh.
|
|
April 13, 2016, 16:49 |
|
#5 |
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
unfortunately, my laptop failed to do that!!
|
|
April 13, 2016, 17:01 |
|
#6 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
If you have enough RAM on your machine, it will run. You'll need around 1GB of RAM for 1 million of cells so you should have at least 24gb of ram.
|
|
April 14, 2016, 13:05 |
|
#7 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
What does it mean that your machine failed? You get an error or your Laptop just stopped working (RAM overflow?). You should use some tool to indicate your ressources.
Why you made 8 blocks? Not necessary.
__________________
Keep foaming, Tobias Holzmann |
|
April 14, 2016, 13:21 |
|
#8 | |
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Quote:
Code:
new cannot satisfy memory request. This does not necessarily mean you have run out of virtual memory. It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library Aborted (core dumped) |
||
Tags |
blockmeshdict |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gambit problems | Althea | FLUENT | 22 | January 4, 2017 04:19 |
[Gmsh] 3D coil mesh: can't create the volume? | RomainBou | OpenFOAM Meshing & Mesh Conversion | 3 | July 18, 2016 06:09 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation | tommymoose | ANSYS Meshing & Geometry | 48 | April 15, 2013 05:24 |
[snappyHexMesh] Layers:problem with curvature | giulio.topazio | OpenFOAM Meshing & Mesh Conversion | 10 | August 22, 2012 10:03 |