Geometry > Netgen > OpenFOAM
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!
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!
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.
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:
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!
The geometry displayed in triangles is the same exact file you meshed successfully. I am using Netgen-4.9.11 on 32bit windowsXP.
Thanks again Philippose!
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 ?
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.
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!
Well then I learned something new today as well. :)
I have problems installing netgen version 4.9.11-svn.
Where can I set the path for Tck and Tk ?
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
|All times are GMT -4. The time now is 04:05.|