CADETProcess.processModel.Process.add_concentration_profile

CADETProcess.processModel.Process.add_concentration_profile#

Process.add_concentration_profile(unit, time, c, components=None, s=1e-06)[source]#

Add concentration profile to Process.

Parameters:
unitstr

The name of the inlet unit operation.

timenp.ndarray

An array containing the time values of the concentration profile.

cnp.ndarray

An array containing the concentration profile with shape (len(time), n_comp), where n_comp is the number of components specified with the components argument.

componentslist, optional.

Component species for which the concentration profile shall be added. If None, the profile is expected to have shape (len(time), n_comp). If -1, the same (1D) profile is added to all components. The default is None.

sfloat, optional

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

Raises:
TypeError

If the specified unit is not an Inlet unit operation.

ValueError

If the time values in time exceed the cycle time of the Process or if c has an invalid shape.

CADETProcessError

If the number of components in c does not match the number of components in the Process.