|
[Sponsors] | |||||
Some tools to download: mesh conversion/transformation |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Join Date: Sep 2013
Posts: 43
Rep Power: 14 ![]() |
Dear all,
I have developed some tools to: 1) convert OpenFoam meshes to SU2 format (see my previous post http://www.cfd-online.com/Forums/su2...esh-2d-3d.html) You can download the last version in the post you are reading, but for more information go to the previous post. The files to download are: * ConvertOpenFoam2SU2.py.gz * TemplateOpenFoamToSU2_2D.txt * TemplateOpenFoamToSU2_3D.txt 2) perform some basic transformation on SU2 meshes. With this tool you can: p, li { white-space: pre-wrap; } - get some mesh information - merge some boundaries - remove some boundaries (for example, after a mesh conversion, you can get undesired boundaries) - rename a boundary - convert a 3D extruded mesh into a 2D mesh The file to download is: * TransformSU2MeshFile.py.gz To launch this tool (after having done gunzip TransformSU2MeshFile.py.gz), you just have to type: python TransformSU2MeshFile.py and you just have to answer the questions. To avoid any problem, it is better to give a new name to the output mesh file (when it is asked) so that the initial mesh file be not overwritten and lost. Another remark: it seems that there is a slight difference in the SU2 mesh format between the v3.0 and the previous ones: check before using this tool that you get "MARKER_TAG" and not "MARKERTAG" in your mesh file. I am not sure it works in this last case. p, li { white-space: pre-wrap; } I think it is useless to tell more about this tool since it is really easy to use. I hope these tools will help you to do some basic things on SU2 meshes. Laurent |
|
|
|
|
|
|
|
|
#2 |
|
Super Moderator
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 16 ![]() |
Dear Laurent,
Thank you for sharing your tools: these are the types of contributions that we encourage and love to see from the open-source community! Cheers, Tom |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
| [ICEM] Orthogonality/Skew issues in 3D unstructured mesh | eddyy19g | ANSYS Meshing & Geometry | 3 | February 13, 2014 10:36 |
| [snappyHexMesh] Layers:problem with curvature | giulio.topazio | OpenFOAM Meshing & Mesh Conversion | 10 | August 22, 2012 10:03 |
| [snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 22:11 |
| basic of mesh refinement | arya | CFX | 4 | June 19, 2007 13:21 |