CADETProcess.solution.SolutionIO

Contents

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_parameters

dict: Aggregated parameters of the instance.

antiderivative

SolutionIO: Antiderivative of this solution.

c_min
component_coordinates

np.ndarray: Indices of the components.

component_system

ComponentSystem: ComponentSystem of the Solution object.

coordinates

np.ndarray: Coordinates of the Solution.

cycle_time

float: Cycle time.

derivative

SolutionIO: Derivative of this solution.

dm_dt_interpolated
local_purity_components

np.ndarray: Local purity of each component.

local_purity_species

np.ndarray: Local purity of components.

missing_parameters

list: Parameters that are required but not set.

n_comp

int: Number of components.

name
nt

int: Number of time steps.

parameters

dict: Parameters of the instance.

polynomial_parameters

dict: Polynomial parameters of the instance.

required_parameters

list: Parameters that have no default value.

sized_parameters

dict: Sized parameters of the instance.

solution
solution_interpolated
solution_shape

tuple: (Expected) shape of the solution.

time
total_concentration

np.ndarray: Total concentration (sum) of all components.

total_concentration_components

np.ndarray: Total concentration of components (sum of species).

Methods

check_required_parameters()

Verify if all required parameters are set.

denormalize()

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()

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_transform()

Update the transforms.