MED format is the output format of CODE_Aster, a fairly popular open source simulation code.
Currently, the only way to visualize MED file within ParaView requires to use ParaVis, a ParaView-based application within Salome, which contains the MEDReader plugin. Once opened with ParaVis, the mesh can then be saved as a .vtm to be able to be opened in standard ParaView.
Adding native support to MED file format in ParaView would be nice
While being able to open MED file in ParaView would indeed be nice, the format is very complex and not very well documented, so developping a new reader would require a fair amount of work.
Another approach would be to integrate the MEDReader plugin into the official plugins of ParaView.
The problem with this approach is that this plugin depends on the libmed which itself currently requires a full salome installation to be built. One would need to be able to build libmed and the MEDReader plugin idependantly.
Can you please point towards a particular nightly version? I just tried the latest (03 Oct 23) and it’s not included (unless it needs turning on somehow).
@wascott I’m afraid this is not possible for a few reasons:
This is not even a ParaView plugin, this is an external plugin that is being added in the packaging phase of ParaView
Adding it in ParaView proper would mean bringing in all the dependencies as third parties, which we do not want
The plugin itself is maintained by EDF in the SALOME/ParaVis project, so we would need to fork it, which we do not want
I understand the idea but the fact itself that we are able to bring it in the paraview binary is in itself a small miracle (that EDF funded, thanks a lot!)
Thanks for your work on this. I am trying to build 5.12.0-RC1 and also have the MEDReader plugin available. Can you explain how you do this in your step 1? Do I need to pull it from an EDF repo and drop it in the plugin folder or something along those lines?
Thanks for pointing me to the superbuild. I did eventually get it to work using the binary release. I am installing paraview in a docker image and using pvbatch to process some results. I had been trying the osmesa version. It would install but I would get something about “illegal instructions” when I ran it. That is when I turned to building. Eventually, I tried the egl version of the binary release and that installs and runs without issue.