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

Some tools to download: mesh conversion/transformation

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

Like Tree1Likes
  • 1 Post By Combas

Reply
 
LinkBack Thread Tools Display Modes
Old   May 29, 2014, 16:38
Default Some tools to download: mesh conversion/transformation
  #1
Member
 
Join Date: Sep 2013
Posts: 38
Rep Power: 3
Combas is on a distinguished road
Dear all,

I have developed some tools to:

1) convert OpenFoam meshes to SU2 format (see my previous post Tool to convert OpenFoam mesh to SU2 mesh (2D and 3D))
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
Attached Files
File Type: gz ConvertOpenFoam2SU2.py.gz (4.8 KB, 2 views)
File Type: txt TemplateOpenFoamToSU2_2D.txt (81 Bytes, 2 views)
File Type: txt TemplateOpenFoamToSU2_3D.txt (79 Bytes, 2 views)
File Type: gz TransformSU2MeshFile.py.gz (4.2 KB, 3 views)
Bachduong likes this.
Combas is offline   Reply With Quote

Old   June 5, 2014, 15:01
Default
  #2
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 260
Rep Power: 5
economon is on a distinguished road
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
economon is offline   Reply With Quote

Reply

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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
[ICEM] Orthogonality/Skew issues in 3D unstructured mesh eddyy19g ANSYS Meshing & Geometry 3 February 13, 2014 10:36
Layers:problem with curvature giulio.topazio OpenFOAM Native Meshers: snappyHexMesh and Others 10 August 22, 2012 09:03
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
basic of mesh refinement arya CFX 4 June 19, 2007 12:21


All times are GMT -4. The time now is 14:27.