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

[Netgen] Geometry > Netgen > OpenFOAM

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2009, 02:40
Arrow Geometry > Netgen > OpenFOAM
  #1
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 17
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
I am in the process of learning netgen and openfoam.
Due to lack of tutorials, I intend to make one with the help of everyone in this thread.

Here is my plan of attack:

1. Geometry exported as *.igs
2. *.igs loaded into Netgen 4.9.11
3. Netgen Surface Mesh
4. Netgen Volume Mesh
5. Locate and assign patches
6. Set up case files in OpenFOAM 1.6
7. Solve case
8. Export something useful like drag.


I am currently at stage 4. Attempting to mesh the volume will crash Netgen. I attempted geometry healing, but it made the surface skew into many triangles. *.step files did not work either.

The geometry I generated is simple, but non-trivial. An *.igs file is attached to the inside the zip.

Any assistance will be helpful. Thanks guys!
Attached Files
File Type: zip banana.zip (5.1 KB, 54 views)
ericnutsch is offline   Reply With Quote

Old   November 12, 2009, 03:44
Default
  #2
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello Eric,

A Good Day to you!!

Nice to see that you have been trying to use Netgen in combination with OpenFOAM :-)!

I had a look at the banana.igs file.... here are the issues....:

1. Most of the faces in the geometry are wrongly oriented (surface normals are facing inwards). This can be seen in Netgen... faces which are oriented correctly (surface normals pointing outwards) are coloured bright green, whereas the wrongly oriented ones are coloured dark green (As can be seen in the two screenshots - normals_01 and normals_02)

2. The geometry is not closed at the edges around the "banana"... as can be seen in the zoomed in screenshot of that region (holes_01)

In order to get past these issues, you can use the "Heal geometry" option which you are already aware of in Netgen.... I used a tolerance of 0.1, and it successfully sewed the discontinuous edges, and oriented the faces correctly (as shown in screenshot - heal_01)

Once the geometry has been healed, the meshing (both surface and volume mehses) go through without any complaints :-) (As can be seen in screenshot - mesh_01)

Hope this helps you get further :-)!

Have a great day ahead!

Philippose
Attached Images
File Type: jpg normals_01.jpg (6.7 KB, 72 views)
File Type: jpg normals_02.jpg (5.7 KB, 62 views)
File Type: jpg holes_01.jpg (22.8 KB, 66 views)
File Type: jpg heal_01.jpg (35.8 KB, 65 views)
File Type: jpg mesh_01.jpg (70.9 KB, 84 views)
philippose is offline   Reply With Quote

Old   November 12, 2009, 18:49
Default
  #3
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 17
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
Thanks for the help Philippose,

Is there any way to design my geometry differently in the beginning to prevent incorrectly oriented faces and un-sewn edges?

I attempted the heal option again with the 0.1 tolerance you recomended. The surface initially looks good then explodes into triangles as soon as the view is rotated(see attached). I thought it might just be a video card thing so i attempted create a surface mesh, but the program errorred and closed.

Thoughts?
Attached Images
File Type: jpg BananaTriangles.jpg (44.8 KB, 62 views)
ericnutsch is offline   Reply With Quote

Old   November 13, 2009, 02:53
Default
  #4
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello again Eric,

Good Morning to you!

Was the screenshot that you attached the result of performing a heal geometry on the same IGE file that you had attached earlier (the one I had worked on)?? Or is it another similar geometry?

Also, which version of Netgen are you working on? The latest binary version from sourceforge (Netgen-4.9.11)?

Since this topic is moving quickly towards an apparent issue with Netgen itself and not to do with OpenFOAM, I would suggest that you post the problems at the Netgen help forum in sourceforge to prevent cluttering up the OpenFOAM forum.

Here is the address to the help forum on Sourceforge:

http://sourceforge.net/projects/netg...s/forum/905307

In order to create the screenshots I uploaded in my previous post, I downloaded the Windows 32-bit binary of Netgen-4.9.11 and healed and meshed the geometry with that.

Have a nice day!

Philippose
philippose is offline   Reply With Quote

Old   November 13, 2009, 03:09
Default
  #5
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 17
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
The geometry displayed in triangles is the same exact file you meshed successfully. I am using Netgen-4.9.11 on 32bit windowsXP.

Thoughts?

Thanks again Philippose!
ericnutsch is offline   Reply With Quote

Old   February 22, 2010, 05:57
Default
  #6
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
Hi,

I have installed netgen version 4.9.11.

I have 2 questions:

1. In File > Exportfiletype > I don't have OpenFOAM Format ?

2. I have imported an IGES file.
When I do Generate Mesh, I only have the surface mesh, but no volume mesh ! Why ?

Regards,

Stephane.
openfoam_user is offline   Reply With Quote

Old   February 22, 2010, 06:42
Default
  #7
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

You need 4.9-12.svn for Openfoam export.

You cant see the volume mesh in Netgen, but if you export to Openfoam and open with Paraview, create a cut you will see the volume mesh.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   February 22, 2010, 07:44
Default
  #8
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello there,

A Good Afternoon to you!!

Linnemann is right, the OpenFOAM export function is currently only available in the SVN version of Netgen.... it has not been released as a downloadable binary version yet (I hope to release 4.9.12 sometime soon though :-)!)


As for the volume mesh.... Netgen has always been capable of displaying the volume mesh too.... I guess due to the lack of documentation it remained hidden :-)!

I have attached a screenshot which shows you where you can enable this option....

This dialog box can be found under the menu: "View -> Viewing Options..."


Have a nice day!

Philippose
Attached Images
File Type: jpg netgen_volume_mesh.jpg (88.8 KB, 87 views)
philippose is offline   Reply With Quote

Old   February 22, 2010, 07:54
Default
  #9
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Aha

Well then I learned something new today as well.

thx Philippose
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   February 22, 2010, 08:39
Default
  #10
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
Hi,

I have problems installing netgen version 4.9.11-svn.

Where can I set the path for Tck and Tk ?

[120]cfs10-sanchi /home/sanchi/mynetgen/netgen % ./configure
checking for a BSD-compatible install... /usr/bin/X11/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for correct TEA configuration... ok (TEA 3.6)
checking for Tcl configuration... configure: WARNING: Can't find Tcl configuration definitions

Stephane
openfoam_user is offline   Reply With Quote

Reply

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
Dynamically increasing geometry during simulation of Additive Mfg in Openfoam NGA Main CFD Forum 0 October 3, 2018 03:07
How represent/ mesh ambient region outside a geometry in OpenFOAM tab2001ng OpenFOAM Pre-Processing 0 February 9, 2017 11:16
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
Geometry and meshing for OpenFOAM Remy OpenFOAM 2 August 12, 2009 08:02


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