Attributes
Common Attributes of the Solver Class
General Information
The following tables summarize the most important class attributes for performing PBE simulations. These attributes are defined in the _init_base_parameters
method of the BaseSolver
class in base_solver.py
.
Note: Additional attributes may be defined in specific solver implementations.
Simulation Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
\(-\) |
Dimension of the PBE (1=1D, 2=2D, 3=3D). The 3D case has not been fully adapted yet |
|
|
|
Simulation time vector |
|
|
601 |
Total simulation time [second] |
|
|
100 |
Output time interval. If |
|
|
Current working directory |
Baseline path for the simulation |
Agglomeration Kernel Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
1 |
Case for calculation of beta (collision frequency). 1: Chin 1998, 2: Tsouris 1995, 3: Constant kernel, 4: Volume-sum kernel |
|
|
1 |
Case for implementation of size dependency. 1: No size dependency, 2: Model from Soos2007 |
|
|
0.310601 |
Size dependency parameter for Selomulya2003 / Soos2006 |
|
|
1.06168 |
Size dependency parameter for Selomulya2003 / Soos2006 |
|
|
1 |
Case for interaction potentials in DLVO theory. Case 2 is faster, Case 3 uses pre-defined alphas |
|
|
|
Collision efficiency array |
|
|
25.0 |
Correction term for collision frequency describing external factors influence |
Breakage Kernel Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
3 |
Case for breakage rate calculation. 1: Constant, 2: Volume-sum, 3: Jeldres 2018 Power Law, 4: Jeldres 2018 volume fraction |
|
|
3 |
Case for breakage function calculation. 1-2: Leong2023 models, 3-5: Diemer Olson 2002 models |
|
|
|
Process type: |
|
|
2 |
Number of fragments in product function of power law |
|
|
1 |
Parameter describing breakage type in product function of power law |
|
|
0.01 |
1st parameter in power law for breakage rate (1D/2D) |
|
|
1 |
2nd parameter in power law for breakage rate (1D/2D) |
|
|
0.01 |
3rd parameter in power law for breakage rate (2D) |
|
|
1 |
4th parameter in power law for breakage rate (2D) |
|
|
|
Breakage function calculation method: |
|
|
|
Path to MC bond breakage data file |
Particle Size Distribution Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
|
Whether to use .npy file to initialize particle distribution (False = monodisperse primary particles) |
|
|
|
Path to PSD data directory for component 1 |
|
|
|
Path to PSD data directory for component 2 |
|
|
|
Path to PSD data directory for component 3 |
DLVO Theory Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
0.001 |
Surface potential component 1 [V] - NM1 |
|
|
0.001 |
Surface potential component 2 [V] - NM2 |
|
|
-0.04 |
Surface potential component 3 [V] - M |
|
|
10e-21 |
Hamaker constant for NM1-NM1 interaction [J] |
|
|
10e-21 |
Hamaker constant for NM2-NM2 interaction [J] |
|
|
80e-21 |
Hamaker constant for M-M interaction [J] |
Hydrophobic Interaction Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
0 |
Short-range hydrophobic interaction parameter NM1-NM1 [N/m] |
|
|
0 |
Long-range hydrophobic interaction parameter NM1-NM1 [N/m] |
|
|
0 |
Short-range hydrophobic interaction parameter M-NM1 [N/m] |
|
|
0 |
Long-range hydrophobic interaction parameter M-NM1 [N/m] |
|
|
0 |
Short-range hydrophobic interaction parameter M-M [N/m] |
|
|
0 |
Long-range hydrophobic interaction parameter M-M [N/m] |
|
|
0 |
Short-range hydrophobic interaction parameter NM2-NM2 [N/m] |
|
|
0 |
Long-range hydrophobic interaction parameter NM2-NM2 [N/m] |
|
|
0 |
Short-range hydrophobic interaction parameter M-NM2 [N/m] |
|
|
0 |
Long-range hydrophobic interaction parameter M-NM2 [N/m] |
|
|
0 |
Short-range hydrophobic interaction parameter NM1-NM2 [N/m] |
|
|
0 |
Long-range hydrophobic interaction parameter NM1-NM2 [N/m] |
|
|
1.2e-9 |
Range of short-range hydrophobic interactions [m] |
|
|
10e-9 |
Range of long-range hydrophobic interactions [m] |
|
|
2e-9 |
Alternative range criterion for hydrophobic interactions [m] |
Experimental/Process Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
0.01 |
Volume concentration of magnetic particles [Vol-%] |
|
|
1 |
Concentration ratio component 1 (V_NM1/V_M) [-] |
|
|
1 |
Concentration ratio component 2 (V_NM2/V_M) [-] |
|
|
1 |
Shear rate [1/s] |
|
|
1 |
Unit volume used to calculate total particle concentration |
Calculated Parameters
The following parameters are automatically calculated in the _reset_params
method:
Attribute |
Type |
Description |
---|---|---|
|
|
Number of time steps based on |
|
|
Volume concentration of NM1 particles [Vol-%] |
|
|
Volume concentration of NM2 particles [Vol-%] |
|
|
Total volume concentration of component 1 [unit/unit] - NM1 |
|
|
Total volume concentration of component 2 [unit/unit] - NM2 |
|
|
Total volume concentration of component 3 [unit/unit] - M |
|
|
Total number concentration of primary particles component 1 [1/m³] - NM1 |
|
|
Total number concentration of primary particles component 2 [1/m³] - NM2 |
|
|
Total number concentration of primary particles component 3 [1/m³] - M |
|
|
Full path to PSD file for component 1 |
|
|
Full path to PSD file for component 2 |
|
|
Full path to PSD file for component 3 |
DPBESolver Specific Attributes
General Information
The following attributes are specific to the DPBESolver
class and are defined in the __init__
method of dpbe_base.py
. These attributes extend the common BaseSolver
attributes for discrete Population Balance Equation (dPBE) solving.
Discretization Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
|
Discretization scheme: |
|
|
12 |
Grid parameter [-] |
|
|
2 |
Geometric grid ratio (V_e[i] = S*V_e[i-1]). Actual primary particle size is R[1] = ((1+S)/2)**(1/3)*R01 |
|
|
|
Solution algorithm: |
|
|
1000.0 |
Upper volume limit for agglomeration (grid-based) |
Material Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
2.9e-7 |
Basic radius component 1 [m] - NM1 |
|
|
2.9e-7 |
Basic radius component 2 [m] - NM2 |
|
|
2.9e-7 |
Basic radius component 3 [m] - M3 (magnetic component) |
Physical Constants
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
4.0434e-21 |
Boltzmann constant × Temperature [J] (k*T at 293K) |
|
|
4π×10⁻⁷ |
Permeability constant vacuum [N/A²] |
|
|
8.854e-12 |
Permittivity constant vacuum [F/m] |
|
|
80 |
Permittivity material factor [-] |
|
|
1.602e-19 |
Electron charge [C] |
|
|
6.022e23 |
Avogadro number [1/mol] |
|
|
1e-3 |
Viscosity water [Pa*s] |
|
|
Calculated |
Permittivity (EPSR×EPS0) [F/m] |
Process Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
1.0 |
Ionic strength [mol/m³] (converted from mol/L) |
Computational Options
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
|
Whether to precompile FM (Formation Matrix) calculation |
|
|
|
Whether to precompile BF (Breakage Function) calculation |
Submodules
The following submodules are automatically instantiated:
core
: DPBECore instance for core PBE functionalitypost
: DPBEPost instance for post-processingvisualization
: DPBEVisual instance for visualization
PBMSolver Specific Attributes
General Information
The following attributes are specific to the PBMSolver
class and are defined in the __init__
method of pbm_base.py
. These attributes extend the common BaseSolver
attributes for Population Balance Moment (PBM) method solving.
Moment Method Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
5 |
Order parameter where n_order×2 is the order of the moments [-] |
|
|
10 |
Number of additional nodes [-] |
|
|
|
Flag for using Generalized Quadrature Method of Moments |
|
|
|
Method for GQMOM implementation |
|
|
1 |
Exponent for the correction in gaussian-GQMOM |
Integration Tolerance Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
1e-16 |
Minimum absolute tolerance |
|
|
1e-9 |
Scaling factor for absolute tolerance |
|
|
1e-6 |
Relative tolerance |
Runtime Calculated Attributes
The following attributes are calculated during runtime:
Attribute |
Type |
Description |
---|---|---|
|
|
Normalized moments |
|
|
Normalization factors for moments |
|
|
Absolute tolerance array for integration |
|
|
Relative tolerance array for integration |
|
|
Maximum x-coordinate for normalization |
|
|
Calculated moments |
|
|
2D moment indices for CHY or C method |
Submodules
The following submodules are automatically instantiated:
post
: PBMPost instance for post-processingquick_test
: PBMQuickTest instance for quick testingcore
: PBMCore instance for core PBM functionality
MCPBESolver Specific Attributes
General Information
The following attributes are specific to the MCPBESolver
class and are defined in the __init__
method of mcpbe.py
. These attributes extend the common BaseSolver
attributes for Monte Carlo Population Balance Equation solving.
Simulation Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
|
Concentration array of components |
|
|
|
(Mean) equivalent diameter of primary particles for each component [m] |
|
|
|
(Mean) equivalent diameter of primary particles for each component (bi-modal case) [m] |
|
|
1000.0 |
Total amount of particles in control volume (initially) [-] |
|
|
|
Method for fragment distribution: |
|
|
|
Whether to print detailed calculation information |
Initial Condition Parameters
Attribute |
Type |
Default |
Description |
---|---|---|---|
|
|
|
Initial particle size distribution type for each component: |
|
|
|
(Relative) standard deviation of normal distribution (STD = SIG×v) |
|
|
|
Second mode distribution type for bi-modal distributions (None for mono-modal) |
|
|
|
Standard deviation for second mode in bi-modal distributions |
Runtime Variables
The following variables are calculated during initialization:
Attribute |
Type |
Description |
---|---|---|
|
|
Volume matrix where each column represents one particle/agglomerate |
|
|
Volume of primary particles (bi-modal case) |
|
|
Number concentration for each component |
|
|
Number concentration for bi-modal case |
|
|
Total number of primary particles |
|
|
Control volume |
|
|
Total number of primary particles (integer) |
|
|
Total number of primary particles for bi-modal case (integer) |
|
|
Final total number of primary particles in control volume |
|
|
Equivalent diameter calculated from total volume |
|
|
Time array |
|
|
Beta array for collision calculations |
|
|
Expected number of fragments from breakage |
|
|
Breakage rate array |
|
|
Breakage function array |
Process Control Flags
Attribute |
Type |
Description |
---|---|---|
|
|
Whether agglomeration process is active |
|
|
Whether breakage process is active |
Data Storage Arrays
Attribute |
Type |
Description |
---|---|---|
|
|
List storing volume matrices at different time steps |
|
|
List storing control volumes at different time steps |
|
|
Initial volume matrix |
|
|
Initial equivalent diameter |
|
|
List storing initial volume matrices |
|
|
Current step counter |
|
|
Calculation time (set after solving) |
Method Parameters
Additional parameters for breakage methods:
Attribute |
Type |
Description |
---|---|---|
|
|
Relative fragment sizes (1D case) |
|
|
Relative fragment sizes for component 1 (2D case) |
|
|
Relative fragment sizes for component 3 (2D case) |
|
|
Interpolation function for continuous CDF method |