Skip to main content

A Mann turbulence generator for Python written in Rust

Project description

Mann.rs

DOI PyPI version PyPI downloads GitHub stars GitHub forks

Mann.rs is a high-performance turbulent wind field generator based on the Mann turbulence model, designed for wind turbine and wind farm simulations. It produces three-dimensional coherent wind fields and supports both unconstrained and constrained turbulence generation.

Built in Rust for speed and efficiency, Mann.rs provides seamless Python bindings and a command-line interface for easy integration and scalability into engineering workflows.

Installation

Mann.rs is available for Windows, MacOS, and Linux as a Python package.

pip install mannrs

For more details on the installation process, see the installation Guide.

Usage

Command line

mannrs input.toml

Define your simulation parameters in a TOML file. See the Input file format for details.

Python

from mannrs import Stencil

...

(
    Stencil(**mann_params)    # Define a stencil with Mann parameters
    .constrain(constraints)   # Apply velocity constraints (optional)
    .build()                  # Build the turbulence stencil
    .turbulence(ae, seed)     # Generate turbulent wind field
    .write("out.npz")         # Save windfield to file
)

For a step-by-step walkthrough, visit the Basic usage page.

Contributions

If you have suggestions or issues with Mann.rs, feel free raise an issue in the Mann.rs Github repository. Pull requests are welcome.

Citation

If you want to cite Mann.rs, please use this citation:

Liew, J., Riva, R., & Göçmen, T. (2023). Efficient Mann turbulence generation for offshore wind farms with applications in fatigue load surrogate modelling. Journal of Physics: Conference Series, 2626, 012050. DOI: 10.1088/1742-6596/2626/1/012050

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

mannrs-2.0.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mannrs-2.0.0-cp313-cp313-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86-64

mannrs-2.0.0-cp313-cp313-manylinux_2_28_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

mannrs-2.0.0-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

mannrs-2.0.0-cp312-cp312-manylinux_2_28_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

mannrs-2.0.0-cp311-cp311-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.11Windows x86-64

mannrs-2.0.0-cp311-cp311-manylinux_2_28_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

mannrs-2.0.0-cp310-cp310-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.10Windows x86-64

mannrs-2.0.0-cp310-cp310-manylinux_2_28_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

mannrs-2.0.0-cp39-cp39-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9Windows x86-64

mannrs-2.0.0-cp39-cp39-manylinux_2_28_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

mannrs-2.0.0-cp38-cp38-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8Windows x86-64

File details

Details for the file mannrs-2.0.0.tar.gz.

File metadata

  • Download URL: mannrs-2.0.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for mannrs-2.0.0.tar.gz
Algorithm Hash digest
SHA256 2c04efac55ef5bb1ab04f30c2da293e4a350b9ee7aeb947fe41ae3a0e20691fb
MD5 0549d537bb8b5b3f4c3458000e871a74
BLAKE2b-256 a6d5c139875353fb4b99f1fcb263b21c63b966034e9dff7fba993c4d29a5f5cf

See more details on using hashes here.

File details

Details for the file mannrs-2.0.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: mannrs-2.0.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for mannrs-2.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 74be93fc8d292eff5182c005856082856666526531f984c066c7867aec657b9f
MD5 275430a27e1b32f8b2868aec5a03919d
BLAKE2b-256 ae8ce22d13d7fc789727eea4e449362913016e684dcce66452c75271246711b3

See more details on using hashes here.

File details

Details for the file mannrs-2.0.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mannrs-2.0.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cdb386b66502fda77dd8fefdb8d8d3cf58e7dfbcebb568f04881ddebe146b6ee
MD5 a1508808ade177ab56aa414fa4c1bfb0
BLAKE2b-256 60d1092311d1aebd0a15aee3df71743208a49e7db1943c2e95c2e6b7b7c0e347

See more details on using hashes here.

File details

Details for the file mannrs-2.0.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: mannrs-2.0.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for mannrs-2.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4d2cb2248ed3e2d8189cf51901272136a4393aae5528a759c3fb3bbfc6a88b5f
MD5 55861e9f093e2dad875ef2ab1739e8af
BLAKE2b-256 3ec2e8a396b46aaf9f5cd94cdd171d10acbb588fca33a120a41a79c327ebb642

See more details on using hashes here.

File details

Details for the file mannrs-2.0.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mannrs-2.0.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bb31e7658782178d4f0fb2d7286b23b4b48c87b4e54352c976559d0aac13b722
MD5 21e9d9caee5e769652ffd29e9cd03a9e
BLAKE2b-256 366be7aa2bb3ac7a453beb236fa8ab84d207e9a02ea0565ea14534bd59482022

See more details on using hashes here.

File details

Details for the file mannrs-2.0.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: mannrs-2.0.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for mannrs-2.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d34e83485545d31864b4365d4d8692f811c387b1aa912f445f47020a7d798288
MD5 28bfd3645a536e089e76b1a7bf89d2aa
BLAKE2b-256 fdb5c872ad8b929901369c5488298fb5fd5cb2f00cb1643895587529d8121e96

See more details on using hashes here.

File details

Details for the file mannrs-2.0.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mannrs-2.0.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 39a23bd70ebcc387ec062323df1440febd5404e72d4bae150f3ce1718cd8f0fa
MD5 7474642b3d92dd2d72db3be905afc357
BLAKE2b-256 fb49d73f08a3c3ec33b1fe54d3d27d126b8e1819c4e29e5c115fcb2a69e1ad94

See more details on using hashes here.

File details

Details for the file mannrs-2.0.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: mannrs-2.0.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for mannrs-2.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3ca6b9f2983f172dc7379d47c7053c6b5cbdf28fd47d41fa0c8e2a9bc5f7404d
MD5 bfddb94b210eafaa4952909e4344c4c0
BLAKE2b-256 68cab3c7c6d8104f192b30a17c84b869a1ae1361ba24dab7d48c8493a895d480

See more details on using hashes here.

File details

Details for the file mannrs-2.0.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mannrs-2.0.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 975eca3c4b6003cfdc67646a838f6a2753714a69df7630f499de2e30bd237be3
MD5 fae93da65a8394cc58dbd3a2ebb9db1b
BLAKE2b-256 a1eb388c66fc5420007f7cd92f7e7b2f7810b4172090635f6aba41d7a47da9a1

See more details on using hashes here.

File details

Details for the file mannrs-2.0.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: mannrs-2.0.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for mannrs-2.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fc9bccdcbe5708c77c61cddd41c8b1064abbc1e970d816c2933936e42d4c2d4b
MD5 712491c866837add48dd79384f4208bb
BLAKE2b-256 32fe2fd4c3997d03007f42d321cc1103cc74934816eb97b9bfe520b67591698e

See more details on using hashes here.

File details

Details for the file mannrs-2.0.0-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mannrs-2.0.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b5da2df37b1a8a5357dd4439fe4bb49b4eafd53caf4c66bfafe03a5f2eb22cf8
MD5 2dcbf1b8fe0fb5469c98595dcea64ffe
BLAKE2b-256 096a1cbde64350ee3f16b62fd9b686317fc85870b3dfb08f31a00884456fe958

See more details on using hashes here.

File details

Details for the file mannrs-2.0.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: mannrs-2.0.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for mannrs-2.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 68c1a191bb78bea07a986b40b5f622ed3e4d5edf0951a76157d4af46195b060d
MD5 4d0b298a9a9eb0f6df8f6c141426cab8
BLAKE2b-256 00e94904fe53c322023dd0bee2ffbb6cd62cefcda12652ee93eda08a1b7ec4ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page