CFD Online Logo CFD Online URL
Home > Forums > SU2

Tool to download: SU2 post-processing

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

LinkBack Thread Tools Display Modes
Old   May 29, 2014, 17:20
Default Tool to download: SU2 post-processing
Join Date: Sep 2013
Posts: 39
Rep Power: 5
Combas is on a distinguished road
Dear all,

I have developed a tool to perform some post-processing. The aim of this tool is to allow the user:
- to get forces components for each surface (boundary)
- to get forces components for slices of surfaces (for example, for the computation of a wing, it is possible to get the forces distribution along the span)
Pressure and viscous forces are given separately.

Just to avoid to make raise some hope that could be disappointed, I give you the limits of this tool. It only works:
- for 3D meshes
- for RANS (Navier-Stokes) computations
- for triangular faces (for boundaries)
So it does not work for hexahedral meshes (but the code could probably be adapted to deal with such meshes). It does not work either for Euler computations, but the tool adaptation should be quite easy.

Unfortunately, this tool cannot be used directly for Navier-Stokes computations, since the actual SU2 output files does not contain enough data to compute forces. I have done some modifications in the SU2 source code to get all the data required to compute forces for every boundary faces. These modifications does not change anything in the computation, it only adds some data in the output file "surface_flow.csv". For those who want to know what I have changed, it is very easy: all my modifications begin with "Modif LBT" and end with "End Modif LBT".

Here is the process to follow to use this tool:
1) download the following files:
* output_structure.cpp.gz
* solver_direct_mean.cpp.gz
* solver_direct_tne2.cpp.gz
* solver_structure.hpp.gz
* solver_structure.inl.gz
Remark: the 2 last files are in the first reply to this post (since the number of files in attachment is limited to 5)
2) type in the terminal: gzip *.gz
3) put the .cpp files in the folder "SU2_CFD/src/" in your SU2 directory (replace the "old" files) and the solver_structure.hpp and solver_structure.inl in the folder "SU2_CFD/include/" (replace also the "old" files)
4) recompile the SU2 source code using the official procedure (no need to launch the ./configure). If you use linux, you should just do:
make clean
make install
5) If you want to analyse the result of a computation already done (with the official SU2 code), you just have to launch a new one (with the new SU2 version) with just 1 iteration for example ("EXT_ITER = 1" in the .cfg file)
You will get a new "surface_flow.csv" file that contains all the information needed to compute local forces.
The other file needed is the .su2 mesh file.
6) In the folder that contains the file, type:
You will have to answer some questions. If you want to perform an analysis by "slice" along a direction, be patient, it is the last question.

The computation of forces does not give exactly the same results as SU2 in the "history.csv" file, but they are very close. I think the main difference comes from the fact that SU2 uses normals given at mesh points, whereas I use normals to faces.

This tool does not allow to do complex things, but it is really helpful if you need to analyse the distribution of forces on you aircraft/wing/etc...

Attached Files
File Type: gz (6.3 KB, 15 views)
File Type: gz output_structure.cpp.gz (32.0 KB, 10 views)
File Type: gz solver_direct_mean.cpp.gz (57.3 KB, 9 views)
File Type: gz solver_direct_tne2.cpp.gz (37.3 KB, 10 views)
Combas is offline   Reply With Quote

Old   May 29, 2014, 17:22
Join Date: Sep 2013
Posts: 39
Rep Power: 5
Combas is on a distinguished road
I add the 2 missing files.
Attached Files
File Type: gz solver_structure.hpp.gz (22.5 KB, 9 views)
File Type: gz solver_structure.inl.gz (4.2 KB, 9 views)
Combas is offline   Reply With Quote

Old   June 5, 2014, 14:55
New Member
David Manosalvas
Join Date: Feb 2014
Posts: 24
Rep Power: 5
demanosalvas is on a distinguished road
It looks like a great tool, thanks for sharing it!

demanosalvas is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tool to convert OpenFoam mesh to SU2 mesh (2D and 3D) Combas SU2 17 March 22, 2017 08:34
wind turbine - post processing er_ijaz FLUENT 0 September 30, 2013 05:28
post processing for CEL expressions Niru CFX 0 May 10, 2013 13:13
Automated post processing using CFD Post shreyasr ANSYS 0 January 28, 2013 07:21
post processing in CFD MANISH BHARGAVA Main CFD Forum 0 October 17, 1998 20:51

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