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

[blockMesh] meshing with openfoam 2.1.0/x

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2012, 21:48
Default meshing with openfoam 2.1.0/x
  #1
Member
 
Elh. A2. BAH
Join Date: Jan 2012
Posts: 64
Rep Power: 14
ebah6 is on a distinguished road
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
ebah6 is offline   Reply With Quote

Old   January 15, 2012, 07:27
Default
  #2
Member
 
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 15
wiedangel is on a distinguished road
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.
wiedangel is offline   Reply With Quote

Old   January 15, 2012, 16:02
Default
  #3
Member
 
Elh. A2. BAH
Join Date: Jan 2012
Posts: 64
Rep Power: 14
ebah6 is on a distinguished road
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.
ebah6 is offline   Reply With Quote

Old   January 15, 2012, 16:34
Default
  #4
Member
 
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 15
wiedangel is on a distinguished road
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.
wiedangel 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
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


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