CADETProcess.processModel.FlowSheet.get_port_index#
- FlowSheet.get_port_index(unit: UnitBaseClass, port: str) int[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
- Returns:
- port_indexint
Returns the port index of the port of the unit_operation.
- Raises:
- CADETProcessError
If unit or port is not in the current flow sheet.