CADETProcess.solution.SolutionIO#
- class CADETProcess.solution.SolutionIO(name, time, component_system, solution, c_min)[source]#
Solution representing streams at the inlet or outlet of a
UnitOperation.- Attributes:
aggregated_parametersdict: Aggregated parameters of the instance.
antiderivativeSolutionIO: Antiderivative of this solution.
- c_min
component_coordinatesnp.ndarray: Indices of the components.
- component_system
coordinatesdict[str, np.ndarray]: Coordinates of the Solution.
cycle_timefloat: Cycle time.
derivativeSolutionIO: Derivative of this solution.
dm_dt_interpolatedReturn the dm/dt interpolated signal.
local_purity_componentsnp.ndarray: Local purity of each component.
local_purity_speciesnp.ndarray: Local purity of components.
missing_parameterslist: Parameters that are required but not set.
n_compint: Number of components.
- name
ntint: Number of time steps.
parametersdict: Parameters of the instance.
polynomial_parametersdict: Polynomial parameters of the instance.
required_parameterslist: Parameters that have no default value.
sized_parametersdict: Sized parameters of the instance.
- solution
solution_interpolatedInterpolatedSignal: The interpolated signal.
solution_shapetuple[int]: (Expected) shape of the solution.
- time
total_concentrationnp.ndarray: Total concentration (sum) of all components.
total_concentration_componentsnp.ndarray: Total concentration of components (sum of species).
Methods
Verify if all required parameters are set.
create_fraction([start, end])Create fraction in interval [start, end].
fraction_mass([start, end])Component mass in a fraction interval.
fraction_volume([start, end])Volume of a fraction interval.
integral([start, end])Peak area in a fraction interval.
SolutionIO: Normalize the solution using the transformation function.
offset(offset)Shift solution by an offset.
plot([start, end, components, x_axis_in_minutes])Plot the entire time_signal for each component.
plot_purity([start, end, components, ...])Plot local purity for each component of the concentration profile.
resample([start, end, nt])Resample solution to nt time points.
smooth_data([s, crit_fs, crit_fs_der])Smooth data.
Update solution method.
Update the Transformer.
Notes
The flow_rate attribute is implemented as TimeLine to improve interpolation of signals with discontinuous flow.