Sigularity problem in NDSolve in mathematica

In summary, the conversation discusses the singularity problem encountered while using the "NDSolve" function in mathematica to solve a set of 13 differential equations with boundary conditions constrained from experimental observations. The error "NDSolve::ndsz" is mentioned and possible causes such as an analytic singularity or a stiff system are discussed. Suggestions are given to check for these issues and to potentially non-dimensionalize the equations to improve the numerical integration.
  • #1
moudas
1
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
  • #2
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.
 

Related to Sigularity problem in NDSolve in mathematica

1. What is the "Singularity problem" in NDSolve in Mathematica?

The "Singularity problem" in NDSolve refers to the issue of encountering singularities, or points where a solution becomes infinite or undefined, when solving differential equations using the NDSolve function in Mathematica. This can occur when the equations being solved have discontinuities, or when the initial conditions are inappropriate.

2. How does NDSolve handle the Singularity problem?

NDSolve uses a variety of methods to handle the Singularity problem, depending on the specific equations and conditions being solved. These methods include automatically detecting and avoiding singular points, using adaptive step sizes, and providing options for specifying boundary conditions and constraints.

3. Can the Singularity problem be avoided in NDSolve?

In many cases, yes. By carefully choosing the equations being solved and the initial/boundary conditions, it is possible to avoid encountering singularities in NDSolve. However, this may require some trial and error and careful consideration of the problem at hand.

4. Are there any limitations to NDSolve's ability to handle the Singularity problem?

While NDSolve is a powerful tool for solving a wide range of differential equations, it does have its limitations when it comes to handling the Singularity problem. In some cases, it may not be able to find a solution or may produce inaccurate results. It is important to carefully examine the results and consider alternative methods or equations if necessary.

5. Are there any tips for avoiding the Singularity problem in NDSolve?

Yes, there are some general tips that can help to avoid encountering the Singularity problem in NDSolve. These include carefully selecting the equations and initial/boundary conditions, using appropriate options and constraints, and checking for any discontinuities or singular points in the equations being solved. It may also be helpful to consult with experts or use other tools to validate the results.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
212
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
1K
  • Differential Equations
Replies
5
Views
6K
  • Programming and Computer Science
Replies
1
Views
1K
Replies
1
Views
818
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
2K
Replies
2
Views
5K
Replies
1
Views
2K
Replies
1
Views
1K
Replies
4
Views
4K
Back
Top