Marine systems simulation

Divides inputs.

+ Collaboration diagram for Divide:

Divides one input with the other.

Author
Benjamin Scholz
Date
05.09.2007 BSC: Second version.
20.07.2011 KGA: Ported to FhSim 2.0.
25.07.2011 KGA: Added documentation.

Example configuration excerpt

<Lib
LibName = "fhsim_base"
SimObject = "Math/Divide"
Name = "A"
PortWidth = "2"
/>
...
<Connection
A.In1 = "4,2"
A.In2 = "2,4"
/>

Input Ports

Name Width Description
In1 <PortWidth> The input port for the dividend.
In2 <PortWidth> The input port for the divisor.

Output Ports

Name Width Description
Out <PortWidth> The result of the division

Configuration parameters

Name Width Description
PortWidth - The number of elements in the input and output ports

Initial conditions

This SimObject contains no initial conditions.

Full example file

<Contents>
<OBJECTS>
<Lib
LibName="base"
SimObject="Math/Divide"
Name="A"
PortWidth="1"
/>
</OBJECTS>
<INTERCONNECTIONS>
<Connection
A.In1="20"
A.In2="5"
/>
</INTERCONNECTIONS>
<INITIALIZATION>
<InitialCondition
/>
</INITIALIZATION>
<INTEGRATION>
<Engine
IntegratorMethod="2"
NumCores="1"
TOutput="0, 1, 30"
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 Math/Divide