Problem with MED mesh file when the name of the mesh inside the file is not "MESH"
We encountered problems when we try to modify a MED mesh (to add or modify a variable field for example) with TelemacFile.
If the Telemac mesh name inside the MED file is not "MESH", when we write the new file with TelemacFile, another mesh is added to the MED file with the name "MESH".
You can see below as an exemple a mesh we want to modify opened in Salome's module SMESH :
Once it is modified, when you open in SMESH the modified file, you get this:
So you still have the original mesh with its name (Mesh_8_Global), but you also get the modified mesh with the name MESH.
It wouldn't be a problem if the MED groups which are used to define boundary conditions for Telemac were kept in the modified MESH.
Another way to avoid this problem, I guess, would be to adapt Hermes to make it able to read mesh with different name.
Matthieu