CFD Online Logo CFD Online URL
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

TetgenToFoam arguments

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

LinkBack Thread Tools Display Modes
Old   June 29, 2005, 03:34
Default What do the arguments <
New Member
David Johnston
Join Date: Mar 2009
Posts: 1
Rep Power: 0
davod is on a distinguished road
What do the arguments <root> <case> and <fileprefix> mean in the mesh conversion tools? I probably should know, but I don't, and can't figure it out.
davod is offline   Reply With Quote

Old   June 29, 2005, 04:52
Default root and case are OpenFOAM bas
New Member
Chris Greenshields
Join Date: Mar 2009
Posts: 28
Rep Power: 10
chris is on a distinguished road
root and case are OpenFOAM basics:

fileprefix means the prefix to the mesh file names. There's something similar in:
(I got that by typing 'fileprefix' in the Search on
chris is offline   Reply With Quote

Old   August 4, 2008, 03:35
Default Hi, does anyone know, why o
Posts: n/a

does anyone know, why or wheather the tetgenToFoam-utility needs a tetgen-mesh, which is generated with the f-Option?

The reason why I'm asking is, that in my first test of the tetgenToFoam-utility I didn't use this option (tetgen -qa0.05 file.poly) and it seemed to work very well. checkMesh said my mesh is ok. Unfortunately all simulations I tried to do with such a tetgen-mesh lead to a diverging solution. So I thought, the mesh isn't really ok, perhaps.

I looked in the sourcecode of tetgenToFoam and read that you should use the f-option. But with this option I get boundary-marked internal faces in the .face file. So I had to use the -nofaceFile option for tetgenToFoam and so I get of course only one defaultpatch in the boundary-file, also a warning ("found 68 undefined faces in mesh; adding to default patch"). It seems not to work how it should be work. Also I need some different boundary patches.
Without the -nofaceFile option tetgenToFoam doesn't work at all (because of the boundary marked internal faces I think -> FOAM FATAL ERROR: Trying to specify a boundary face ... on the face on cell 0 which is either an internal face or already belongs to some other patch).
For all of that I used OpenFOAM 1.4.1.

Is there anybody who knows something about that? Have I really to use the f-option for generating the tetgen-mesh?

Thanks in advance!
  Reply With Quote

Old   August 4, 2008, 13:28
Default You'll have to use the -f opti
Super Moderator
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 18
mattijs is on a distinguished road
You'll have to use the -f option to output the region information so OF can sort the boundary faces into patches.

Problem is that tetgen seems to include internal faces if they have all three points on the boundary and this is giving problems in the converter.

Can you send me (m dot janssens at opencfd dot co dot uk) some sample files (generated with -f) that don't convert and I'll have a look at it.
mattijs is offline   Reply With Quote


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
Wrong number of arguments tweety OpenFOAM Native Meshers: blockMesh 2 December 23, 2008 09:26
TetgenToFoam karen OpenFOAM Bugs 2 August 6, 2008 11:27
Commandline options/arguments for menu items? jx FLUENT 2 August 18, 2003 07:29

All times are GMT -4. The time now is 21:23.