CADETProcess.modelBuilder.MRSSR.add_flow_rate_profile

CADETProcess.modelBuilder.MRSSR.add_flow_rate_profile#

MRSSR.add_flow_rate_profile(unit: str, time: ndarray, flow_rate: ndarray, s: float = 1e-06, interpolation_method: Literal['cubic', 'pchip', None] = 'pchip') None#

Add flow rate profile to a SourceMixin unit operation.

Parameters:
unitstr

The name of the SourceMixin unit operation.

timenp.ndarray

1D array containing the time values of the flow rate profile.

flow_ratenp.ndarray

1D array containing the flow rate values over time.

sfloat, optional

Smoothing factor used to generate the spline representation of the flow rate profile. Default is 1e-6.

interpolation_methodLiteral[“linear”, “cubic”, “pchip”, None], optional

The interpolation method to use. Options: - “cubic” : Cubic spline interpolation. - “pchip” : Piecewise cubic Hermite interpolation (default). - None : No interpolation, use raw time data.

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.