You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If inconsistent initial values for the concentration in the bulk and solid phase are provided, while binding follows rapid equilibrium, CADET should compute corrected initial concentrations that satisfy the algebraic and differential equations (see Explanation). The simulation should then proceed using these newly calculated initial concentrations.
Actual Behavior
When the flow rate is nonzero at $t=0$, the simulation crashes for the CSTR and LRM.
Examining the debug information suggests that not all entries in the state vector $y$ are updated after computing the consistent initial values.
If $flowout=0$, the affected entries remain zero, so this issue does not impact the simulation. However, when the flow rate is nonzero, the incorrect values cause a crash.
Debug information from simulation with concentration c_init = 1q_init = 3 and $f_{in} = f_{out} = 0.1$ (not consistent) [Debug: integrate::1138] ==========> Consistency error post Full: 0.333333 [Debug: integrate::1153] y = [0.5,0.5,1.33333,2.66667,1,1,0.5,1]; [Debug: integrate::1154] yDot = [0,0,-1.66667e-05,-3.33333e-05,0,-1.66667e-05,0,-1.66667e-05];
Debug information from simulation with concentration c_init = 4/3q_init = 8/3$f_{in} = f_{out} = 0.1$ (consistent) [Debug: integrate::1138] ==========> Consistency error post Full: 2.22045e-16 [Debug: integrate::1153] y = [0.5,0.5,1.33333,2.66667,1,1.33333,0.5,1.33333]; [Debug: integrate::1154] yDot = [0,0,-1.66667e-05,-3.33333e-05,0,-1.66667e-05,0,-1.66667e-05];
Debug information from simulation with concentration c_init = 1q_init = 3$f_{in} = f_{out} = 0.0$ (not consistent) [Debug: integrate::1138] ==========> Consistency error post Full: 0 [Debug: integrate::1153] y = [0.5,0,1.33333,2.66667,1,0,0,0]; [Debug: integrate::1154] yDot = [0,0,-0,0,-0,0,0,0];
Expected Behavior
If inconsistent initial values for the concentration in the bulk and solid phase are provided, while binding follows rapid equilibrium, CADET should compute corrected initial concentrations that satisfy the algebraic and differential equations (see Explanation). The simulation should then proceed using these newly calculated initial concentrations.
Actual Behavior
When the flow rate is nonzero at$t=0$ , the simulation crashes for the CSTR and LRM.
Examining the debug information suggests that not all entries in the state vector$y$ are updated after computing the consistent initial values.
If$flowout=0$ , the affected entries remain zero, so this issue does not impact the simulation. However, when the flow rate is nonzero, the incorrect values cause a crash.
Debug information from simulation with concentration$f_{in} = f_{out} = 0.1$ (not consistent)
c_init = 1
q_init = 3
and[Debug: integrate::1138] ==========> Consistency error post Full: 0.333333 [Debug: integrate::1153] y = [0.5,0.5,1.33333,2.66667,1,1,0.5,1]; [Debug: integrate::1154] yDot = [0,0,-1.66667e-05,-3.33333e-05,0,-1.66667e-05,0,-1.66667e-05];
Debug information from simulation with concentration$f_{in} = f_{out} = 0.1$ (consistent)
c_init = 4/3
q_init = 8/3
[Debug: integrate::1138] ==========> Consistency error post Full: 2.22045e-16 [Debug: integrate::1153] y = [0.5,0.5,1.33333,2.66667,1,1.33333,0.5,1.33333]; [Debug: integrate::1154] yDot = [0,0,-1.66667e-05,-3.33333e-05,0,-1.66667e-05,0,-1.66667e-05];
Debug information from simulation with concentration$f_{in} = f_{out} = 0.0$ (not consistent)
c_init = 1
q_init = 3
[Debug: integrate::1138] ==========> Consistency error post Full: 0 [Debug: integrate::1153] y = [0.5,0,1.33333,2.66667,1,0,0,0]; [Debug: integrate::1154] yDot = [0,0,-0,0,-0,0,0,0];
Steps to Reproduce the Problem
Run the provided calculation script:
Reproduction Script
Specifications
The text was updated successfully, but these errors were encountered: