CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Viewing SU^2 mesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 1 Post By ceanwang
  • 2 Post By chintan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2014, 01:24
Default Viewing SU^2 mesh
  #1
New Member
 
Join Date: Jun 2013
Posts: 5
Rep Power: 12
dprasad_p is on a distinguished road
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.
dprasad_p is offline   Reply With Quote

Old   November 26, 2014, 04:47
Default
  #2
New Member
 
Sachchit Vekaria
Join Date: Dec 2013
Posts: 18
Rep Power: 12
Sachchit is on a distinguished road
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,
Sachchit is offline   Reply With Quote

Old   November 27, 2014, 05:03
Default
  #3
New Member
 
shikhar
Join Date: Apr 2010
Posts: 22
Rep Power: 16
jaiswal is on a distinguished road
Hi prasad

Did you get any solution to your problem?

Even i want to open .SU2 files in pointwise.
jaiswal is offline   Reply With Quote

Old   November 27, 2014, 05:30
Default
  #4
New Member
 
Join Date: Jun 2013
Posts: 5
Rep Power: 12
dprasad_p is on a distinguished road
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.
dprasad_p is offline   Reply With Quote

Old   November 27, 2014, 05:33
Default
  #5
New Member
 
Sachchit Vekaria
Join Date: Dec 2013
Posts: 18
Rep Power: 12
Sachchit is on a distinguished road
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.
Sachchit is offline   Reply With Quote

Old   December 30, 2014, 08:56
Default
  #6
Member
 
cean wang
Join Date: Feb 2013
Posts: 43
Rep Power: 13
ceanwang is on a distinguished road
Quote:
Originally Posted by Sachchit View Post
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
spendres likes this.

Last edited by ceanwang; December 31, 2014 at 17:45.
ceanwang is offline   Reply With Quote

Old   February 2, 2015, 19:12
Default
  #7
New Member
 
Chintan Patel
Join Date: Oct 2014
Location: USA
Posts: 19
Rep Power: 11
chintan is on a distinguished road
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
beatlejuice and nitish_anand like this.
chintan is offline   Reply With Quote

Old   May 16, 2019, 11:57
Default
  #8
New Member
 
marco
Join Date: May 2019
Posts: 12
Rep Power: 6
Marco_Vanderbijl is on a distinguished road
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
Marco_Vanderbijl is offline   Reply With Quote

Old   May 16, 2019, 16:15
Default
  #9
Senior Member
 
Wally Maier
Join Date: Apr 2019
Posts: 123
Rep Power: 6
wallym is on a distinguished road
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
wallym is offline   Reply With Quote

Old   May 16, 2019, 17:27
Default
  #10
New Member
 
marco
Join Date: May 2019
Posts: 12
Rep Power: 6
Marco_Vanderbijl is on a distinguished road
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
Marco_Vanderbijl is offline   Reply With Quote

Old   May 16, 2019, 18:44
Default
  #11
Senior Member
 
Wally Maier
Join Date: Apr 2019
Posts: 123
Rep Power: 6
wallym is on a distinguished road
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
wallym is offline   Reply With Quote

Old   May 17, 2019, 05:28
Default thanks
  #12
New Member
 
marco
Join Date: May 2019
Posts: 12
Rep Power: 6
Marco_Vanderbijl is on a distinguished road
thanks, I've got some output
Marco_Vanderbijl is offline   Reply With Quote

Old   March 10, 2020, 07:42
Default
  #13
New Member
 
Mehmet SAHIN
Join Date: Dec 2011
Posts: 12
Rep Power: 14
msahin.ae00 is on a distinguished road
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
msahin.ae00 is offline   Reply With Quote

Old   March 14, 2020, 23:06
Default
  #14
New Member
 
pro
Join Date: Mar 2020
Posts: 25
Rep Power: 6
pro_ is on a distinguished road
Quote:
Originally Posted by msahin.ae00 View Post
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
pro_ is offline   Reply With Quote

Reply

Tags
su2 mesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 10:03
engrid -> save as .stl with boundarie codes Zymon enGrid 31 August 29, 2011 14:40
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
basic of mesh refinement arya CFX 4 June 19, 2007 13:21


All times are GMT -4. The time now is 05:54.