Page 1 of 1

Problem using cgns format file on CS 8.0

Posted: Thu Jul 27, 2023 10:35 pm
by finzeo
Hi all,

I'm trying to use a mesh generated in Star-CCM+ in Code_Saturne 8.0, but I'm getting errors at the preprocessing stage:

- In the case of exporting it with the .cgns format (which, according to code_saturne's documentation, is recommended over .ccm), I get the error shown in cgns_preprocessor.log.

- In the case of exporting it with the .ccm format, I get the error shown in ccm_preprocessor.log.

In this regard, I am using:

Code_Saturne 8.0 with CGNS 3.3.1
Star-CCM+14.04.011-R8 with CGNS 3.2.1a
(I cannot modify the installation of Star-CCM+, if required, because it is in a cluster to which I have limited access).

I think the best thing would be to make it work with .cgns.

Thank you in advance.

Re: Problem using cgns format file on CS 8.0

Posted: Sun Jul 30, 2023 11:41 pm
by Yvan Fournier
Hello,

Hard to say if this is a version of a CGNS file which does not quite folllow the standard or an installation issue.

Could you post a small test CGNS file generated with the same software ?
Did you try various export sub-options ?

Best regards,

Yvan

Re: Problem using cgns format file on CS 8.0

Posted: Tue Aug 08, 2023 2:53 pm
by finzeo
Hi Yvan,

Sorry for the delay. I generated several files just in case, using different options to export. I see that in another post a problem arose that can be linked. I understand that, in my case, the version of the library is 3.21. I also attach the options that appear to me to export from the software.

Re: Problem using cgns format file on CS 8.0

Posted: Tue Aug 08, 2023 4:43 pm
by Yvan Fournier
Hello,

The meshes read fine on my side. Looking at your error message, I suspect that your CGNS library install does not include HDF5 support (and the files are indeed HDF5-based, not ADF-based).

In doubt if the CGNS "hdf2adf" utility is available, yoy can convert the file and try reading it...

Best regards,

Yvan

Re: Problem using cgns format file on CS 8.0

Posted: Tue Aug 08, 2023 7:22 pm
by finzeo
Hi Yvan,

I don't know if it's determinative, but running the ldd command I don't see any trace of any link to any hdf5 library in the cluster:
[finzeo@seshat gnu7.1]$ ldd libcgns.so
linux-vdso.so.1 => (0x00007ffe7e5ee000)
libc.so.6 => /lib64/libc.so.6 (0x00007f82286a3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8228d30000)

Re: Problem using cgns format file on CS 8.0

Posted: Thu Aug 10, 2023 1:02 pm
by Yvan Fournier
Hello,

It may depend on several factors, but on my install, I do see libhdf5.so when I run ldd on libcgns.so.

If you are not the person installing CGNS and the hdf2adf utility is not available on that cluster, you might be able to run it on a workstation. If you handle your own installs, I recommend adding HDF5 support to CGNS as it make things more "transparent".

Best regards,

Yvan

Re: Problem using cgns format file on CS 8.0

Posted: Thu Aug 10, 2023 2:19 pm
by finzeo
Thank you Yvan!