WOLFRAM SYSTEM MODELER
BandLimitedWhiteNoiseNoise generator to produce band-limited white noise with normal distribution |
SystemModel["Modelica.Blocks.Noise.BandLimitedWhiteNoise"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
A summary of the common properties of the noise blocks is provided in the documentation of package Blocks.Noise. This BandLimitedWhiteNoise block generates reproducible, random noise at its output according to a band-limited white noise distribution. This is performed by using a normal distribution with mu=0 and sigma = sqrt(noisePower/samplePeriod).
In order for this block to produce meaningful results, you should set the following parameters:
Ideal white noise contains all frequencies, including infinitely high ones. However, these usually cannot be observed in physical systems, since all physical systems in one way or the other contain low-pass filters. It is thus sufficient to generate a limited range of frequency content in the noise signal, as long as it exceeds the frequencies of the subsequent dynamics by a sufficiently high factor (of e.g. 100).
Ideal white noise has a flat, i.e. constant, power spectral density for all frequencies. It has thus infinitely high power, because the total power of a signal can be obtained by integrating the power spectral density over all frequencies. The following three ways to think of the power of a signal may be helpful:
In order to set the correct level of the band-limited white noise power spectral density,
the variance of its normal distribution can thus be influenced directly.
Recalling that the samplePeriod of the noise signal generates frequency content in the
range ±0.5/samplePeriod, the variance must be increased to generate sufficient
total signal power. The total power must match the product of the noisePower and its
frequency bandwidth 1/samplePeriod: signal power = signal variance = noisePower / samplePeriod
.
Example Examples.Noise.DrydenContinuousTurbulence demonstrates how to utilize this block to model wind gust.
samplePeriod |
Value: Type: Period (s) Description: Period for sampling the raw random numbers |
---|---|
enableNoise |
Value: globalSeed.enableNoise Type: Boolean Description: = true: y = noise, otherwise y = y_off |
y_off |
Value: 0.0 Type: Real Description: Sets y = y_off if enableNoise=false (or time<startTime, see below) |
useGlobalSeed |
Value: true Type: Boolean Description: = true: use global seed, otherwise ignore it |
useAutomaticLocalSeed |
Value: true Type: Boolean Description: = true: use automatic local seed, otherwise use fixedLocalSeed |
fixedLocalSeed |
Value: 1 Type: Integer Description: Local seed (any Integer number) |
startTime |
Value: 0.0 Type: Time (s) Description: Start time for sampling the raw random numbers |
localSeed |
Value: Type: Integer Description: The actual localSeed |
noisePower |
Value: 1 Type: Real Description: Power of white noise signal |
y |
Type: RealOutput Description: Connector of Real output signal |
---|
globalSeed |
Type: GlobalSeed Description: Definition of global seed via inner/outer |
---|