optframework.kernel_opt.opt_core_multi module

Created on Mon Dec 11 09:05:42 2023

@author: px2030

class optframework.kernel_opt.opt_core_multi.OptCoreMulti[source]

Bases: OptCore

A specialized optimization core class that handles the use of 1D data to assist in the optimization of 2D data. Inherits from the OptCore class and extends its functionality to manage and calculate population balance equations (PBE) for both 1D and 2D systems.

calc_delta(params_in, x_uni_exp, data_exp)[source]

Calculate the total delta (error) for both 2D and 1D populations (NM and M). The final delta is a weighted sum of the 2D delta and the deltas from the two 1D cases. If any of the population calculations fail to converge, a large delta value (10) is returned to indicate failure.

Parameters

params_indict

The input parameters for PBE.

x_uni_explist of arrays

A list containing the unique particle sizes from the experimental data for 2D, NM, and M populations.

data_explist of arrays

A list containing the experimental PSD data for 2D, NM, and M populations.

Returns

float

The total delta value representing the error between the experimental and simulated data.

calc_all_pop(params=None, t_vec=None)[source]

Calculate the population balance equations (PBE) for both 1D and 2D populations.

Parameters

paramsdict, optional

The parameters used to calculate the PBE.

t_vecarray-like, optional

The time vector for the PBE calculations.