Utilities for initial-stages of propeller design (automates usage of XFOIL and XROTOR executables).
Project description
propeller_design_tool (PDT)
Work in progress / incomplete documentation
Description
Python 3.7 package that provides various assets that aid in first-cut propeller designing by automating usage of the GPL-licensed CLI-utilities XFOIL and XROTOR.
Both utilities are published by professor Mark Drela (MIT).
- XFOIL: for arbitrary 2D airfoil analysis
- XROTOR: for arbitrary propeller design schemes
Purpose
PDT seeks to provide the user a set of python3 utilities that can be used for arbitrary scripting efforts to automate usage of both XFOIL and XROTOR while implementing its own unique python3.7-native algorithms to maintain local input files, meta files, databases, and results files and weave everything together for the user in a simple, meaningful way to aid in the initial / investigatory stage of well-behaved propeller designs.
Getting Started
Installation
pip install propeller_design_tool
General Operation
import propeller_design_tool as pdt
PDT operates on two different "database" directories, defined by the user with:
pdt.set_airfoil_database(path: str)
pdt.set_propeller_database(path: str)
The user must set these two directories at the top of every script right after the imports
The airfoil directory will be used to store any foil / XFOIL- related support files, and the propeller directory will be used similarly to store any propeller / XROTOR - related support files.
Requisite: XFOIL and XROTOR Executables
In order to utilize any PDT functionality that depends on running XFOIL, the "xfoil.exe" executable file needs to be in the user-set "airfoil_database" location. Current pip installations include the xfoil.exe file in the foil_database, there should theoretically be no need to download it manually.
Likewise, in order to utilize any PDT functionality that depends on running XROTOR, the "xrotor.exe" executable file needs to be in the user-set "propeller_database" location. Current pip installations include the xrotor.exe file in the default prop_database, there should theoretically be no need to download it manually.
XROTOR executable and docs (this is actually a link to "CROTOR", which I find is actually the easiest way to obtain a windows-executable of XROTOR)
Example Scripts / Workflow
At a high-level, the current concept for PDT workflow is as follows (after obtaining the required executables and pip-installing the PDT package):
-
Try out the (currently extremely buggy and incomplete) user interface! example0_user_interface.py
-
Obtain normalized airfoil coordinate files from UIUC Database -> save these files into the "airfoil_database" directory
-
Use PDT to run XFOIL across ranges of Reynolds Numbers in order to populate database data for the desired foil sections -> see example1_airfoil_analysis.py
-
Once the required 2D airfoil data is generated, PDT can then be used to automatically generate all the required 2D foil definition parameters required by XROTOR (these "station parameters" are essentially what allow XROTOR to model the performance of well-behaved, arbitrarily-lofted blade geometries) -> see example2_radialstation_creation.py
But this step is also automated & displayed by PDT when the user uses the builtin PDT propeller creation function -> see example3_prop_creation.py
NOTE: It is highly recommended to first run XROTOR using either the 'grad' or the 'pot' vortex formulation in order to get your design "tweaked in" -> these are much faster than the (more accurate) 'vrtx' formulation, which you can then move on to.
-
PDT's Propeller() object instances can generate 3D geometry files including profle xyz coordinate listings, and .stl 3D geometry files -> see example4_stl_generation.py
-
Analyze a given Propeller() instance across a sweep of operating points -> see example5_prop_analysis.py
-
WIP Prop optimization (grid-search style generic optimizer for "optimal" prop design generation by means of maximizing or minimizing a given output / calculated metric based on outputs, optionally taking into account different propeller operating points via the ability to define the propeller's "duty-cycle")
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file propeller_design_tool-0.0.2.tar.gz.
File metadata
- Download URL: propeller_design_tool-0.0.2.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edb46825367e2591cc525aa287a0ba71900bb8b2784bf7f81f9b8f32b47be9cb
|
|
| MD5 |
808508fb4bdccafec984633230ed4c92
|
|
| BLAKE2b-256 |
66c1259874c41fe78c381159d554375637c3bb24651aede498da7781dc1b3685
|
File details
Details for the file propeller_design_tool-0.0.2-py3-none-any.whl.
File metadata
- Download URL: propeller_design_tool-0.0.2-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4851b8d39e2b22a777c8bb001d115a1b392057bb0143f3510d3b51f49e3eba04
|
|
| MD5 |
553292e928f0439804fc0a91fb3b3d74
|
|
| BLAKE2b-256 |
a418d585b9a4554fbeb650e4e252bec9d5269f0d1cbbbb88f44d8cd23b37d681
|