Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2014

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

Search the Archive

animation of the PDE

  • To: mathgroup at smc.vnet.net
  • Subject: [mg132312] animation of the PDE
  • From: Любовь Тупикина <lyubov78 at gmail.com>
  • Date: Sat, 8 Feb 2014 04:01:29 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net

Hola!

I was using Mathematica to visualise trajectories of x[p],y[p] depending on p.
Is it possible?

Talking about "it's simple
to animate the parametric plot of them by using ParametricPlot inside
Animate."

But I cannot animate the NDSolve using ParametricPlot.
Can you please tell me why I get errors like "NDSolve::dsvar: 1.0011952113073699` cannot be used as a variable. ":

Animate[
   ParametricPlot[
      {Evaluate[{y[p], x[p]} /. sol =
            NDSolve[...some equation type D[f1[x[p],y[p],p] = -D[x[p], p], 
               f2[x[p],y[p],p] = -D[y[p], p]
                x[1] == -1, y[1] == -1}, {y[p], x[p]}, {p, 1, Tp}]]},                         
                 {p, 1, Tp}], {Tp, 1, 100}]

Thank you!



  • Prev by Date: Re: Result to DEQ with WA versus Step-by-Step Yields
  • Next by Date: Re: Animate parametric plot of two lists?
  • Previous by thread: Re: ContourPlot3d labels
  • Next by thread: Re: animation of the PDE