CADETProcess.processModel.Process.add_flow_rate_profile

CADETProcess.processModel.Process.add_flow_rate_profile#

Process.add_flow_rate_profile(unit, time, flow_rate, s=1e-06)[source]#

Add flow rate profile to a SourceMixin unit operation.

Parameters:
unitstr

The name of the SourceMixin unit operation.

timenp.ndarray

An array containing the time values of the flow rate profile.

flow_ratenp.ndarray

An array containing the flow rate profile.

sfloat, optional

A smoothing factor used to generate the spline representation of the flow rate profile. The default is 1e-6.

Raises:
TypeError

If the specified unit is not a SourceMixin unit operation.

ValueError

If the time values in time exceed the cycle time of the Process.