CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   foamToSU2 (https://www.cfd-online.com/Forums/su2/113951-foamtosu2.html)

samiam1000 March 1, 2013 11:48

foamToSU2
 
Dear All,

I have a foam mesh. It is a 2D mesh (actually, OpenFOAM treats 2D as 3D with empty BC in 3rd direction) and I would like to convert it into SU2 mesh format (cgns is good, too).

Have you ever thought about such a converter? Is it available somewhere?

Thanks a lot,
Samuele

pjohannes183 July 23, 2013 10:56

For benchmarking purposes I'm also very interested in conversion of OpenFOAM meshes to SU2 and vice versa. The problem that arises when converting two-dimensional SU2 meshes to OpenFOAM can be handled with the onboard utility "extrude2DMesh" (the description reads "Takes 2D mesh (all faces 2 points only, no front and back faces) and creates a 3D mesh by extruding with specified thickness")

The ways I have tried so far was using CGNS as intermediate format, however since SU2 uses CGNS version 3 and the OpenFOAM turbomachinery contrib "cgnsToFoam" is based on version 2.5, the files don't seem to be compatible.

Has anyone successfully converted a mesh between OpenFOAM and SU2 in either direction?

winter July 25, 2013 14:56

I've been having the same issue as pjohannes183, as I'm looking into the capabilities of SU2 for my Master's thesis. It would be very beneficial to benchmark SU2 against OpenFoam for instance. Has anyone managed to do the conversion from SU2 into OpenFoam?

Combas December 11, 2013 10:45

You have dreamed about it, and I did it! :o)

I have done a python tool that allows the conversion from OpenFoam to SU2 (2D and 3D meshes)
Everything is explained in the post "Tool to convert OpenFoam mesh to SU2 mesh (2D and 3D)" in the "SU2" forum:
http://www.cfd-online.com/Forums/su2...tml#post465933

Hope it will be helpful!

Laurent


All times are GMT -4. The time now is 11:36.