CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Open Source Meshers: Gmsh, Netgen, CGNS, ... (http://www.cfd-online.com/Forums/openfoam-meshing-open/)
-   -   Volume mesh instead of surface mesh (http://www.cfd-online.com/Forums/openfoam-meshing-open/61945-volume-mesh-instead-surface-mesh.html)

phan November 23, 2008 22:24

Hello, I want to mesh a stl
 
Hello,

I want to mesh a stl file but any time I try Netgen creates a surface mesh.
At the beginning I thought that the volume mesh is just not shown when I used the clipping function because it did only show an empty inside. But I was not able to convert the mesh to the foam format. That's why I guess that the mesh information is not adequate (not a volume).
It always shows the message: "Trying to get back from bad stream"

Is there a way to mesh a volume out of a surface mesh or from a stl file with Netgen or any other Mesher?

Thanks a lot!

nomad September 2, 2009 18:16

I use an IGES file in NetGen, then optimize volume in the mesh options. However, the mesh created as is fails in OpenFOAM unless I refine it in gmsh (Mesh-Refine).

ericnutsch October 17, 2009 01:46

I have recently attempted to use netgen and cannot mesh volumes either. If I create a surface mesh first it shows elements created but I cannot view them. If i atempt to create a volume mesh before a surface mesh it crashes.

I am using the windows version and it is incredibly unstable. I would like to install the linux version but I strugled with the openfoam install and it was decently documented.

philippose October 17, 2009 04:11

Hello Eric,

A Good day to you!!

Nice to see that you have been trying to use Netgen.... I hope I will be able to help you solve the issues you seem to be facing....

Usually, a failure in Volume mesh creation can come from one or a combination of the following situations:

1. First and foremost..... a bad geometry import
-- A message "Cannot visualise face <xxx>" in the console points to a definitely bad geometry
-- If you are working with STEP/IGES files, you can try the geometry healing options in Netgen (Geometry -> IGES/STEP Topology Explorer/Doctor)

2. A bad surface mesh (have you checked in the console whether all surfaces have been meshed without any errors?)

3. Memory limitations.... On 32-bit systems (Windows and linux), you are limited to a maximum memory of 2GB (even if your system has more physical RAM). Trying to create a mesh which requires more memory will result in a crash

4. Trying to make too fine or too coarse a mesh, or using very aggressive mesh grading (> 0.6 for example)


Personally.... I have not seen an open-source tetrahedral mesh generator which is as robust as Netgen :-)

Could you provide me with more details of your particular usage scenarios?

If you require more assistance with Netgen, it might be easier for you to use the Netgen forum on the Sourceforge website.

Have a nice day!

Philippose

ericnutsch October 18, 2009 17:17

Thanks Philippose!

I will try the geometry healer and your other recommendations and post back.

It is much easier to be ambitious when you know that your not at a dead end. :)

Thanks!


All times are GMT -4. The time now is 18:50.