Skip to main content

py_windblade_opa

A python package for Windblade Optimization and Performance Assessment

Author: N. Papadakis.

Scope

This package is intended to provide a set of tools for the optimization and performance assessment of wind turbine blades.

Installation

For Users

If you just want to use py_windblade_opa in your own projects, install the latest stable version from PyPI:

pip install py-windblade-opa

For Developers and Contributors

We offer two ways to set up the development environment. We strongly recommend using uv (the modern method) as it guarantees you are using the exact same dependencies and Python version as the maintainers.

This method automatically handles Python version management and dependency locking.

  1. Clone the repository:
git clone https://github.com/npapnet/py_windblade_opa.git
cd py_windblade_opa
  1. Sync the environment: This command creates the virtual environment, installs the specific Python version required, and sets up the package in editable mode, installing also all the development dependencies.
uv sync --extra dev
  1. Run tests or scripts: You can run commands inside the environment using uv run:
# Run the test suite
uv run pytest


# Run a script
uv run python examples/my_script.py

Option B: Using Conda (Legacy)

If you prefer managing your own environments with Conda, you can install the package in "editable" mode using standard pip.

  1. Clone the repository:
git clone https://github.com/npapnet/py_windblade_opa.git
cd py_windblade_opa
  1. Create and activate your Conda environment:
conda create -n windblade python=3.13
conda activate windblade

Install in editable mode: Note: You must use the [dev] flag to get testing tools like pytest and ruff.

pip install -e .[dev]

Verify Installation To confirm everything is working, run the following command (works for both methods):

python -c "import py_windblade_opa; print(f'Successfully installed version {py_windblade_opa.__version__}')"

Usage

The package is still under development. The following is an example of how to use the package:

import py_windblade_opa as wbo

power = 1000
Cp = 0.45
n_elec = 0.95
v_nom = 10
reqs = Reqs(power_w=power, n_elec=n_elec, v_nom=v_nom, Cp=Cp)

constants = .wbo.Constants()
config = wbo.Config(lambda0=4.8,  no_blades=3, pitch=0)
r_m = wbo.reqs.estimate_blade_r()
blade = wbo.Blade(r_m=r_m, wt_config=config)
blade_calc = wbo.BladeCalc(blade=blade)

blade.main_calculation()
blade_calc.calculate_i_flow(verbosePlot=False)
blade_calc.step3_eleven_coeffs(verbosePlot=False)
blade_calc.step4_coeffs_collection()
blade_calc.step5_rpm_power(verbosePlot=False)
blade_calc.step6_torque_calcs(verbosePlot=True)

plt.show()

Metadata

Release files for py_windblade_opa 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py_windblade_opa 0.9.1
File Size Uploaded Provenance Actions
py_windblade_opa-0.9.1.tar.gz 6.0 MB Without provenance Details for py_windblade_opa-0.9.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py_windblade_opa 0.9.1
File Interpreter ABI Platform Actions
py_windblade_opa-0.9.1-py3-none-any.whl Python 3 none any Details for py_windblade_opa-0.9.1-py3-none-any.whl

Total release size: 6.0 MB

Release files / py_windblade_opa-0.9.1.tar.gz

Download URL py_windblade_opa-0.9.1.tar.gz
Size 6.0 MB
Tags Source
SHA-256 checksum
How to use checksums
7b514814a98d08e4d16fa3e94351fd17599c9449065fa1d2a03c0793e6c55c06
BLAKE2b-256 checksum
How to use checksums
b87fc23d5de9055fa3d90ae056eb88604640de9c60dd3d40ddb008cb04c3182d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / py_windblade_opa-0.9.1-py3-none-any.whl

Download URL py_windblade_opa-0.9.1-py3-none-any.whl
Size 52.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f2676ca91b41f090048441b17cf548a2eef8af37895839deaaa202af7feef6f
BLAKE2b-256 checksum
How to use checksums
456c7fc2708d2136a12e6cf858e50e539e2cce5d71f01b86852c0852e438a8d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for py_windblade_opa 0.9.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page