CADETProcess.processModel.FlowSheet.get_port_index

CADETProcess.processModel.FlowSheet.get_port_index#

FlowSheet.get_port_index(unit, port)[source]#

Return the port index of a unit

Parameters:
unitUnitBaseClass

UnitBaseClass object of wich port index is to be returned

portstring

Name of port which index is to be returned

Raises
——
CADETProcessError

If unit or port is not in the current flow sheet.

Returns
——-
port_indexint

Returns the port index of the port of the unit_operation.