Hello,
I would like to know how you usually proceed to import CGNS mesh from Ansys Mesher to Code_Saturne 6.1.
I describe my problems and interrogations :
Context :
MESH CGNS 3.2 ADF from Ansys Mesher
Code_Saturne 6.1 (Code_Saturne GUI only !) on Ubuntu 20.04 LTS
Main proplem :
When I import mesh to Code_Saturne and I run case, case running console writes :
****************************************
Compiling user subroutines and linking
****************************************
****************************
Preparing calculation data
****************************
Single processor code_saturne simulation.
***************************
Preprocessing calculation
***************************
*****************************
Post-calculation operations
*****************************
Error running the preprocessor.
Check the preprocessor.log file for details.
Error in preprocessing stage.
Error in preprocessing stage
Then I check file "preprocessor.log" :
/******/******/Code_Saturne/6.1.0/code_saturne-6.1.0/arch/Linux_x86_64/libexec/code_saturne/cs_preprocess
--log --out mesh_input.csm
/mnt/Partage/obstacle/case1/../MESH/obstacle_ADF_sansAIR.cgns
.------------------------------.
| |
| Code_Saturne Preprocessor |
| |
`------------------------------'
code_saturne version 6.1.0 (built Thu May 7 15:33:04 2020)
CGNS 4.1.0 file format support
Reading of compressed files ('.gz') with Zlib 1.2.11
Case configuration
------------------
Date : Thu Jun 18 15:08:49 2020
System : Linux 5.4.0-37-generic
Machine : ******-VirtualBox
Processor : AMD Ryzen 9 3950X 16-Core Processor
Memory : 32113500
User : ****** (******)
Directory : /mnt/Partage/obstacle/case1/RESU/case
Case name : preprocess
Mesh file : /mnt/Partage/obstacle/case1/../MESH/obstacle_ADF_sansAIR.cgns
Reading mesh from file in CGNS format
----------------------
Mesh file: /mnt/Partage/obstacle/case1/../MESH/obstacle_ADF_sansAIR.cgns
CGNS version : 3.2
Base name : BASE#1
Physical dimension : 3
Cell dimension : 3
Number of zones : 1
Zone 1: "obstacle_ADF_sansAIR"; type "Unstructured"
1316165 vertices; 3308980 cells
(cartesian coordinates, "RealDouble" precision, unit "Null")
Section 1: "SOLIDE_1_1_SOLID";
(indices 1 to 3308980, type "MIXED")
Section 2: "INLET";
(indices 3308981 to 3312062, type "MIXED")
Section 3: "OUTLET";
(indices 3312063 to 3315144, type "MIXED")
Section 4: "WALL";
(indices 3315145 to 3527398, type "TRI_3")
CGNS boundary condition information:
Zone 1
BC 1: "INLET" ("UserDefined" on "FaceCenter")
BC 2: "OUTLET" ("UserDefined" on "FaceCenter")
BC 3: "WALL" ("UserDefined" on "FaceCenter")
Number of vertices : 1316165
Error in preprocessor execution
===============================
/home/******/CodeSaturne/code_saturne-6.1.0/preprocessor/pre-post/ecs_pre_cgns.c Fatal error.
CGNS error:
cgio_read_all_data_type:ADF 54: A node-id of 0.0 is not valid.
Call stack
1: 0x55da598914d6 <+0xf4d6> (cs_preprocess)
2: 0x55da59896768 <ecs_pre_cgns__lit_maillage+0x1e78> (cs_preprocess)
3: 0x55da598906cc <ecs_pre__lit_maillage+0xec> (cs_preprocess)
4: 0x55da59888f10 <main+0xa0> (cs_preprocess)
5: 0x7f1f1461b0b3 <__libc_start_main+0xf3> (libc.so.6)
6: 0x55da5988974e <_start+0x2e> (cs_preprocess)
End of stack
Whatever boundary zones and boundary conditions, the error message is
"CGNS error:
cgio_read_all_data_type:ADF 54: A node-id of 0.0 is not valid."
Therefore, I think it is not a problem with boundary zones defined in GUI but a problem with the importation of CGNS !
When I import CGNS, boundary zones are not loaded automatically into GUI and I must set them manually.
If you have ever resolved same problem, I will enjoy understanding how you proceed !
In general, I am interested in importation Ansys mesh to Code_Saturne 6.1
I am not a specialist of Linux...
Thank you !
Ansys CGNS to Code_Saturne 6.1
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 4077
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Ansys CGNS to Code_Saturne 6.1
Hello,
Some CGNS files generated by older CGNS libraries are not readable directly without recent CGNS versions (due in part to changes in the handling of Polyhedra, but since CGNS tries to achieve backwards and forwards compatibility, the cause is probably more subtle than I can explain).
In any case, when you installed CGNS with code_saturne, in the "bin" subfolder of the CGNS installation, you should find a "cgnsupdate" file. Try running:
<path_to_cgns_bin>/cgnsupdate <your_cgns_file>
and see if you can read it afterwards (in any case, this has worked for colleagues using ANSYS meshing also).
Best regards,
Yvan
Some CGNS files generated by older CGNS libraries are not readable directly without recent CGNS versions (due in part to changes in the handling of Polyhedra, but since CGNS tries to achieve backwards and forwards compatibility, the cause is probably more subtle than I can explain).
In any case, when you installed CGNS with code_saturne, in the "bin" subfolder of the CGNS installation, you should find a "cgnsupdate" file. Try running:
<path_to_cgns_bin>/cgnsupdate <your_cgns_file>
and see if you can read it afterwards (in any case, this has worked for colleagues using ANSYS meshing also).
Best regards,
Yvan
Re: Ansys CGNS to Code_Saturne 6.1
Thank you Yvan !
The conversion file works but the problem is the same when I am running Code_Saturne 6.1.
I have ever tryed with ADF and HDF5 with last version and 2.5 version but errors are same...
I can join my .xml file and my .cgns file if you want. It is a simple tube.
Thank you in advance to any one who may be able to give me some ideas to imprt Ansys mesh to Code_Saturne !
The conversion file works but the problem is the same when I am running Code_Saturne 6.1.
I have ever tryed with ADF and HDF5 with last version and 2.5 version but errors are same...
I can join my .xml file and my .cgns file if you want. It is a simple tube.
Thank you in advance to any one who may be able to give me some ideas to imprt Ansys mesh to Code_Saturne !
-
- Posts: 4077
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Ansys CGNS to Code_Saturne 6.1
Hello,
Running "cgnsupdate" on your file fails, and "cgnscheck" on your file complains (CGNSlib ERROR:cg_open:Error: ElementStartOffset defined more than once) using CGNS 4.1, but seems OK using CGNS 3.3.
Is the file you attached the file before you ran cgnsupdate or after ? If possible, I would like to test using the original case.
Since it seems OK with CGNS 3.3, iy you reinstall code_saturne using CGNS 3.3 (if you used the automatic installer, replace 4.1 with 3.1 for CGNS in that file), you should be OK.
This also means there seems to be a compatibility issue between CGNS versions, which we will probably need to report to the CGNS developers once this is verified.
Best regards,
Yvan
Running "cgnsupdate" on your file fails, and "cgnscheck" on your file complains (CGNSlib ERROR:cg_open:Error: ElementStartOffset defined more than once) using CGNS 4.1, but seems OK using CGNS 3.3.
Is the file you attached the file before you ran cgnsupdate or after ? If possible, I would like to test using the original case.
Since it seems OK with CGNS 3.3, iy you reinstall code_saturne using CGNS 3.3 (if you used the automatic installer, replace 4.1 with 3.1 for CGNS in that file), you should be OK.
This also means there seems to be a compatibility issue between CGNS versions, which we will probably need to report to the CGNS developers once this is verified.
Best regards,
Yvan
Re: Ansys CGNS to Code_Saturne 6.1
Thank you Yvan !
You can find original CGNS attached, and original case is Simple_Junction case without mesh. I have just removed original mesh ".des" I have replaced it by my CGNS mesh and rename boundary zones with Ansys named selections (I think it is the way...). CGNS attached are not converted by "cgnsupdate".
I have ever tried with 2.5 and 3.2 version, without success...
Best regards
You can find original CGNS attached, and original case is Simple_Junction case without mesh. I have just removed original mesh ".des" I have replaced it by my CGNS mesh and rename boundary zones with Ansys named selections (I think it is the way...). CGNS attached are not converted by "cgnsupdate".
I have ever tried with 2.5 and 3.2 version, without success...
Best regards
- Attachments
-
- Tube.zip
- (753.22 KiB) Downloaded 174 times
-
- Posts: 4077
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Ansys CGNS to Code_Saturne 6.1
Hello,
Did you reinstall code_saturne with CGNS 3.3, or simply change the output version in ANSYS ? In past versions at least, ANSYS meshing (or ICEM CFD at the time) would lie on the CGNS file version (by setting a different version number but not really using a different library version).
Best regards,
Yvan
Did you reinstall code_saturne with CGNS 3.3, or simply change the output version in ANSYS ? In past versions at least, ANSYS meshing (or ICEM CFD at the time) would lie on the CGNS file version (by setting a different version number but not really using a different library version).
Best regards,
Yvan
Re: Ansys CGNS to Code_Saturne 6.1
Hello !
My problem is resolved. I have downloaded CAELinux 2018 suite with Code-Saturne 5.0.4 and I can import easily CGNS 3.2.
Thank you Yvan !
Best regards
My problem is resolved. I have downloaded CAELinux 2018 suite with Code-Saturne 5.0.4 and I can import easily CGNS 3.2.
Thank you Yvan !
Best regards
-
- Posts: 4077
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Ansys CGNS to Code_Saturne 6.1
Hello,
Is it OK with you if I send use your mesh to report the bug to the CGNS team ?
Best regards,
Yvan
Is it OK with you if I send use your mesh to report the bug to the CGNS team ?
Best regards,
Yvan
Re: Ansys CGNS to Code_Saturne 6.1
Of course !