This function pre-computes Gaussian wind speeds and stores them in a 3D array, similar to voxels. Using that 'table', wind speeds can be looked up very quickly, which makes Gaussian wake feasible during WFLO runs.
GenerateGauss(u = 8, refHeight = 10, maxX = 500, resY = 100,
resZ = 100, Verbose = TRUE)
GenerateGauss
returns the three-dimensional array containing wind speeds.
measured wind speed at reference height. Will mostly be measured in meters per second.
reference height in meters. This is the height at which the incoming wind speed u is measured.
the number of steps down the x axis for which to compute the model.
the number of steps along the y axis for which to compute the model. Note that as y may take negative values, the resolution space should be chosen not too small, here. If, e.g., resY = 100, this means that y may take values from -50 to 50, which may be too low a resolution in some cases.
the number of steps up the z axis for which to compute the model.
selectes whether the function displays status reports during computation, as it may take some time, dependent on the resolution setting.
Carsten Croonenbroeck
Users may choose to compute a rather fine resolution run over night and then save the returned object so it can be loaded in future sessions. The Gaussian wake model is loosely based on the initial contribution by Bastankhah & Porte-Agel (2014).
Bastankhah, M., & Porte-Agel, F. (2014). A new analytical model for wind-turbine wakes. Renewable Energy, 70, 116-123.
Use GaussWS
for a convenience function to look-up the values from the returned array. See QuickGauss3D
for the same algorithm, immediately returning the wind speed at one single point only.
if (FALSE) {
Gauss <- GenerateGauss(maxX = 500, resY = 1000, resZ = 1000)
}
Run the code above in your browser using DataLab