Marine systems simulation

Generate square waves pulses at regular intervals.

+ Collaboration diagram for Pulse:

Generates a square wave pulse at regular intervals. It can be configured with amplitude, period, pulse width, phase delay.

An example of a square wave pulse.
Author
Benjamin Scholz
Date
06.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/Pulse"
Name = "pulse"
PortWidth = "1"
Amplitude = "1"
Bias = "0.4"
Delay = "2"
RiseTime = "0.4"
Width = "1"
Period = "3"
/>

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 1 The number of elements in the signal.
Amplitude <PortWidth>

Period <PortWidth>

Width <PortWidth>

RiseTime <PortWidth>

Delay <PortWidth>

Bias <PortWidth>

Initial conditions

There are no initial conditions for this function.

Full example file

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