windsim: Simulates wind gusts

View source: R/misc.R

windsimR Documentation

Simulates wind gusts

Description

winsim simulates a hih temporal resoltuion time series of wind speeds that it includes wind gust

Usage

windsim(
  u,
  timestepin = 3600,
  timestepout = 1,
  gustduration = 30,
  stability = 2
)

Arguments

u

a vector of wind speeds (m/s)

timestepin

duration of time interval between sucessive values of u (s)

timestepout

duration of time interval between sucessive values of simulated wind speed (s)

gustduration

mean duration of wind gusts

stability

a stability value indicating how variable wind speeds are (1 = very gusty, 3 = fairly stable)

Value

a vector os simulated wind speeds, incoporating gustiness.

Examples

u <- c(3.6, 6.2, 8.2, 9.3)
ws <- windsim(u)
par(mfrow = c(2, 1))
plot(u, type = "l", ylim = c(0,30))
plot(ws, type = "l", ylim = c(0,30))


ilyamaclean/microctools documentation built on Jan. 25, 2023, 5:29 a.m.