Atom topic feed | site map | contact | login | Protection des données personnelles | Powered by FluxBB | réalisation artaban
You are not logged in.
Pages: 1
Hello,
I'm looking for a documentation of the .med file-format in order to write a mesh-output-template for a preprocessor.
Jonas
Last edited by jonas loenartz (2021-12-14 11:20:17)
Offline
Hello Jonas,
I think the *.med file is coded and you cannot open it like for example *.mail or *.nas format. Anyway, you can install Python modul 'meshio' (pip install meshio) and there is code for it.
You can create macro directly in Salome - for geometry, mesh, etc. with Python.
Jan
Offline
med is a binary format
There is a C or fortran interface to create a med file directly or use medcoupling in python or c++ which allows to manipulate med files. Both are in salome
Offline
Thank you for your answers. Following nicolas_ps suggestion I found the following information on several APIs to read/write MED-files.
h_ttps://docs.salome-platform.org/7/dev/MEDCoupling/index.html
Sadly I won't be able to utilize these because I can't access these APIs in Hyperworks TCL-interface. I will work with the .unv or .mail file format and convert them to .med using Code Aster.
But thank you JanBlokes for the information on meshio. I did not know about his tool and it seems to be very useful!
Jonas
Offline
Pages: 1