ard.farm_aero.templates#

Classes

BatchFarmPowerTemplate(**kwargs)

Template component for computing power using a farm aerodynamics model.

FarmAEPTemplate(**kwargs)

A template component for computing power using a farm aerodynamics model.

FarmAeroTemplate(**kwargs)

Template component for using a farm aerodynamics model.

class ard.farm_aero.templates.FarmAeroTemplate(**kwargs)[source]#

Template component for using a farm aerodynamics model.

A farm aerodynamics component, based on this template, will compute the aerodynamics for a farm with some layout and yaw configuration.

Options#

modeling_optionsdict

a modeling options dictionary

Inputs#

x_turbinesnp.ndarray

a 1D numpy array indicating the x-dimension locations of the turbines, with length N_turbines

y_turbinesnp.ndarray

a 1D numpy array indicating the y-dimension locations of the turbines, with length N_turbines

yaw_turbinesnp.ndarray

a numpy array indicating the yaw angle to drive each turbine to with respect to the ambient wind direction, with length N_turbines

Outputs#

None

initialize()[source]#

Initialization of OM component.

setup()[source]#

Setup of OM component.

compute(inputs, outputs)[source]#

Computation for the OM component.

For a template class this is not implemented and raises an error!

class ard.farm_aero.templates.BatchFarmPowerTemplate(**kwargs)[source]#

Template component for computing power using a farm aerodynamics model.

A farm power component, based on this template, will compute the power and thrust for a farm composed of a given rotor type.

Options#

modeling_optionsdict

a modeling options dictionary (inherited from FarmAeroTemplate)

wind_queryfloris.wind_data.WindRose

a WindQuery objects that specifies the wind conditions that are to be computed

Inputs#

x_turbinesnp.ndarray

a 1D numpy array indicating the x-dimension locations of the turbines, with length N_turbines (inherited from FarmAeroTemplate)

y_turbinesnp.ndarray

a 1D numpy array indicating the y-dimension locations of the turbines, with length N_turbines (inherited from FarmAeroTemplate)

yaw_turbinesnp.ndarray

a numpy array indicating the yaw angle to drive each turbine to with respect to the ambient wind direction, with length N_turbines (inherited from FarmAeroTemplate)

Outputs#

power_farmnp.ndarray

an array of the farm power for each of the wind conditions that have been queried

power_turbinesnp.ndarray

an array of the farm power for each of the turbines in the farm across all of the conditions that have been queried on the wind rose (N_turbines, N_wind_conditions)

thrust_turbinesnp.ndarray

an array of the wind turbine thrust for each of the turbines in the farm across all of the conditions that have been queried on the wind rose (N_turbines, N_wind_conditions)

initialize()[source]#

Initialization of OM component.

setup()[source]#

Setup of OM component.

setup_partials()[source]#

Derivative setup for OM component.

compute(inputs, outputs)[source]#

Computation for the OM component.

For a template class this is not implemented and raises an error!

class ard.farm_aero.templates.FarmAEPTemplate(**kwargs)[source]#

A template component for computing power using a farm aerodynamics model.

A farm power component, based on this template, will compute the power and thrust for a farm composed of a given rotor type.

Options#

modeling_optionsdict

a modeling options dictionary (inherited from FarmAeroTemplate)

wind_rosefloris.wind_data.WindRose

a FLORIS WindRose object that fully specifies the wind conditions on which a farm is to be evaluated

Inputs#

x_turbinesnp.ndarray

a 1D numpy array indicating the x-dimension locations of the turbines, with length N_turbines (inherited from FarmAeroTemplate)

y_turbinesnp.ndarray

a 1D numpy array indicating the y-dimension locations of the turbines, with length N_turbines (inherited from FarmAeroTemplate)

yaw_turbinesnp.ndarray

a numpy array indicating the yaw angle to drive each turbine to with respect to the ambient wind direction, with length N_turbines (inherited from FarmAeroTemplate)

Outputs#

AEP_farmfloat

the AEP of the farm given by the analysis

power_farmnp.ndarray

an array of the farm power for each of the wind conditions that have been queried

power_turbinesnp.ndarray

an array of the farm power for each of the turbines in the farm across all of the conditions that have been queried on the wind rose (N_turbines, N_wind_conditions)

thrust_turbinesnp.ndarray

an array of the wind turbine thrust for each of the turbines in the farm across all of the conditions that have been queried on the wind rose (N_turbines, N_wind_conditions)

initialize()[source]#

Initialization of OM component.

setup()[source]#

Setup of OM component.

setup_partials()[source]#

Derivative setup for OM component.

compute(inputs, outputs)[source]#

Computation for the OM component.

For a template class this is not implemented and raises an error!