How to use ICEM-CFD to generate CGNS mesh that could be recognized by SU2
I wanna use icem-cfd to generate CGNS format mesh file for SU2
However there are two problems 1. How to name the markers using icem, it seems that the makers' names given by the icem-cfd could not be recognized by su2 2. Could SU2 Version 3.0 handle more than one zone with CGNS ? SU2 v2 could only handle one single zone when using CGNS fromat mesh file. Thank you guys |
Hi Tommy,
1. I use Icem to generate my grids for SU2. You have to export the CGNS using version 2.4 in ICEM14.0, this settings work for me including the markers names. 2. I am also interesting in that question, SU2 is not able to handle multiple zones using CGNS. I know that there is a Matlab code in folder meshtools that appears to concatenate grids. Unfortunately I do not have Matlab so I am not able to test it (Octave fails due to some different commands from Matlab). Any help is appreciated. Regards Eduardo. |
CGNS mesh conversion problem with ICEM for SU2 simulations
Hi EMolina,
As per your suggestion I am exporting my mesh from ICEM 14.5 to CGNS 2.4 version. But even then, I am unable to convert it into SU2 mesh using SU2_v3.0. I am having a hybrid mesh with prism, tetra, quad and tri elemets. When I convert prism elements into tetra I am able to convert it into SU2 format. Could you suggest any solutions without this conversion? Do you also have the same element types as I have for your grid? or am I missing some options while exporting it to CGNS 2.4 version? I am getting the following error in SU2 Reading grid coordinates... Number of coordinate dimensions is 3. Reading CoordinateX values from file. Reading CoordinateY values from file. Reading CoordinateZ values from file. Reading connectivity information... Number of connectivity sections is 4. !!! Error !!! Unrecognized element type. Now exiting... Thanks in advance. Vetri Quote:
|
Hi Vetri
Do you have any pyramids in your grid. Sometimes ICEM create pyramids to connect the prism that is growing with tetra specially in complex geometries. I don't know if SU2 can handle pyramids probably does. In my grids I prefer use HEXA and Quads for viscous meshes and TRI+TETRA for inviscid meshes in icem. Maybe the guys from Stanford can help. Another thing you can try export on ICEM using others CGNS versions. You compile SU2 with what CGNS version? Please see this topic: http://www.cfd-online.com/Forums/ans...t-problem.html They report the CGNS error on ICEM. Good luck Regards Eduardo. |
Hi Emolina,
Thanks for your reply. As of now I do not have any pyramids in the grid as I am trying SU2 for a very simple problem just to check everything is fine. Yes, in future I will use SU2 for complex problems which will definitely have pyramids. Even without pyramids we seem to have problems. I am compiling with cgns 3.1.4 version. I will try to compile it with lower version of cgns 2.5 and will keep it posted. In ICEM, I have tried with all the cgns export versions, but not successful:( Hoping for the best. Thanks for the help again:) Regards, Vetri |
A workaround for ICEM CGNS problem..
Hi all,
I am able to somehow find a work around for this problem. I initially compiled SU2 v2.0 in serial with CGNS support after replacing the geometry_structure.cpp in /Common/src folder with the file suggested from this thread |
Quote:
Have you tried multi-zone CGNS mesh ? Can SU2 successfully converted multi-zone CGNS mesh file ? |
Hi Tommy Chen,
I have not tried any multi-zone mesh. I have only used simple unstructured meshes. Even for that I faced all these conversion problems. Regards, Vetri |
Tommy,
Do you intend to use multi-zone cgns in order to run use multiple processors for your simulation? I encountered the same issue and solved it like this. First compile SU2 from source, construct it with CGNS and MPI support. Create your mesh in CGNS format. Using a single zone CGNS mesh, call the SU2_CFD - space - testfile.cfg Within your testfile.cfg set the option Convert mesh to SU2 format to YES. This will translate your CGNS mesh to SU2 format. Modify your testfile.cfg such that it now reads meshfile = yourmesh.su2 and set the convert mesh to SU2 format to NO. Now you can run your simulation on as many nodes as you like! Good luck, denzell |
Good Night.
In the newer SU2 versions, the option: % Convert a CGNS mesh to SU2 format (YES, NO) CGNS_TO_SU2= YES does not appear in the default *.cfg files. How can I convert meshes to SU2 format ? (The main goal is to perform parallel simulations in this new version of SU2 4.1.3) Thank you all. |
Ok I managed to do that.
Just configure the *.cfg file with the input *.cgns file and the desired output (*.su2). Then call SU2_MSH <config_file>.cfg. It will do the conversion. Thank you guys ! |
All times are GMT -4. The time now is 10:30. |