Skip to main content

Pip installable hawc2 models

Project description

HAWC2 Models

Collection of pip-installable hawc2 models.

Installation

pip install hawc2models

Example

from hawc2models import IEA22MW, DTU10MW

# IEA 22MW Reference turbine
htc = IEA22MW(folder='IEA-22-280-RWT')

# specific version
htc = IEA22MW(folder='IEA-22-280-RWT_v1.0.1', version='refs/tags/v1.0.1')

# DTU10MW Reference wind turbine
htc = DTU10MW(folder='DTU10MW')

Background

Current status

We have reference models in different locations, e.g:

https://www.hawc2.dk/models https://gitlab.windenergy.dtu.dk/rwts/dtu-10mw-rwt (frza’s model source) https://gitlab.windenergy.dtu.dk/hawc-reference-models (rink’s group with models (e.g. a copy of dtu10mw) and utils) https://github.com/IEAWindSystems (IEA3.4, 10, 15, 22)

Moreover, we have copies of the dtu10mw in the test_files folder of wetb, pytest_hawc2, hawc2lib, etc.

The models have very different sets of sensors. IEA22MW, for instance, has ~2000 aerodynamic sensors, which is just slowing down simulations for most users.

dtu10mw.py (https://gitlab.windenergy.dtu.dk/HAWC2/pytest_hawc2/-/blob/master/test_files/DTU10MW/dtu10mw.py?ref_type=heads) contains functionality to

  • Set tilt, cone, yaw
  • Set fixed pitch and rotor speed
  • Make blades stiff
  • Make blades straight
  • Set aero methods: aero_calc, induction, tiploss, dynstall
  • Set wind: wsp, tint, turb_format, shear
  • Set gravity

https://gitlab.windenergy.dtu.dk/hawc-reference-models has functionality to:

Vision

  • From roadmap
    • Reference model with full IEC 61400 DLB data set + post-processing
    • Example-model-library (exercises/walk-throughs)
    • Comparisons with measurements
  • From users’ perspective:
    • One place to find all (up-to-date) HAWC2 reference models or links to source repositories?
    • Model similarity? (same kind of output, wind, aerodynamic, tiploss, tower shadow, turbulence, controllers?)
    • Newest controllers?
    • Including hs2 section
    • Step and turb?
    • Picture of model
    • DLB Reference loads?
    • Our and/or users comments/issues regarding the models? e.g.  DTU10MW has aerodynamic discontinuties along blade due to change of profiles  IEA22MW uses 100 aerodynamic calculation points because…”
  • From test framework perspective
    • Pip installable
    • Download models from source repositories. Consistent or newest version?
    • Update dll’s?
    • Features as in dtu10mw.py. For all or just a subset?
  • Other considerations
    • Should we try to change/fix the source repositories (e.g. reduce the number of sensors of the IEA22MW) or just provide a website with “our” versions?

Open questions

  • Where should model source files be stored
  • How to obtain/download control dlls
  • How to handle updates of control dlls and models
  • What is a standard model (wsp, turbulence, controller/fixed)
  • Which standard sensors should exist

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

hawc2models-0.0.3.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

hawc2models-0.0.3-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file hawc2models-0.0.3.tar.gz.

File metadata

  • Download URL: hawc2models-0.0.3.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for hawc2models-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ac7d264af567d735ef21c669dc94ad5f46b03372b6c22d0f5433fb8a7ea5dcac
MD5 1c87a8780030614a4f10a7d812b439e7
BLAKE2b-256 fd6eb8511f0d92c4b61786479feca6e3454efc0d5a625a847a79892cde865832

See more details on using hashes here.

File details

Details for the file hawc2models-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: hawc2models-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for hawc2models-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 407c116fab2424148674f42c29f643906da4fb16e1b02fca611c16a410f99c05
MD5 e0561ed584831690735c0222975ff857
BLAKE2b-256 8194b75ed5c669b7addbdd1735bf8be2484f82957851accb014bc14f14448c64

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