optframework.dpbe.dpbe_base module
Created on Thu Jul 18 09:53:09 2024
@author: Administrator
- class optframework.dpbe.dpbe_base.DPBESolver(dim, t_total=601, t_write=100, t_vec=None, load_attr=True, config_path=None, disc='geo', **attr)[source]
Bases:
BaseSolver
A discrete population balance equation (dPBE) solver for 1D and 2D particle systems.
This class is responsible for initializing ,solving and post-processing population balance equations (PBE) in 1D or 2D, depending on the specified dimensionality. It integrates core PBE functionality with visualization, post-processing, and magnetic separation capabilities by dynamically binding methods from external modules.
Note
This class uses the bind_methods_from_module function to dynamically bind methods from external modules. Some methods in this class are not explicitly defined here, but instead are imported from other files. To fully understand or modify those methods, please refer to the corresponding external file.
Parameters
- dimint
The dimensionality of the PBE problem (1 for 1D, 2 for 2D).
- t_totalint, optional
The total process time in second. Defaults to 601.
- t_writeint, optional
The frequency (per second) for writing output data. Defaults to 100.
- t_vecarray-like, optional
A time vector directly specifying output time points for the simulation.
- load_attrbool, optional
If True, loads attributes from a configuration file. Defaults to True.
- config_pathstr, optional
The file path to the configuration file. If None, the default config path is used.
- discstr, optional
The discretization scheme to use for the PBE. Defaults to ‘geo’.
- attrdict, optional
Additional attributes for PBE initialization.