CADETProcess.modelBuilder.SerialColumns.add_concentration_profile#
- SerialColumns.add_concentration_profile(unit: str, time: ndarray, c: ndarray, components: list[str] | None = None, s: float = 1e-06, interpolation_method: Literal['cubic', 'pchip', None] = 'pchip') None#
Add concentration profile to Process.
- Parameters:
- unitstr
The name of the inlet unit operation.
- timenp.ndarray
1D array containing the time values of the concentration profile.
- cnp.ndarray
2D array containing the concentration profile with shape (len(time), n_comp), where n_comp is the number of components specified in the components argument.
- componentslist[str] | None, 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. Default is None.
- sfloat, optional
Smoothing factor used to generate the spline representation of the concentration 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 an Inlet unit operation.
- ValueError
If the time values in time exceed the cycle time of the Process. If c has an invalid shape. If interpolation_method is unknown.