MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: NDSolve and DAEs

  • To: mathgroup at
  • Subject: [mg124638] Re: NDSolve and DAEs
  • From: "J. Jesús Rico Melgoza" <jerico at>
  • Date: Fri, 27 Jan 2012 06:14:17 -0500 (EST)
  • Delivered-to:
  • References: <jforak$5v4$> <>

Thanks Daniel
In the answer of Bob I realized that I have made a mistake in the 
constraint. The invariant is indeed x3[t]^2 + x4[t]^2, I apologize for this.
The second part of your message helps a lot since in my analysis I do have to enforce some invariants!.


J. Rico-Melgoza

El 26/01/2012, a las 02:29, danl at escribi=F3:

> What you show is not a DAE. Even if you correctly state the invariant as x3[t]^2 + x4[t]^2, it can still be regarded as an ODE system because it is fully determined by the DEs and ICs. So you can solve it directly via
> sol = NDSolve[
>  Join[eqns, ics], {x1[t], x2[t], x3[t], x4[t]}, {t, 0, 16}]
> That said, when an invariant exists it does make sense to have NDSolve enforce it. Otherwise one can get drift off the invariant manifold. This enforcing can be done via the Projection method.
> solP = NDSolve[
>  Join[eqns, ics], {x1[t], x2[t], x3[t], x4[t]}, {t, 0, 16},
>  Method -> {Projection, "Invariants" -> x3[t]^2 + x4[t]^2}]
> For further detail you might check Help > DocumentationCenter >
> tutorial/NDSolveIntroductoryTutorialDAEs
> Daniel Lichtblau
> Wolfram Research

  • Prev by Date: CurrentImage Command not working in MacBook Pro
  • Next by Date: Re: Plotting in nested Manipulates
  • Previous by thread: Re: NDSolve and DAEs
  • Next by thread: Extracting x,y data from scanned images of plotted data