Marine systems simulation

Displays the simulation or real time and the real duration.

+ Collaboration diagram for Clock:

Displays the current simulation time and the duration of the simulation. The clock object is defined through its parameters, which give the kind of time and the port widths.

Author
Benjamin Scholz
Date
12.09.2007 BSC: Initial version.
19.07.2011 KGA: Updated to FhSim 2.0 and documented

Example configuration excerpt

<Lib
LibName = "fhsim_base"
SimObject = "Src/Clock"
Name = "clck"
/>

Input Ports

This function has no inputs.

Output Ports

Name Width Description
SimTime 1

The simulation time in seconds.

ElapsedSimTime 1

The elapsed simulation time in seconds

WallTime 3

The wall clock time as hour, minute, second

ElapsedWallTime 3

The elapsed wall clock time as hour, minute, second

Configuration parameters

This function has no parameters.

Initial conditions

There are no initial conditions for this function.

Full example file

<Contents>
<OBJECTS>
<Lib
LibName="base"
SimObject="Src/Clock"
Name="A"
/>
</OBJECTS>
<INTERCONNECTIONS>
<Connection
/>
</INTERCONNECTIONS>
<INITIALIZATION>
<InitialCondition
/>
</INITIALIZATION>
<INTEGRATION>
<Engine
IntegratorMethod="2"
NumCores="1"
TOutput="0, 0,2,10,15, 100"
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/Clock