CADETProcess.solution.SolutionIO#
- class CADETProcess.solution.SolutionIO(name, time, solution, c_min)[source]#
Solution representing streams at the inlet or outlet of a
UnitOperation.Notes
The flow_rate attribute is implemented as TimeLine to improve interpolation of signals with discontinuous flow.
- Attributes:
aggregated_parametersdict: Aggregated parameters of the instance.
antiderivativeSolutionIO: Antiderivative of this solution.
- c_min
component_coordinatesnp.ndarray: Indices of the components.
component_systemComponentSystem: ComponentSystem of the Solution object.
coordinatesnp.ndarray: Coordinates of the Solution.
cycle_timefloat: Cycle time.
derivativeSolutionIO: Derivative of this solution.
- dm_dt_interpolated
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_interpolated
solution_shapetuple: (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.
Denormalize the solution using the transformation function.
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.
Normalize the solution using the transformation function.
plot([start, end, components, layout, y_max, ax])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.
reset()Reset component system, time, and solution arrays to their original values.
smooth_data([s, crit_fs, crit_fs_der])Smooth data.
update()Update the solution.
Update the transforms.