Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Volume meshing surface meshes with intended holes.

More
6 years 7 months ago - 6 years 7 months ago #122 by DrTSPC
I have a surface mesh which has a hole. I looked around, but found no info on flags or special commands needed to process such meshes. To generate the volume mesh, I run the script:

import netgen.meshing as meshing
mesh = meshing.Mesh()
mesh.Load("srfmsh_in_2.vol")
mesh.GenerateVolumeMesh(meshing.MeshingParameters())
mesh.Save("out_in.vol")

The mesh (srfmsh_in_2.vol) seems clean - netgen doesn't complain, and it is not a huge mesh (~63K faces). After ~1/2 hour, several notifications "start tetmeshing", and many 'Smooth Mesh' steps noted in the gui pane . . . netgen dies. I include the output below.

Any pointers?

Regards,
Tim

NETGEN-6.2-dev
Developed by Joachim Schoeberl at
2010-xxxx Vienna University of Technology
2006-2010 RWTH Aachen University
1996-2006 Johannes Kepler University Linz
Including OpenCascade geometry kernel
optfile ./ng.opt does not exist - using default values
togl-version : 2
OCC module loaded
loading ngsolve library
NGSolve-6.2.1707-81-g909f6c6e
Using Lapack
Including sparse direct solver Pardiso
Including sparse direct solver UMFPACK
Running parallel using 4 thread(s)
importing NGSolve-6.2.1707-81-g909f6c6e
(should) load python file 'script_2.py'
generate vol mesh

Meshing subdomain 1 of 1
Delaunay meshing
start tetmeshing
start tetmeshing
start tetmeshing
start tetmeshing
start tetmeshing
start tetmeshing
start tetmeshing
start tetmeshing
start tetmeshing
start tetmeshing
Traceback (most recent call last):
File "<string>", line 5, in <module>
RuntimeError: Caught an unknown exception!
Finished executing script_2.py
Last edit: 6 years 7 months ago by DrTSPC. Reason: added a word
More
6 years 7 months ago #123 by christopher
Could you post the surface mesh somewhere so we can have a look? What do you mean by holes in the surface mesh? How shall they be volume meshed?

Best
Christopher
More
6 years 7 months ago - 6 years 7 months ago #124 by DrTSPC
Christopher:

The file is attached.

Tim
Last edit: 6 years 7 months ago by DrTSPC. Reason: Removed file. It was passe'.
More
6 years 7 months ago #126 by DrTSPC
Christopher:

The (apparent) answer to my question is that no flags or settings are needed by netgen to mesh a surface mesh with a hole, as with the file I sent you.

Although netgen didn't tell me of mesh problems, nor did I see any problems using meshlab (but I don't now much about either code); I used some code that cleans surface meshes. After doing that, I did get a volume mesh out of netgen.

I don't know everything that 'cleaning' code does to the mesh, which is a concern - but that is my problem.

Thanks again,
Tim
Time to create page: 0.142 seconds