The proper way to write input files for my personal solver
Hello,
I started to use Gmsh a few months ago. Now I can use Python API to generate my models and access the information from meshes, having no problem writing the input files for my personal solver. The problem: this workflow requires using the API to create the geometry and generate the mesh.
Imagine the following scenario: An ordinary user of Gmsh generates the geometry and mesh using the GUI or the geo language. Then, this user wishes to write the input file to use with my solver.
Questions:
- How can I reuse my routines written in Python to read the model made by this user and write the input files for my solver?
- There is a way to automate this process, so this user does not need my help? Maybe adding functionalities (like a "write personalized mesh" button) in Gmsh using Python.
Obs1: I am not familiar with C++ API, but I could compile and run some examples. So, using C++ is a possibility for me, but I need to check with my company (the project I am involved in is expected to develop tools using Python).
Obs2: To be clear, my intention is not to change the source code of Gmsh. I want to add functionalities properly using the Gmsh API (or a more appropriate tool). An example of this methodology is the "problem type" in the GiD software.
Regards!