Python tool to genreate 2D mesh around an airfoil
Project description
GMSH-Airfoil-2D
Python tool to genreate 2D unstructured mesh around an airfoil with GMSH in one command line.
Installation
You can install this package from PyPi:
pip install gmshairfoil2d
Or you can clone and install this repository with the following commands:
git clone https://github.com/cfsengineering/GMSH-Airfoil-2D.git
cd GMSH-Airfoil-2D
pip install -e .
Usage
gmshairfoil2d -h
optional arguments:
-h, --help show this help message and exit
--list Display all airfoil available in the database :
https://m-selig.ae.illinois.edu/ads/coord_database.html
--naca [4DIGITS] NACA airfoil 4 digit (default 0012)
--airfoil [NAME] Name of an airfoil profile in the database (database available with
the --list argument)
--aoa [AOA] Angle of attack [deg] (default: 0 [deg])
--farfield [RADIUS] Create a circular farfield mesh of given radius [m] (default 10m)
--box [LENGTHxWIDTH] Create a box mesh of dimensions [length]x[height] [m]
--airfoil_mesh_size [SIZE] Mesh size of the airfoil countour [m] (default 0.01m)
--ext_mesh_size [SIZE] Mesh size of the external domain [m] (default 0.2m)
--format [FORMAT] format of the mesh file, e.g: msh, vtk, wrl, stl, mesh, cgns, su2,
dat (default su2)
--output [PATH] output path for the mesh file (default : current dir)
--ui Open GMSH user interface to see the mesh
Examples of use
To check all airfoil available in the database:
gmshairfoil2d --list
For all the following examples, the defauld chord lenght is 1 meter.
To create a circular farfield mesh around a NACA0012 of 10m of radius and see the result with GMSH user interface:
gmshairfoil2d --naca 0012 --farfield 10 --ui
To create a circular farfield mesh around a Drela DAE11 airfoil (the name in the database is "dae11") of 20m or radius with a mesh size of 0.005m on the airfoil:
gmshairfoil2d --airfoil dae11 --farfield 20 --airfoil_mesh_size 0.005
To create mesh around a Eppler E220 airfoil (the name in the database is "e211") with an angle of attack of 8 degree in a box of 12x4m (lenght x hight) and save it as a vtk mesh and see the result with GMSH user interface:
gmshairfoil2d --airfoil e211 --aoa 8 --box 12x4 --format vtk --ui
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gmshairfoil2d-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f54c66e5413d69a74bf5ed7dbf4fc1027b038f13b7d50019b8c0d005c1040d2 |
|
MD5 | c7a648d38aa8c034e7b24290dbcfd622 |
|
BLAKE2b-256 | 2a59344bf9326f1f83c4a5113c9a70c88326d93b470492a8d5f927ed71308599 |