CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

meshing with openfoam 2.1.0/x

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 14, 2012, 22:48
Default meshing with openfoam 2.1.0/x
  #1
Member
 
Elh. A2. BAH
Join Date: Jan 2012
Posts: 64
Rep Power: 5
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, 08:27
Default
  #2
Member
 
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 6
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, 17:02
Default
  #3
Member
 
Elh. A2. BAH
Join Date: Jan 2012
Posts: 64
Rep Power: 5
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, 17:34
Default
  #4
Member
 
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 6
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

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.6.x, 1.7.0 and 1.7.x are not fully prepared to work with gcc-4.5.x wyldckat OpenFOAM Bugs 18 October 21, 2010 05:51
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
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
Openfoam meshing joegi OpenFOAM Meshing Format & General Technical 9 July 2, 2008 01:33


All times are GMT -4. The time now is 16:27.