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.

Regarding converter for gmesh to netgen native format .vol

More
6 years 2 months ago - 6 years 2 months ago #374 by ankit101
Hi,
I had a problem regarding conversion from gmsh native format to .vol format. I am using netgen 5.0 as part of a massive framework as a result moving to netgen 6.0(which I know has this converter) is not that easy. Hence I would like to ask whether its possible to get the functions which are responsible for converting the .msh format to .vol in netgen 6 and use them to build a stand-alone program which can work as a converter.
Last edit: 6 years 2 months ago by ankit101.
More
6 years 2 months ago #385 by cwinters
Hi,

the ReadGmsh function in Netgen 6.2 is a pure python function.
Since most function in the python interface are exported c++ function, you might find all necessary functions somewhere in the c++ code. But I wouldn't recommend you to start digging!

Is it feasible for you to use a Netgen 6.2 with python interface for converting and an older version in your code?

Regards,
Christoph
More
6 years 2 months ago #388 by christopher
Another options is to write a mesh converter, essentially look at the information the python script is gathering from the gmsh mesh to create the ngsolve one. Then you can save that information in the right format in a .vol file. To see how the formatting of the .vol files works, have a look at some of the examples in the tutorial folder of NGSolve
Best
Christopher
Time to create page: 0.133 seconds