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

Creating a mesh for SU2 in Python

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By cg102

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2023, 10:27
Default Creating a mesh for SU2 in Python
  #1
New Member
 
Costas
Join Date: Dec 2022
Posts: 9
Rep Power: 3
cg102 is on a distinguished road
Hi,

I have written a script using the Gmsh API in Python that creates a .msh file for my geometry and mesh. Previously, when creating a mesh in Gmsh, I have created a .geo file which I then exported to .su2 format and that has worked in SU2 for running simulations. But when I try to export the .msh file to .su2 format and run the simulation, it gives this error message (attached below) - there is no definition for NMARK.

My python script is also attached below (i and j are variables that can be altered to change the shape of the bezier curve). I am new to using Gmsh and SU2 in Python so if anyone could spot what I am doing wrong, that would be much appreciated!

Many thanks,
Costas
Attached Images
File Type: png Screenshot 2023-03-13 141404.png (20.8 KB, 37 views)
File Type: jpg Screenshot 2023-03-13 142603.jpg (65.0 KB, 37 views)
Attached Files
File Type: txt meshing_python_script.txt (1.8 KB, 19 views)
zhaoshuchang likes this.
cg102 is offline   Reply With Quote

Old   May 29, 2023, 05:51
Default I would like to know how su2 and suave are integrated thanks
  #2
New Member
 
zhaoshuchang
Join Date: May 2023
Posts: 3
Rep Power: 3
zhaoshuchang is on a distinguished road
I WOULD LIKE TO KNOW HOW SU2 AND SUAVE ARE INTEGRATED THANKS
I would like to know how you install SU2 on windows and what is it with python API Thank you
zhaoshuchang is offline   Reply With Quote

Old   May 29, 2023, 05:52
Default
  #3
New Member
 
zhaoshuchang
Join Date: May 2023
Posts: 3
Rep Power: 3
zhaoshuchang is on a distinguished road
I would like to know how you install SU2 on windows and what is it with python API Thank you
zhaoshuchang is offline   Reply With Quote

Old   May 30, 2023, 06:11
Default
  #4
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
The documentation is here:
https://su2code.github.io/docs_v7/home/
bigfootedrockmidget is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[mesh manipulation] How to write cellSet for different regions in constant/polyMesh/sets Struggle_Achieve OpenFOAM Meshing & Mesh Conversion 3 June 17, 2019 10:29
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 09:54
[Commercial meshers] Problems with ANSYS mesh conversion tdog OpenFOAM Meshing & Mesh Conversion 1 March 31, 2016 18:36
[ICEM] Creating unstructured mesh and setting mesh sizes cfdworks ANSYS Meshing & Geometry 0 February 25, 2014 23:23
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 05:24


All times are GMT -4. The time now is 13:21.