|
[Sponsors] |
November 12, 2009, 02:40 |
Geometry > Netgen > OpenFOAM
|
#1 |
Senior Member
|
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! |
|
November 12, 2009, 03:44 |
|
#2 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
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 |
|
November 12, 2009, 18:49 |
|
#3 |
Senior Member
|
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? |
|
November 13, 2009, 02:53 |
|
#4 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
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 |
|
November 13, 2009, 03:09 |
|
#5 |
Senior Member
|
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! |
|
February 22, 2010, 05:57 |
|
#6 |
Senior Member
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18 |
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. |
|
February 22, 2010, 06:42 |
|
#7 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
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. |
|
February 22, 2010, 07:44 |
|
#8 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
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 |
|
February 22, 2010, 07:54 |
|
#9 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
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. |
|
February 22, 2010, 08:39 |
|
#10 |
Senior Member
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |