Returns index of control volumes fluid port for input fluid connectors.
(no remarks)
(no remarks)
(no remarks)
(no remarks)
(no remarks)
(no remarks)
(no validation necessary)
(none)
Model modified (extended so that it works for vectors i_xxx as well) by Carsten Bode (c.bode@tuhh.de), Nov 2018
function getPortSubIndex import TransiEnt.Basics.Functions.findAll; input Integer N; input Integer i_prodIn[:]; input Integer i_prodOut[:]; input Integer i_gridIn[:]; input Integer i_gridOut[:]; output Integer portSubIdx[4, max({size(i_prodIn, 1), size(i_prodOut, 1), size(i_gridIn, 1), size(i_gridOut, 1)})]; end getPortSubIndex;