CADETProcess.processModel.FlowSheet.remove_connection

CADETProcess.processModel.FlowSheet.remove_connection#

FlowSheet.remove_connection(origin: UnitBaseClass, destination: UnitBaseClass, origin_port: str | None = None, destination_port: str | None = None) None[source]#

Remove connection between units ‘origin’ and ‘destination’.

Parameters:
originUnitBaseClass

UnitBaseClass from which the connection originates.

destinationUnitBaseClass

UnitBaseClass where the connection terminates.

origin_portint

Port from which connection originates.

destination_portint

Port where connection terminates.

Raises:
CADETProcessError

If origin OR destination do not exist in the current flow sheet. If connection does not exists in the current flow sheet.