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
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 !