Attempt Newton solution of steady-state problem...
***********************************************************************
CanteraError thrown by MultiNewton::step:
Jacobian is singular for domain flame, component soot at point 0
(Matrix row 5)
***********************************************************************
Traceback (most recent call last):
File "diffusion_b.py", line 67, in <module>
f.solve(loglevel, auto=True)
File "C:\Users\Ewald\Anaconda3\envs\diffusion\lib\site-packages\cantera\onedim.py", line 914, in solve
super().solve(loglevel, refine_grid, auto)
File "interfaces\cython\cantera\onedim.pyx", line 992, in cantera._cantera.Sim1D.solve
cantera._cantera.CanteraError: Could not find a solution for the 1D problem
f.soot_enabled in my "diffusion_b.py" example being set to true or not.Ewald,
What is the equation you are intending to solve at the left and right boundaries? The error is because the equation that you have right now,
rsd[index(c_offset_S,0)] = m_soot_left;
does not depend on any value in the state vector x. If you want to impose a fixed boundary value, then your residual equation should be for the difference between the desired and actual values at the boundary. This would look something more like
rsd[index(c_offset_S, 0)] = m_soot_left - N_p(x, 0);
And of course, you would need to do something similar for the right boundary.
Regards,
Ray
Re-evaluating Jacobian, since no damping coefficient
could be found with this Jacobian.
0 1.00000 0.00000 19.00104 10.59517 10.45733 103 1/20
At limits.
Re-evaluating Jacobian, since no damping coefficient
could be found with this Jacobian.
At limits.
...failure.
0 1.49e-13 4.743Damped Newton iteration:
-----------------------------------------------------------------
m F_damp F_bound log10(ss) log10(s0) log10(s1) N_jac Age
-----------------------------------------------------------------
ERROR: solution out of bounds.
domain 1: eField(1) = 1.000e+00 ( 0.000e+00, 0.000e+00)
ERROR: solution out of bounds.
domain 1: soot(2) = 3.000e+02 ( 0.000e+00, 0.000e+00)
***********************************************************************
CanteraError thrown by Phase::setTemperature:
temperature must be positive. T = nan
***********************************************************************
Traceback (most recent call last):
File "DIFFUSION_FLAME.py", line 67, in <module>
f.solve(loglevel, auto=True)
File "C:\Users\Ewald\Anaconda3\envs\diffusion\lib\site-packages\cantera\onedim.py", line 914, in solve
super().solve(loglevel, refine_grid, auto)
File "interfaces\cython\cantera\onedim.pyx", line 935, in cantera._cantera.Sim1D.solve
File "C:\Users\Ewald\Anaconda3\envs\diffusion\lib\site-packages\cantera\onedim.py", line 855, in set_initial_guess
self.gas.equilibrate('HP')************ Solving on 6 point grid with energy equation enabled ************
..............................................................................
Attempt Newton solution of steady-state problem...
***********************************************************************
CanteraError thrown by MultiNewton::step:
Jacobian is singular for domain flame, component soot at point 3
(Matrix row 467)
***********************************************************************
******** Initial solve failed; Retrying with energy equation disabled ********
..............................................................................
Attempt Newton solution of steady-state problem...
Maximum Jacobian age reached (20)
***********************************************************************
CanteraError thrown by MultiNewton::step:
Jacobian is singular for domain flame, component soot at point 3
(Matrix row 467)
***********************************************************************
*********** Solving on 12 point grid with energy equation enabled ************
..............................................................................
Attempt Newton solution of steady-state problem...
***********************************************************************
CanteraError thrown by MultiNewton::step:
Jacobian is singular for domain flame, component soot at point 1
(Matrix row 233)
***********************************************************************Re-evaluating Jacobian, since no damping coefficient
could be found with this Jacobian.