Mesh .med or .unv conversion to .syr with syrthes-win32-4.1.1

This forum is dedicated to Syrthes related issues, as the Syrthes tool does not have its own forum.
Post Reply
Laurent Bertrand
Posts: 11
Joined: Tue May 08, 2018 9:24 am

Mesh .med or .unv conversion to .syr with syrthes-win32-4.1.1

Post by Laurent Bertrand » Sun Aug 18, 2019 11:18 am

Hello,

I couldn't read or convert my linear triangular meshes to .syr format with syrthes win32

-I have tried with .unv format, I get the following error when using Netgen meshes:
"Ideas mesh file : wrong type of elements found (type=41)" (type 41 seems to be for linear triangles, someone already report this trouble in the forum)

So, I have tried to use .med format and I get this error:
..\..\med-3.0.5_SRC\src\misc\MEDversionedApi3C.c [50] : Cette bibliothèque MED n'est pas capable de lire un fichier MED dont le mineur de la versionexcède celui de la bibliothèque.

I don't now how I can define and change the source file med-3.0.5 to med-3.2.1.

Could someone help me to update the med source file or anything else?

Best regards

Yvan Fournier
Posts: 2774
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mesh .med or .unv conversion to .syr with syrthes-win32-4.1.1

Post by Yvan Fournier » Sun Aug 18, 2019 3:13 pm

Hello,

For this you would need to either export MED files to an older version using a recent SALOME version (but I am not sure you can export to versions older than 3.2), or regenerate the Syrthes binaries.
Using a Linux version this is easy, but to my knowledge only the Syrthes developers have the scripts to generate the Windows version, so you would need to write directly to the syrthes-suffort at edf dot fr adress (though I am not sure how often it is checked).

Best regards,

Yvan

Laurent Bertrand
Posts: 11
Joined: Tue May 08, 2018 9:24 am

Re: Mesh .med or .unv conversion to .syr with syrthes-win32-4.1.1

Post by Laurent Bertrand » Mon Aug 19, 2019 8:02 am

Dear Yvan,

Thank you for you quick answer. I have some questions:
-Do you mean: syrthes-support@edf.fr or syrthes-suffort@edf.fr?
-I didn't find the way in Salome or forum to export the Mesh in older Med version. Could you please explain me the procedure?
-Do you think that I can modify the medC.dll in syrthes folder to call the new MED version?
-Finally, is it a way to use the mesh in .unv format? What kind of algorithm should I use? I get Licence problems when I am using MG-Tetra

Best regards

Yvan Fournier
Posts: 2774
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mesh .med or .unv conversion to .syr with syrthes-win32-4.1.1

Post by Yvan Fournier » Tue Aug 20, 2019 12:42 am

Hello,

Sorry for the typo (typing from my phone).
It is syrthes-support@edf.fr.

Changing the dll might work, assumimg the hdf5 dll matches, but dolls from the Syrthes scripts and Salome might use different build systems so you may have dependency issues. There is no risk in trying anyways...

With recent Salome versions, choosing the MED version is a sub-option in the export mesh as MED dialog. I am not sure if it is missing from the Windows version...

Best regards,

Yvan

Laurent Bertrand
Posts: 11
Joined: Tue May 08, 2018 9:24 am

Re: Mesh .med or .unv conversion to .syr with syrthes-win32-4.1.1

Post by Laurent Bertrand » Sun Nov 10, 2019 7:11 pm

Hello Yvan,

I haven't get any respond yet from Syrthes team despite waiting for many months. Do you think I should continue to wait?

Best regards.

Laurent

Yvan Fournier
Posts: 2774
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mesh .med or .unv conversion to .syr with syrthes-win32-4.1.1

Post by Yvan Fournier » Wed Nov 13, 2019 10:44 am

Hello,

You can try with a new mail, but I do do not know if the Syrthes team checks that mailbox very often.

If you have access to a Linux install, you could convert your files to .syr on the Linux box, and use them on Wndows.

I just checked the Salome MED export options, and in Salome 4.0, a MED file can be exported to MED 4.0, MED 3.3, and MED 3.2 versions, but not MED 3.0. So MED 3.0 can definitely be considered obsolete...

Otherwise, you might have a last option with the UNV format might be to edit the element types, as many are "similar enough". Checking the Syrthes sources, handled types seem to be 111, 91, and 21. You can try to replace 41 (linear triangle) with 91 (shell linear triangle) in the UNV file and check if that works.

Best regards,

Yvan

Post Reply