pywasp.wasp.potential_aep

pywasp.wasp.potential_aep(pwc, wtg, wind_farm_model='PARK2_onshore', ws_stepsize=1.0, ws_upper_limit=None, ws_lower_limit=0.0, n_subsector=5, site_interp_method='nearest', site_interp_bounds='ignore', turbulence_intensity=None, shear=None, n_cpu_pywake=1)[source]

Calculate Potential Annual Energy Production using wind farm effects from PyWake.

Parameters:
  • pwc (Dataset) – PyWAsP Predicted Wind Climate Dataset containing wind climates for all the turbine locations.

  • wtg (Dataset, wk.WindTurbines) – Wind Turbine Generator as a xr.Dataset or a wk.WindTurbines object containing groups of WTGs and locations. If a xr.Dataset is passed, the PWC locations are assumed to be the same as the turbine locations.

  • wind_farm_model (str, function) – Wind farm model to use for deficit calculations. Can either be a name of a predefined wind farm model: “PARK1”, “PARK2_onshore”, “PARK2_offshore”, or a predefined py_wake wind_farm_model object (wrapped in a ‘functools.partial’ function)

  • ws_stepsize (float, optional) – Wind speed step sizes between wind speed cases, by default 1.0 m/s

  • n_subsector (int, optional) – Number of subsectors to use per sector, by default None Which means 5 subsectors will be used.

  • ws_upper_limit (float, optional) – Upper limit of wind speed range, by default None Which means the upper limit of the wind speed range will be the maximum

  • ws_lower_limit (float, optional) – Lower limit of wind speed range, by default 0.0

  • n_subsector (int, optional) – Number of subsectors to use per sector, by default None Which means 5 subsectors will be used.

  • site_interp_method (str, optional) – The interpolation method to use in py_wake XRSite, by default “nearest”

  • site_interp_bounds (str, optional) – How to handle values outside the site boundary, by default “ignore” Which means values outside the site bondary will not be checked for.

  • turbulence_intensity (DataArray, optional) – Turbulence intensity to use for each location, by default None Which means the turbulence intensity from the PWC will be used. If the turbulence intensity is not in the PWC, it will be added using the turbulence_intensity argument.

  • shear (DataArray, optional) – Shear to use for each location, by default None Which means the shear from the PWC will be used. If the shear is not in the PWC, it will be added using the shear argument.

  • n_cpu_pywake (int, optional) – Number of CPUs to use for the PyWake calculations, by default 1 If n_cpu_pywake is None, the number of CPUs will be set to the number of CPUs available on the machine.

Returns:

Dataset – Potential Annual Energy Production in GWh for each turbine/location and sector.

Raises:

ModuleNotFoundError – If PyWake is not installed.