Solving this first-order differential equation for neutron abundance

Click For Summary
SUMMARY

The discussion centers on solving the first-order differential equation for neutron abundance, represented as $$\frac{dX_n}{dt} = \lambda - (\lambda + \hat\lambda)X_n$$. The user has attempted to use the Euler method and RK4 method but encountered divergence in the solutions for ##X_n##. A suggestion was made to utilize the Gear method, which is suitable for 'very stiff' differential equations, as indicated by the reference to the work of Hindmarsh and Gear (1974). The user is encouraged to explore implementations of the Gear method for effective resolution of the equation.

PREREQUISITES
  • Understanding of first-order differential equations
  • Familiarity with numerical methods such as Euler and RK4
  • Knowledge of stiff differential equations
  • Basic programming skills, preferably in Fortran for implementing the Gear method
NEXT STEPS
  • Research the Gear method for solving stiff differential equations
  • Explore numerical methods for differential equations in Fortran
  • Study the implementation of the Runge-Kutta methods in computational software
  • Review the paper "Primordial Helium Abundance and the Primordial Fireball. II" by P.J.E. Peebles for context
USEFUL FOR

Researchers, physicists, and mathematicians working on neutron abundance calculations, as well as anyone involved in solving stiff differential equations in computational settings.

gurbir_s
Messages
11
Reaction score
4
The time rate of change of neutron abundance ##X_n## is given by
$$\frac{dX_n}{dt} = \lambda - (\lambda + \hat\lambda)X_n$$
where ##\lambda## is neutron production rate per proton and ##\hat\lambda## is neutron destruction rate per neutron.
Given the values of ##\lambda## and ##\hat\lambda## at various values of time, I need to calculate ##X_n##.I have also calculated values of ##\lambda 's## at intermediate times. I have tried using Euler method and RK4 method to solve this equation, but the solutions for ##X_n## diverge to inf values.

[Here][2] is the link to the complete research paper "Primordial Helium Abundance and the Primordial Fireball. II" by P.J.E. Peebles.

Any help or idea on how to solve it will be appreciated : ) [1]: Data for ##\lambda 's## https://i.stack.imgur.com/lnW9M.png
[2]: https://ui.adsabs.harvard.edu/abs/1966ApJ...146..542P/abstract
 
Physics news on Phys.org
hello @gurbir_s ,
:welcome: ##\qquad ## !​

It seems ([edit]: :wink: (*) ) to me you have a differential equation at hand of the so-called 'very stiff' category.
I don't know what tools you have available, but you can try to find an impementation of the Gear method.

(*) the 'primordeal fireball' in the title says it all[edit2]:
A little googling: in https://globaljournals.org/GJSFR_Volume13/2-Numerical-Approach-for-Solving-Stiff.pdf
I find
12. Hindmarsh, A. C. and Gear C.W. (1974), “Ordinary differential equation system solver”, L.L.L. Report UCID -30001, rev. 3, l.l.l. (www.netlib.org/ode/epsode.f)
Good old Fortran !

##\ ##
 
Last edited:
BvU said:
hello @gurbir_s ,
:welcome: ##\qquad ## !​

It seems ([edit]: :wink: (*) ) to me you have a differential equation at hand of the so-called 'very stiff' category.
I don't know what tools you have available, but you can try to find an impementation of the Gear method.

(*) the 'primordeal fireball' in the title says it all[edit2]:
A little googling: in https://globaljournals.org/GJSFR_Volume13/2-Numerical-Approach-for-Solving-Stiff.pdf
I find Good old Fortran !

##\ ##
Thank you : ) @BvU. I was struggling with this problem from quite a few days.
 

Similar threads

Replies
20
Views
3K
Replies
1
Views
14K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
3
Views
3K