wind-python / windpowerlib

The windpowerlib is a library to model the output of wind turbines and farms.
https://oemof.org/
MIT License
332 stars 105 forks source link

Creating unphysical instances of WindTurbine class #89

Closed vezeli closed 4 years ago

vezeli commented 4 years ago

With the current API nothing prevents a user from creating a nonphysical wind turbine instance, i.e., wind turbine that has hub_height shorter than 0.5*_rotordiameter. I would suggest raising ValueError with a useful message in case this happens, what do you think?

I wrote a small fix that passes all the existing test and adds new. If this is something you would like to review, and see fixed, I could easily put it in a PR?

uvchik commented 4 years ago

Go ahead. Thank you.