# load and prepare data
data(winddata)
set1 <- createSet(height=40, v.avg=winddata[,2], v.std=winddata[,5],
dir.avg=winddata[,14])
set2 <- createSet(height=30, v.avg=winddata[,6], v.std=winddata[,9],
dir.avg=winddata[,16])
ts <- formatTS(winddata[,1])
neubuerg <- createMast(time.stamp=ts, loc=NULL, desc=NULL, set1, set2)
neubuerg <- clean(neubuerg)
# calculate wind profile
neubuerg.wp <- profile(neubuerg, v.set=c(1,2), dir.set=1)
# load power curve
pw.56 <- readPC(system.file(package="bReeze", "powercurves",
"PowerWind_56_900kW.wtg"))
# calculate AEP
neubuerg.aep <- aep(neubuerg.wp, pw.56, 71)
# calculate AEP with site specific air density and availability of 97%
neubuerg.aep.2 <- aep(profile=neubuerg.wp, pc=pw.56, hub.h=71, rho=1.195,
avail=0.97)
# calculate total AEP using sectoral profiles
neubuerg.aep.3 <- aep(profile=neubuerg.wp, pc=pw.56, hub.h=71,
sectoral=TRUE)
# check how air density, turbine availability and sectoral profiles
# influence the AEP
neubuerg.aep
neubuerg.aep.2
neubuerg.aep.3
# calculate AEP for 1 m/s speed bins and without binning
neubuerg.aep.4 <- aep(profile=neubuerg.wp, pc=pw.56, hub.h=71,
bins=seq(0,25))
neubuerg.aep.5 <- aep(profile=neubuerg.wp, pc=pw.56, hub.h=71, bins=NULL)
# compare output
# note: bins exceeding maximum wind speed of the data dropped
neubuerg.aep.4
neubuerg.aep.5
Run the code above in your browser using DataLab