Marine systems simulation

A Bias, or offset,which is given as a parameter, is added to the input.

+ Collaboration diagram for Bias:

A Bias (offset) is added to the input.The bias can be applied equally across the input as a scalar (single bias value) or individually for each component of the input signal (<PortWidth> bias values).

Author
Benjamin Scholz
Date
15.08.2007 BSC: Initial version.
20.07.2011 KGA: Ported to 2.0

Example configuration excerpt

<Lib
LibName = "fhsim_base"
SimObject = "Math/Bias"
Name = "A"
Bias = "3"
/>
...
<Connection
A.In = "2"
/>

Input Ports

Name Width Description
In <PortWidth> The input port

Output Ports

Name Width Description
Out <PortWidth> The value of "In" plus [Bias]

Configuration parameters

Name Width Description
PortWidth 1 The number of elements in the signal.
Quan <PortWidth> Legacy name
Bias <PortWidth> Overrides <Quan>

Initial conditions

This SimObject contains no initial conditions.

Full example file

<Contents>
<OBJECTS>
<Lib
LibName="base"
SimObject="Math/Bias"
Name="A"
Bias="3"
/>
</OBJECTS>
<INTERCONNECTIONS>
<Connection
A.In="2"
/>
</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/Bias