FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
Passthrough

Simply pass input to output port.

+ Collaboration diagram for Passthrough:

An object to simply pass the input port to the output port. Useful for constructing system abstraction of model collections

Example configuration excerpt

<Lib
LibName = "fhsim_base"
SimObject = "System/Passthrough"
Name = "A"
PortWidth = "2"
/>
...
<Connection
A.In = "2,1"
/>

Input Ports

Name Width Description
In <PortWidth> The input port.

Output Ports

Name Width Description
Out <PortWidth> The width of the signal (input and output ports)

Configuration parameters

Name Width Description
PortWidth 1 The width of the signal (input and output ports)

Initial conditions

There are no initial conditions for this function.

Full example file

<Contents>
<OBJECTS>
<Lib
LibName="base"
SimObject="System/Passthrough"
Name="A"
PortWidth="1"
/>
</OBJECTS>
<INTERCONNECTIONS>
<Connection
A.In="20"
/>
</INTERCONNECTIONS>
<INITIALIZATION>
<InitialCondition
/>
</INITIALIZATION>
<SIMULATION>
<Timing TStart="0" TEnd="2.0"/>
<Integrator Method="RK45_i" NumCores="1" LogStates="1" UseRSSNorm="0">
<StepControl StepMax="0.002" StepMin="0.00000001" AbsTol="1e-3" RelTol="1e-3"/>
</Integrator>
</SIMULATION>
<OBSERVERS>
<FileOutput TOutput="0, 1, 30" Select="objects:all"/>
</OBSERVERS>
</Contents>

This SimObject is referred to as System/Passthrough