Skip to content

m-minervino/P2D2SU2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

P2D2SU2, a grid converter from PLOT3D to SU2

This consists in a set of two elementary codes that perform grid coarsening and conversion to SU2 native format, from a two-dimensional PLOT3D file generated by the program CONSTRUCT2D. Pre-compiled executables for win64 are also included.

CONSTRUCT2D is a convenient tool to generate two-dimensional structured meshes around aerofoils. A common case is the C-grid mesh, for aerofoils with zero-thickness trailing edge.

The first code (COARSEN_P2D) reads in the PLOT3D file containing the mesh (as generated by CONSTRUCT2D) and a second integer argument ($n>=1$) that specified the number of grid nodes to be skipped along each block direction from the original mesh file. The code then provides, as an output, a new PLOT3D grid file, containing the coarsened mesh. This is useful in performing mesh sensitivities studies, generating coarser grid levels from a reference fine mesh. Usage is as follows:

COARSEN_P2D input_file n

The second code (CONVERT2SU2) reads in the PLOT3D file containing the mesh (it can be either a direct output from CONSTRUCT2D or a coarsened mesh file from COARSEN_P2D) and two optional real arguments (scale_f and rot_angle) that specify any grid scaling and/or mesh rotation (arount -Z axis) to be applied to the output. The code then provides, as an output, a new grid file in the native format used by the Stanford University Unstructured (SU2) suite, which can be used for example to simulate the flow-field around the selected aerofoil using its flow solver module (SU2_CFD). In case of applied grid scaling and/or rotation, a modified PLOT3D file will also be written accordingly. Usage is as follows:

CONVERT2SU2 input_file scale_f rot_angle

You can use the following BibTeX citation as a reference (p. 318) for the P2D2SU2 toolbox:

@PhdThesis{MinervinoPhD, author = {Minervino, Mauro}, school = {University of Naples Federico II}, title = {{A unified thermodynamic/vortical theory for the aerodynamic force analysis}}, year = {2025}, month = feb, type = {phdthesis}, doi = {http://dx.doi.org/10.13140/RG.2.2.20705.83047}, url = {https://hdl.handle.net/11588/989058}, }

Contacts: Dr. Mauro Minervino Established Researcher at the Italian Aerospace Research Centre (C.I.R.A. SCpA) m.minervino@cira.it

About

Coarsen an existing C-type grid generated by Construct2D and/or convert it into SU2 native mesh file format.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors