CADETProcess.processModel.FlowSheet.add_unit

CADETProcess.processModel.FlowSheet.add_unit#

FlowSheet.add_unit(unit: UnitBaseClass, feed_inlet: bool = False, eluent_inlet: bool = False, product_outlet: bool = False) None[source]#

Add unit to the flow sheet.

Parameters:
unitUnitBaseClass

UnitBaseClass object to be added to the flow sheet.

feed_inletbool

If True, add unit to feed inlets.

eluent_inletbool

If True, add unit to eluent inlets.

product_outletbool

If True, add unit to product outlets.

Raises:
TypeError

If unit is no instance of UnitBaseClass.

CADETProcessError

If unit already exists in flow sheet. If n_comp does not match with FlowSheet.

See also

remove_unit