- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » band-limited noise
band-limited noise
band-limited noise
Hello,
I need a band-limited noise with a center frequency of 10 Hz. How can I setup such a noise block? I would like to also set the standard deviation and power spectral density.
I currently use the system library noise, but I only get white-noise...
https://build.openmodelica.org/Documentation/Noise.html
Thank you!
Re: band-limited noise
Hello Viatorus,
I can think of two approaches:
1) use the white noise source and filter it. In Modelica.Blocks.Continuous.Filter several filters, including bandpass are defined. This would give you the noise with the correct spectrum
2) define a PSD (power spectral density) in the Noise toolbox. This is more involved, but you have a better control on what you do (so you have to understand it better too.) If you look in Noise.Example.ComparePSD, you find how you can redeclare the PSD. You need the PSD_Interpolation. For this, you have to determine the convolution terms yourself.(google: bandpass filter coefficients).
Hope this helps
Bas
- bjdekruif
- 18 Posts
Re: band-limited noise
Hello Viatorus,
With the filter you just have set the spectrum. Changing the standard deviation can be done by multiplying the output signal. In the Noise library there is an example on how to calculate the std.
Hope it helps
Bas
- bjdekruif
- 18 Posts
Re: band-limited noise
Thank very much you for your help!
With the filter I got my standard variance if I have the right spectral density:
My RNG:
Noise.PRNG MyNoise(redeclare function PSD = Noise.PSD.PSD_WhiteNoise, useSampleBasedMethods = true, redeclare function PDF = Noise.PDF.PDF_Uniform(interval = {-1, 1}, samplePerioad= 0.001)
So interval tell me the upper and lower noise value, but what how can I set a power spectral density like 0.5 N^2 / Hz?
Re: band-limited noise
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » band-limited noise