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.

Read msh file

More
1 year 10 months ago #4432 by mrbenson
Read msh file was created by mrbenson
Hi,
I'm looking for reading a msh file (version 2.2), ReadGmsh (from netgen.read_gmsh) can do that. I read the documention and i didn't find any relevant about it. It sounds not so clear about information needed :
- does ReadGmsh take into account physical (first) or elementary (second) tags.
- does ReadGmsh need PhysicalNames ? If yes, are they related to elementary or physical tag ?

Best regards.

PS : I'd be great to offer import msh file in netgen ;-)
 
More
1 year 9 months ago #4434 by mrambausek
Replied by mrambausek on topic Read msh file
Hi,

from a quick look at the code I would recommend to use both physical tags and physical names.
If the import does not work it should be possible to quickly fix that. Just let me know and provide a simple example that fails.

In addition, you may have a look into meshio ( github.com/nschloe/meshio ) which supports conversion
between a lot of different formats, including gmsh and netgen.

Best,
Matthias R.
Time to create page: 0.131 seconds