Sigularity problem in NDSolve in mathematica

  • Thread starter Thread starter moudas
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
The discussion centers on a user encountering a singularity error in Mathematica's NDSolve while attempting to solve 13 differential equations with fixed boundary conditions. The error arises at a specific value of "e," causing abrupt changes in the plotted variables. Suggestions include examining the differential equations for analytic singularities and checking their limiting behaviors. Additionally, it is advised to consider the system's stiffness and to nondimensionalize the equations to ensure consistent orders of magnitude among constants. Addressing these issues may help achieve smoother solutions beyond the problematic value of "e."
moudas
Messages
1
Reaction score
0
sigularity problem in "NDSolve" in mathematica

Hi,

I am trying to solve numerically 13 differential equations with intial boundary conditions in mathematica. In my case, the boundary conditions are not free parameters and those are constrained from experimental observations.
But these set of equations and boundary condition give the error in NDSolve as following,

"NDSolve::ndsz: At e == 11.706899882374666`, step size is effectively zero; singularity or stiff system suspected. >>"

Because of this error, the plots of those 13 variables changes abruptly at "e == 11.706899882374666`".
I am getting nice curve upto this particular vaue of "e".

My question is , How can get nice curve even after this value without changing the boundary conditions?

Thanks in advance,
moudas
 
Physics news on Phys.org
Check for the two issues the error mentions.

Examine your diff eq's for evidence of an analytic singularity if you can. Maybe check limiting behaviors too.

If you can rule that out around the troubled value for e, then it might be the stiff system case.

If the numerical integration is rapidly oscillating between large numbers, it's not going to compute properly and the errors are going to propagate hugely. Try to nondimentionalize your equations and make sure the order of magnitude of your constants are similar if you can. If there are too many different time and length-scales in your system, it might not be able to be numerically solved this way.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
6K
Replies
2
Views
5K
Replies
1
Views
2K
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K