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.

Problem reading STL files in netgen

More
2 years 8 months ago #3912 by physah
Dear Netgen/NGSolve community

I am trying to mesh the SARS-Cov-2 replication/transcription/error checking machinery from a cryo-EM density map.

I have prepared 2D meshes in stl format using meshlab and meshmixer that I am quite happy with (example attached). However, when I read them into netgen, the triangles are not recognised, and there are issues with numbers of neighbours and orientation. Stldoctor can't fix this, because the file is not recognised as an stl. How do I solve this please?

I have been able to read this stl into gmsh and successfully create and optimise a 3D volumetric mesh. However, I can only output this in .msh format (example attached) which my simulation software does not read. I have tried reading into netgen using the python shell under "solve" and the command:

from ngsolve import *
from netgen.read_gmsh import ReadGmsh
# import the Gmsh file to a Netgen mesh object
mesh = ReadGmsh('mesh.msh')

but unfortunately the file is not read properly. Please could you explain what I am doing wrong?

Please note that because we are simulating very small objects (protein complexes!) we have a strict lower limit on the resolution of our meshes imposed by the physics, so please don't be surprised that they look very coarse!

Many thanks for your help and advice
#Sarah#
Time to create page: 0.147 seconds