modelImpureGenerator

Demonstrates the usage of the impure random number generator

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example demonstrates how to use the impureRandom(..) function to generate random values at event instants. Typically, this approach is only used when implementing an own, specialized block that needs a random number generator. Simulation results are shown in the next figure:

Components

TypeNameDefaultDescription
Modelica_Noise.Blocks.Noise.GlobalSeedglobalSeed
NoiseExamples.Utilities.ImpureRandomimpureRandom

Revisions

Date Description
June 22, 2015
Initial version implemented by A. Klöckner, F. v.d. Linden, D. Zimmer, M. Otter.
DLR Institute of System Dynamics and Control