Dear Stefano and Daniel,
Thank you for your valuable suggestions on this issue! After a few more runs at different resolutions, this is what I find:
1.) Increasing atol to 1e-10 and even 1e-5 still led to the high resolution runs crashing, although the crash occurs later and later after the sink is formed. The error at the time of the crash is same - 'wrong exit solver status'. These runs used react_primordial_wD, where Deuterium and its associated species/reactions are also included in the Chemistry.
2.) I did the same set of runs with the chemical network file react_primordial3 which is the most stable and double-checked, as mentioned in an earlier thread. Further, react_primordial3 has no species or reactions associated with Deuterium. None of the runs with this chemical network have failed. They are still running and have already passed the time by a marge margin, when the runs in step 1 crashed.
I tend to think that certain reaction(s) with Deuterium seem not to be converging at higher densities/temperatures. Do you suspect any issues with the react_primordial_wD network file? Additionally, in all the runs (step 1 and 2), once the sink particle is formed and starts accreting, the temperature in the cells which constitute the accretion shock around the sink rises to a few thousand Kelvin. The temperatures do not increase beyond 10000 K because ATOMIC cooling perhaps gets stronger. Can this temperature rise be an issue with certain chemical reactions in the react_primordial_wD file?
From the 0D test in krome (krome/tests/collapse) with these reaction networks, I find that neither of the runs crash, and run till they reach the maximum density allowed. Following is my initial setup for these runs:
Options.opt:
-n networks/react_primordial3
-cooling=H2,COMPTON,CHEM,ATOMIC,CIE
-heating=COMPRESS,CHEM
-H2opacity=RIPAMONTI
-gamma=FULL
-n networks/react_primordial3
test.f90:
!INITIAL CONDITIONS
krome_redshift = 30d0 !redshift
ntot = 9086d0 !d0 !total density, cm-3
Tgas = 260d0 !1d2 !temperature, K
!initialize KROME (mandatory)
call krome_init()
!species default, cm-3
x(:) = 1d-40
!set individual species
x(KROME_idx_H) = 0.99918686d0*ntot
x(KROME_idx_H2) = 4.0849d-4*ntot
x(KROME_idx_E) = 8.80875d-7*ntot
x(KROME_idx_Hk) = 5.3591d-14*ntot
!x(KROME_idx_Dk) = 1.8817d-18*ntot
x(KROME_idx_Hj) = 8.80875d-7*ntot
x(KROME_idx_HE) = 0.083d0*ntot
!x(KROME_idx_D) = 2.59249d-5*ntot
!x(KROME_idx_Dj) = 1.8896d-11*ntot
!x(KROME_idx_HDj) = 3.0952d-20*ntot
x(KROME_idx_HEj) = 2.5861d-44*ntot
x(KROME_idx_H2j) = 5.6566d-16*ntot
x(KROME_idx_HEjj) = 7.4453d-53*ntot
!x(KROME_idx_HD) = 7.4967d-8*ntot
[For react_primordial_wD, I also include cooling by HD and uncomment the D-based species in test.f90]
Please let me know what do you think about this analysis.
Thank you for your help with this issue!
Kind Regards,
Piyush