Learn R Programming

windfarmGA (version 5.0.0)

plot_power_curve: Manufacturer power curve

Description

Linear interpolation of a two-column table (ws, power in kW). Set it with ga_options(power_curve = curve) or options(windfarmGA.power_curve = curve). While a curve is set, park energy is the sum of those kW values instead of Cp * v^3. Cut-in / rated / cut-out still apply only when no table is set. If hub wind stays on the rated plateau after wakes, every layout looks the same - use wind in the rising part of the curve. Supply your own table (manufacturer data); the package does not ship copyrighted curves.

Usage

plot_power_curve(curve = NULL, plot = TRUE)

Value

The interpolated table, invisibly.

Arguments

curve

A data.frame with wind speed and power. Default is the current windfarmGA.power_curve option.

plot

If TRUE, draw the curve. Default is TRUE.

Examples

Run this code
curve <- data.frame(
  ws = c(0, 3, 4, 8, 12, 25, 26),
  power = c(0, 0, 80, 1200, 2000, 2000, 0)
)
plot_power_curve(curve)

Run the code above in your browser using DataLab