|
[Sponsors] |
May 4, 2020, 04:44 |
Import salome mesh to SU2
|
#1 |
New Member
Andrzej Świtała
Join Date: May 2020
Posts: 5
Rep Power: 6 |
Hi all
I'm new to cfd. I'm trying to import triangle mesh generated in salome 9.4 to SU2 7.0.4 using cgns format. I export cgns HDF5 format to ADF using cgns tools obtained from debian packages. While trying to run simulation i receive an error " Unsupported or unknown CGNS element type : (type6) " What should i do about it? Thany You Andrzej |
|
May 7, 2020, 11:48 |
|
#2 |
Member
Giovanni Medici
Join Date: Mar 2014
Posts: 48
Rep Power: 12 |
Hi pl96andy,
I've been trying to read in SU2 a CGNS mesh file created in Salome, in the past, but never succeeded, possibly with the new Salome and SU2 versions, is finally possible, if you managed to read a CGNS mesh in SU2 please let us know!! As a backup solution I modified a script that was available so to export the native su2 file format. The problem is that the su2 files are ASCII, so they will be considerably less efficient than (binary) CGNS. To load the script in Salome you have to ctrl+T and open the python script. Then simply type the command: Code:
ExportSU2File("Mesh1","OutputMesh",["GroupToInclude1","GroupToInclude2"],["GroupToExclude"])
I'll redirect you to the post where I was sharing the modified python script. Salome cgns format mesh to SU2 |
|
June 10, 2020, 07:15 |
|
#3 |
New Member
Andrzej Świtała
Join Date: May 2020
Posts: 5
Rep Power: 6 |
Hi giovanni.medici
Thank you for solution and explanation. Until some point it looks like mesh is accepted by SU2 but it freezes at "geometry preprocessing (zone 0)". Processor is fully loaded but after day nothing changes. The same is for mesh exported through gmsh. To 'shorten' waiting time i runned calculations using parallel_computation.py After some attempts i created new config file to make sure that all functions are for the same version of SU2. But it didn't changed anything. Am i missing something? |
|
June 19, 2020, 06:25 |
|
#4 |
Member
Giovanni Medici
Join Date: Mar 2014
Posts: 48
Rep Power: 12 |
I just opened your output.txt file, and I think that your SU2 failed to include parallel computation when compiling.
I suggest you to recompile and/or check you have installed all dependencies. The output of parallel_computation.py shall be a readable log, similar to the one produced when only one core is used. |
|
June 19, 2020, 09:31 |
|
#5 |
New Member
Andrzej Świtała
Join Date: May 2020
Posts: 5
Rep Power: 6 |
I've runned this simulation also on single core and output freezes in the same place. I'm using precompiled binary (without mpi in package name) so i weren't compiling anything...
While running tutorial cases, there wasn't problem with running in parallel. Also if this is needed i've installed mpich from debian stretch repository but i don't know how to use it . Should i try to compile SU2? |
|
June 20, 2020, 03:50 |
|
#6 | |
Member
Giovanni Medici
Join Date: Mar 2014
Posts: 48
Rep Power: 12 |
Quote:
If you downloaded the precompiled binary without mpi, it won’t use all your cores, parallel_computation.py will not crash, but you will not take advantage of the speedup of parallelization. So if you plan to use the parallel feature I suggest you to download, install or compile the mpi version. Going back to the mesh problem, how did you created the ”test_1.su2” mesh? I'm the .su2 is an ASCII file, so you can open it with a text editor to see if everything is as expected. It shall more resamble the file format described here. Last edited by giovanni.medici; June 20, 2020 at 03:54. Reason: Typo |
||
August 4, 2020, 10:46 |
|
#7 |
New Member
Andrzej Świtała
Join Date: May 2020
Posts: 5
Rep Power: 6 |
Mesh i've created in salome and exported it with python script.
I've recreated mesh to have some quadriangles. i looked at exported mesh and mesh element 9 (according to website quadriangle element) occurs however there are some "None" elements. "9" elements have 5 columns of conectivity while "None" has 9 columns. That looks suspicious. also i've tryied to export the same mesh to .med format, open it with gmsh and then export it to .su2. Simulation changs in the same moment however there are some "22" and "23" elements with 9 columns of conectivity. I've tryied little with openfoam and also had problems with exported files from salome. In this case helped script to export directly from salome to openfoam. I don't know how to do check this but maybe salome changed the way of exporting meshes. |
|
Tags |
cgns file read, mesh 2d, salome, su2 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SnappyHexMesh/splitMeshRegion : region1 in zone "-1" | GuiMagyar | OpenFOAM Meshing & Mesh Conversion | 3 | August 4, 2023 13:38 |
Best mesh generator compatible with SU2 | JPBLourenco | SU2 | 1 | July 1, 2017 09:19 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
mesh missing after import in fluent | morteza08 | FLUENT | 0 | July 23, 2010 03:22 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |