|
[Sponsors] |
January 14, 2012, 21:48 |
meshing with openfoam 2.1.0/x
|
#1 |
Member
Elh. A2. BAH
Join Date: Jan 2012
Posts: 64
Rep Power: 14 |
Hello everybody,
I am starting with openfoam and went through some tutorials. Now I want to start a case of my own. Basically, what I am doing is to copy one of the tutorial cases and modify it. In the boundary file in case/constant/polyMesh/boundary, there are numbers that goes along with the nFaces and startFace. Can someone help me know what they correspond to and how to choose accordingly in my case? Thank you for your help. Alpha |
|
January 15, 2012, 07:27 |
|
#2 |
Member
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 15 |
Hi Ebah,
to create a mesh in OpenFoam you need to use blockMesh (this can be done by modifying the blockMesh file which is to be saved in the constant/polyMesh directory) or by using snappyHexMesh. If you are copying a case directly from the tutorials and the mesh was generated by blockMesh (like the cavity case) you can modify the blockMesh dictionary to modify the mesh you have. You can check the tutorial which is here for more informations about blockMesh: http://www.openfoam.org/docs/user/blockMesh.php this will give you some hints on how blockMesh works. I hope it will help. |
|
January 15, 2012, 16:02 |
|
#3 |
Member
Elh. A2. BAH
Join Date: Jan 2012
Posts: 64
Rep Power: 14 |
Thanks for the reply.
I get how to modify to blockMeshDict file. My question was referring to the boundary file where you can find some thing like this: inlet { type patch; nFaces 50; startFace 11210; } In these line how one determines what number to put in front of NFaces and/or startFace. Here these numbers are 50 and 11210 respectively; but they change according to the case. How to choose them properly? Thanks for consideration. |
|
January 15, 2012, 16:34 |
|
#4 |
Member
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 15 |
you donīt have to write these by yourself, blockmesh does it for you. If you are using icem to generate your mesh you get these files when you convert them to openfoam format.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 11:58 |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 05:29 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 06:25 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 05:56 |
[Technical] Openfoam meshing | joegi | OpenFOAM Meshing & Mesh Conversion | 9 | July 2, 2008 01:33 |