windkit.wind_turbine_generator.wtg_power

windkit.wind_turbine_generator.wtg_power(wtg, ws=None, *, interp_method='linear', air_density=None, use_cp=False)[source]

Get power output when the inflow wind speed is ws. If the given wind speed does not have an associated power output, it is linearly interpolated between data points.

Parameters:
  • wtg (xr.Dataset) – WindKit Wind Turbine Generator (WTG) Dataset

  • ws (array_like, floats) – Wind speeds to obtain WTG power for.

  • interp_method (str) – Interpolation method to use between provided table values. Uses xr.DataArray.interp

  • air_density (float, optional) – Air density, defaults to “air_density” from the WTG, or 1.225 kg/m^3 if it’s missing.

  • use_cp (bool) – If set to true, use the ‘power_coefficient’ values in the dataset to calculate the power output. Defaults to False.

Returns:

Power for the given wind speeds

Return type:

xr.DataArray