blockRayleigh

Rayleigh wind distribution

Information

This block provides a discrete velocity distribution in the time domain according to a Rayleigh distribution

where is the approximate mean velocity of the distribution. The greater the number of velocity intervals and the greater the maximum velocity, , is, the more accurate is the approximation of the mean velocity. The velocity interval is determined by:


The sum of all probabilities is equal to one.

The boolean parameter increaseDecrease indicates whether

  • false: discrete velocities over time are only increasing in each period , or
  • true: discrete velocities over time are alternatingly increasing and decreasing, in every other period .

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.VelocityvMean5Mean velocity
Modelica.Units.SI.VelocityvMax20Maximum velocity (v<=vMax)
Integern10Number of intervals
Modelica.Units.SI.TimeT100Time period
BooleanincreaseDecreasefalseIf true, altering velocity increase and decrease after one period
Modelica.Units.SI.VelocitydvvMax/nVelocity increment
Modelica.Units.SI.Velocity[n]vDiscretearray(k*dv for k in 1:n)Discrete velocities
Real[n]rayleigharray(dv*pi/2*vDiscrete[k]/vMean^2*exp(-pi/4*vDiscrete[k]^2/vMean^2) for k in 1:n)Rayleigh probaility
Realrayleigh_sumsum(rayleigh)Sum of all rayleigh probabilities
Real[n]probabilityrayleigh/rayleigh_sumProbabilities of velocities
Modelica.Units.SI.Time[n]tDiscreteprobability*TDiscrete durations

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutputvWind velocity

Components

TypeNameDefaultDescription
IntegercounterCounter of repeating velocity distribution after time T
IntegerindexVelocity index
IntegerincrementIncrement of index
Modelica.Units.SI.TimetNextTime of next event
Modelica.Units.SI.VelocityvelocityVelocity