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

Empty patch problem with Netgen to Openfoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2010, 14:18
Default Empty patch problem
  #1
New Member
 
Troy
Join Date: Jul 2010
Posts: 6
Rep Power: 15
troy is on a distinguished road
Hello,
I am new to CFD and OpenFoam. I am using Netgen 4.9.13 (Windows) as a mesh generator and exporting directly into OpenFoam format (1.7.0). In Netgen I give similar faces the same boundary condition number, then I redefine them in the boundary file. Whenever I define a patch as "empty" the solver crashes. It gives the error, "This mesh contains patches of type empty but is not 1D or 2D by virtue of the fact that the number of faces of this empty patch is not divisible by the number of cells." If I define the patch as "wall" it can work, but that's not a good solution, as they are really not walls. Any suggestions?
Thanks,
Troy

Last edited by troy; July 6, 2010 at 15:13. Reason: I was told the title was misleading
troy is offline   Reply With Quote

Old   July 6, 2010, 14:35
Default
  #2
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello there,

A Very Good and Warm evening to you :-)!

I think the title of your post is very misleading, and makes the post look like you are trying to report an error in the Netgen -> OpenFOAM export function.

However, the actual error that you are trying to report has nothing to do with the Netgen export, and has to do with the way you are defining the Boundary conditions.

In OpenFOAM, the boundary type "Empty", is intended to be used only for 2-D (and 1-D) meshes, and is not valid when the mesh has more than one layer of cells in all three co-ordinate directions.

OpenFOAM works basically on 3-D meshes, and the concept of 2-D is introduced into the system by forcing one mesh direction to have only one layer of cells, and using the "Empty" type for the front and back planes of the mesh.

I am not sure what you are trying to simulate, but trying to extrapolate from the details you have given, I think what you are looking for, is the "slip" boundary condition. To specify this type of boundary, you need to use the "patch" type of boundary in the "boundary" file, and use the boundary condition "slip" for the relevant variables in the initial conditions folder "0" (the variables will depend on what you are trying to simulate).

For more information, please read the OpenFOAM User Manual, which can also be found here:

http://www.openfoam.com/docs/user/boundaries.php


Have a great day ahead!

Philippose
philippose is offline   Reply With Quote

Old   July 6, 2010, 15:17
Default
  #3
New Member
 
Troy
Join Date: Jul 2010
Posts: 6
Rep Power: 15
troy is on a distinguished road
Hi Philippose,
I think you must be the most active person on this site. It was your recommendation that led me to Netgen. Thanks for your help. I changed the title of my post to take out the Netgen to Openfoam part of it. I will look into the slip boundary condition. Thanks again,
Troy
troy is offline   Reply With Quote

Old   August 10, 2010, 17:04
Default
  #4
Member
 
Daniel
Join Date: Jul 2010
Location: California
Posts: 39
Rep Power: 15
hyperion is on a distinguished road
Hi Troy - Did you ever get this problem solved? I get the same error message, and I would like to use empty patches for my geometry. I tried importing quad dominated netgen mesh files but apparently openFOAM doesn't like that. Any other suggestions? Thanks.
hyperion is offline   Reply With Quote

Old   August 11, 2010, 09:43
Default Gave up on OpenFoam
  #5
New Member
 
Troy
Join Date: Jul 2010
Posts: 6
Rep Power: 15
troy is on a distinguished road
Hello,
I gave up on OpenFoam because I couldn't get the turbo portion to work with the new version of OpenFoam. I have switched to Cradle's SC/Tetra software, which is Japan's version of Ansys and about half the cost and offered a two-month trial after attending a 3-day training. Regarding your empty wall patch, I never did get it worked out. I gave up due to other bigger issues beforehand. I invested two weeks of my time to get going with OpenFoam, and found that unless there are examples almost identical to the situation you have, then you should give up, or be OK with writing your own CFD solver. The solvers seem very intertwined with the type of situation being modeled. Others with more CFD experience than I may have different opinions, however.
Troy
troy is offline   Reply With Quote

Reply

Tags
empty patch, netgen, openfoam

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[mesh manipulation] createPatch / cyclicGgi / OpenFoam 1.5-dev OFU OpenFOAM Meshing & Mesh Conversion 0 June 16, 2010 05:36
Problem with baffles from Harpoon in OpenFoam OMN OpenFOAM 0 June 9, 2010 09:59
Problem in defining patch deformation paul b OpenFOAM Programming & Development 3 April 27, 2010 01:31
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


All times are GMT -4. The time now is 08:46.