CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Viewing SU^2 mesh (https://www.cfd-online.com/Forums/su2/144994-viewing-su-2-mesh.html)

dprasad_p November 26, 2014 00:24

Viewing SU^2 mesh
 
Hi,

How can I view the .su2 mesh file graphically just like any other mesh? Is there a way to convert .su2 mesh to other format which can be opened in gmsh, pointwise or tecplot etc.

I know we can view the mesh in tecplot after the solution is run but it would be nice to review the mesh alone beforehand.

Thanks in advance,
Prasad.

Sachchit November 26, 2014 03:47

Hi,

Gmsh give error when opening .su2 files. I don't know about other softwares. I make EXT_ITER = 1 and then see the solution file in paraview or tecplot. If you find some other ways to see it before kindly let me know. It would be great help.

Thanks,

jaiswal November 27, 2014 04:03

Hi prasad

Did you get any solution to your problem?

Even i want to open .SU2 files in pointwise.

dprasad_p November 27, 2014 04:30

Hi Jaiswal,

Thanks for your reply. I did not get time to revisit. I will try next week and update the post If there is any progress. I think the format of su2 is quite different from gmsh. one possibility is to tweak the su2 file to match gmsh format. But it will be very unpleasant working with the large files.

Sachchit November 27, 2014 04:33

Hi,

No, I haven't find any solution yet. I generally don't face this problem. Because I generate my own mesh in Gmsh. And I also don't know about pointwise as I haven't used it. Gmsh also have the same problem. It can export SU2 mesh but can not read SU2 mesh. I am looking in to the problem and update you if solution is found.

ceanwang December 30, 2014 07:56

Quote:

Originally Posted by Sachchit (Post 521355)
Hi,

No, I haven't find any solution yet. I generally don't face this problem. Because I generate my own mesh in Gmsh. And I also don't know about pointwise as I haven't used it. Gmsh also have the same problem. It can export SU2 mesh but can not read SU2 mesh. I am looking in to the problem and update you if solution is found.

Hi,

I wrote a little code to convert 2d su2 file into gmsh's pos file, so u can view it in gmsh.

If u like, PM ur email, I can send u a copy.

Cean

chintan February 2, 2015 18:12

Running following script with SU2_DEF should work:

DV_KIND=DISPLACEMENT
DV_PARAM= (0,0,0)
VISUALIZE_DEFORMATION=YES
MESH_FILENAME=mesh_file.su2

Reference: http://www.cfd-online.com/Forums/su2...-su2-mesh.html

I have updated the configuration to conform to latest version (3.2.7).

Best,
Chintan

Marco_Vanderbijl May 16, 2019 10:57

Complete newby here,...


I've managed to make an su2 mesh file (wing + farfield) from an OpenVSP .stl export (by running some SUAVE scripts). I noticed however that these scripts were giving some (warning?) messages in the process. Hence I would like to view the generated su2 mesh before trying to run any CFD.
The above solution however seems to be outdated (and I was unable to alter the .cfg file to run).


What would the current procedure be?


thanks, marco

wallym May 16, 2019 15:15

Hi Marco,

Thanks for using SU2 (and SUAVE!). If I understood your question correctly, you just want to view the actual file (.su2)? Unfortunately this solution is not outdated; the best way to do this is to run a single iteration and then view your solution in Paraview/Tecplot.

I am bit confused on why you weren't able to alter the .cfg file. It should be able to be opened in notepad/vi or any text editor.

I can't say anything about the warnings for SUAVE, I would suggest to post your warning message on their forum. I am sure they would love the feedback.

Please let me know if you are still facing issues and Ill do my best to help :)

Wally

Marco_Vanderbijl May 16, 2019 16:27

oh no, I could edit and (try to) run the .cfg file.
I't just that the SU2_DEF did not like the old configure values and even after trying some current configure values I could not get it to run.


Yes I just want to do a quick inspection of some key points (wingtip, root TE) to see if the mesh is still ok in those places.
I only have gmsh and paraview (no Tecplot)



DV_KIND=NO_DEFORMATION
DV_PARAM= (0,0)
VISUALIZE_SURFACE_DEF= YES
MESH_FILENAME=NLD3.su2


is what I tried after reading config_template.cfg

wallym May 16, 2019 17:44

Hmmm. I am a bit confused. I am going to try to answer the

I think what you should do is change the EXT_ITER =1 in the config file. Then run SU2_CFD. This should output flow.dat which you can observe the mesh file in Paraview. The results (pressure/mach/etc) will be wrong, but you only care about the mesh.

That being said you will probably have the same issues as above. To just view the mesh, you do not need to include DV parameters and Surface_Deformation...i would suggest commenting those out.

I think that should get you to your mesh. But if I misunderstood, or if more issues arise, please let me know!

Wally

Marco_Vanderbijl May 17, 2019 04:28

thanks
 
thanks, I've got some output

msahin.ae00 March 10, 2020 06:42

NASA Refine library at https://github.com/nasa/refine has some file conversions for su2 mesh

MESH FILE FORMAT CONVERSIONS:
~/refine-master/src/ref translate F6_ANSA.su2 mesh.meshb
~/refine-master/src/ref translate F6_ANSA.su2 mesh.cgns
~/refine-master/src/ref translate F6_ANSA.su2 mesh.vtk
~/refine-master/src/ref translate F6_ANSA.su2 mesh.tec
~/refine-master/src/ref translate F6_ANSA.su2 mesh.ugrid
~/refine-master/src/ref translate F6_ANSA.su2 mesh.b8.ugrid

tec for tecplot file format.

Mehmet

pro_ March 14, 2020 22:06

Quote:

Originally Posted by msahin.ae00 (Post 761078)
NASA Refine library at https://github.com/nasa/refine has some file conversions for su2 mesh

MESH FILE FORMAT CONVERSIONS:
~/refine-master/src/ref translate F6_ANSA.su2 mesh.meshb
~/refine-master/src/ref translate F6_ANSA.su2 mesh.cgns
~/refine-master/src/ref translate F6_ANSA.su2 mesh.vtk
~/refine-master/src/ref translate F6_ANSA.su2 mesh.tec
~/refine-master/src/ref translate F6_ANSA.su2 mesh.ugrid
~/refine-master/src/ref translate F6_ANSA.su2 mesh.b8.ugrid

tec for tecplot file format.

Mehmet

Do you think you can provide some steps to do the following? as i am confused as to how I should use nasa/refine


All times are GMT -4. The time now is 01:46.