Rosenbrock method ODE : Abrupt increase during First iteration

  • Context: Undergrad 
  • Thread starter Thread starter gurbir_s
  • Start date Start date
  • Tags Tags
    increase Method Ode
Click For Summary
SUMMARY

The discussion focuses on the application of the Rosenbrock method for solving ordinary differential equations (ODEs) related to elemental abundances during Big Bang Nucleosynthesis. The user initially attempted to solve only the first two equations by excluding components from the remaining four. Initial conditions were set to thermal equilibrium values, which contributed to the successful resolution of the problem, albeit unexpectedly. The user expressed gratitude for the assistance received in the forum.

PREREQUISITES
  • Understanding of ordinary differential equations (ODEs)
  • Familiarity with the Rosenbrock method for numerical solutions
  • Knowledge of Big Bang Nucleosynthesis and elemental abundances
  • Experience with setting initial conditions in mathematical modeling
NEXT STEPS
  • Research the Rosenbrock method implementation in numerical analysis tools like MATLAB or Python's SciPy library
  • Study the principles of Big Bang Nucleosynthesis and its impact on elemental abundances
  • Explore techniques for setting initial conditions in ODEs for improved accuracy
  • Investigate common pitfalls in numerical methods for solving ODEs and how to avoid them
USEFUL FOR

Researchers in astrophysics, mathematicians working with numerical methods, and anyone involved in modeling physical phenomena using ordinary differential equations.

gurbir_s
Messages
11
Reaction score
4
TL;DR
I am using Rosenbrock4 method from Odeint library in C++ to solve a set of differential equations. However, I see that it gives an unusual change in the result for first iteration but afterwards, gives good results. How can I solve it?
The set of equations is
1682164625015.png

I have first tried to solve only first two equations (removing the components of other 4 equations from them.)

This is the output, where first column is the time, 2nd - X_p, and 3rd - X_n

1682164726299.png
 
  • Like
Likes   Reactions: Theia
Physics news on Phys.org
How are you setting your initial conditions for this solution?
 
berkeman said:
How are you setting your initial conditions for this solution?
The ##X_i##'s are elemental abundances during Big Bang Nucleosynthesis. I set the initial conditions equal to their thermal equilibrium values at that point.

I don't know how, but the problem got solved automatically while I was trying to solve another problem. Idk how. Thanks for your reply.
 
  • Like
Likes   Reactions: berkeman

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K