Page 1 of 1

Export mesh

Posted: Mon Aug 08, 2016 3:11 pm
by andrea28
Hello,
In Salome, is it possible to export the mesh from a .case file?

Thank you,

Andrea

Re: Export mesh

Posted: Mon Aug 08, 2016 6:23 pm
by Yvan Fournier
Hello,

What do you call a .case file ?

Regards,

Yvan

Re: Export mesh

Posted: Tue Aug 09, 2016 8:21 am
by andrea28
A file like the one produced by CS in the RESU directory.

Re: Export mesh

Posted: Tue Aug 09, 2016 8:47 am
by Yvan Fournier
Hello,

Those are output files in the EnSight Gold format.
SALOME's PARAVIS can read those files, but if you want to export a mesh to a format readable by the SMESH module, you need to change the output format to MED.

Regards,

Yvan

Re: Export mesh

Posted: Tue Aug 09, 2016 3:59 pm
by andrea28
Thanks for the help.

I am using Syrthes now and when I try to convert the mesh:
convert2syrthes4 -dim 3 -m shroud_mesh.unv -o mesh.syr

I get:
***************************************************************
convert2syrthes : convert mesh file to SYRTHES format
**************************************************************

SYRTHES file opened : mesh.syr
Ideas universal file opened : shroud_mesh.unv
Ideas mesh file : wrong type of elements found (type=44)

The mesh works properly on CS, plus is very simple (file attached).

Re: Export mesh

Posted: Tue Aug 09, 2016 4:41 pm
by Yvan Fournier
Hello,

Do not forget that Syrthes only handles triangles and tetrahedra. To split quads and hexahedra into triangles, you need to do that under SALOME.

Regards,

Yvan

Re: Export mesh

Posted: Wed Aug 10, 2016 8:51 am
by andrea28
Thanks that was the issue.

Re: Export mesh

Posted: Sun Dec 30, 2018 12:58 pm
by Pisolino
Hi all,
i'm facing a similar problem with a .unv mesh made only by tet elements.

SYRTHES file opened : Mesh_2.syr
Ideas universal file opened : Mesh_2.unv
Ideas mesh file : wrong type of elements found (type=41)

For what i googled 41 should be triangular elements, is there something wrong? my syrthes version is automatically compiled from ubuntu 18.04 repository, should i just compile a personal version?

thanks

Andrea

Re: Export mesh

Posted: Tue Jan 08, 2019 1:19 pm
by Yvan Fournier
Hello,

Looking at the unv reader in the Code_Saturne sources, I confirm type 41 seems to be for linear triangles, and even checking in the Syrthes sources, type 41 seems to be handled/read (along with type 91) so this is quite strange.

Installing your own version might indeed be a safe bet...

Best regards,

Yvan