NDSolve::ndcf NDSolveValue::ndcf ParametricNDSolve::ndcf ParametricNDSolveValue::ndcf

Details

  • This message is generated by a specific type of failure within the algorithms that are used for computing numerical solutions of ordinary differential equations.
  • If you see this message and the cause is not evident from the nature of the example, please send your example to Technical Support so that it can be investigated.
  • Off[message] switches off the message; On[message] switches it on. For example: Off[NDSolve::ndcf].

Examples

Basic Examples  (2)

Consider the following differential algebraic equation:

The problem is with the initial conditions. says that from the second equation. says that . Thus, the pendulum has no initial velocity or acceleration, so it just sits there, which causes the problem. Changing the initial conditions helps:

Note that the index reduction methods also have a problem with the original initial conditions:

Finding solutions of differential equations with discontinuities can be problematic, and increasing the working precision may not be a solution:

The Piecewise function is problematic. Use "DiscontinuityProcessing"False: