Marine systems simulation

Normally distributed random numbers.

+ Collaboration diagram for Random:

Generates random numbers (normally distributed). The user must specify the type of random (constant or variable).

An example of a time variable random number generator.
Author
Benjamin Scholz
Date
11.09.2007 BSC: Initial version.
19.07.2011 KGA: Updated to FhSim 2.0 and documented
<Lib
LibName = "fhsim_base"
SimObject = "Src/Random"
Name = "random"
RandomType = "VariableRandom"
RandomMin = "0.2"
RandomMax = "0.8"
/>

Input Ports

This function has no inputs.

Output Ports

Name Width Description
Out <PortWidth> The output signal
OutDot <PortWidth> The derivative of the output signal

Configuration parameters

Name Width Description
PortWidth The number of elements in the signal.
RandomType 1

RandomMin <PortWidth>

RandomMax <PortWidth>

Initial conditions

There are no initial conditions for this function.

Full example file

<Contents>
<OBJECTS>
<Lib
LibName="base"
SimObject="Src/Random"
Name="RandCons"
RandomType="ConstRandom"
RandomMin="-10"
RandomMax="3"
/>
<Lib
LibName="base"
SimObject="Src/Random"
Name="RandVar"
RandomType="VariableRandom"
RandomMin="0"
RandomMax="7"
/>
</OBJECTS>
<INTERCONNECTIONS>
<Connection
/>
</INTERCONNECTIONS>
<INITIALIZATION>
<InitialCondition
/>
</INITIALIZATION>
<INTEGRATION>
<Engine
IntegratorMethod="2"
NumCores="1"
TOutput="0, 0,1,2,3, 31"
LogStates ="1"
stepsize ="0"
HMax="0.002"
HMin="0.00000001"
AbsTol="1e-3" RelTol="1e-3"
UseRSSNormInsteadOfInfNorm="0"
FileOutput="objects:all"
/>
</INTEGRATION>
</Contents>

This SimObject is referred to as Src/Random