Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8634 > unrolled thread

NDSolve solutions

Started byNiles <niels.martinsen@gmail.com>
First post2012-02-20 07:46 +0000
Last post2012-02-21 11:12 +0000
Articles 2 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  NDSolve solutions Niles <niels.martinsen@gmail.com> - 2012-02-20 07:46 +0000
    Re: NDSolve solutions Niles <niels.martinsen@gmail.com> - 2012-02-21 11:12 +0000

#8634 — NDSolve solutions

FromNiles <niels.martinsen@gmail.com>
Date2012-02-20 07:46 +0000
SubjectNDSolve solutions
Message-ID<jhsto5$nht$1@smc.vnet.net>
Hi

I have solved an ODE using NDSolve, and I plot the solution like this:

ParametricPlot[{z[t], z'[t]} /. solution, {t, 0, 2 maxTime}, PlotRange
-> {{0, 0.2}, {0, 450}}, AspectRatio -> 0.75]

The curve shown (the velocity as a function of position) I want to use
in a new mathematical expression. How can I do that? If I use z'[t],
then it is as a function of time, which is no good to me.

I appreciate your help.

Best regards,
Niles.

[toc] | [next] | [standalone]


#8660

FromNiles <niels.martinsen@gmail.com>
Date2012-02-21 11:12 +0000
Message-ID<jhvu79$81o$1@smc.vnet.net>
In reply to#8634
On Feb 20, 8:46 am, Niles <niels.martin...@gmail.com> wrote:
> Hi
>
> I have solved an ODE using NDSolve, and I plot the solution like this:
>
> ParametricPlot[{z[t], z'[t]} /. solution, {t, 0, 2 maxTime}, PlotRange
> -> {{0, 0.2}, {0, 450}}, AspectRatio -> 0.75]
>
> The curve shown (the velocity as a function of position) I want to use
> in a new mathematical expression. How can I do that? If I use z'[t],
> then it is as a function of time, which is no good to me.
>
> I appreciate your help.
>
> Best regards,
> Niles.


To clarify, what I have is a system of ODEs of the form

dx/dt = v
dv/dt = a = C*f(x),

where C denotes a constant and f(x) is some function of x. This system
is easy to solve using e.g.

NDSolve[x''[t] == -C*f(x), x[0] == 0, x'[0] == 0}, x, {t, 0, tMax}];

The solution x[t] (or rather, its derivative x'[t]) I need to use in
the following expression:

B(x) = A + v(x)

where A denotes a constant and v(x) is the velocity as a function of
position x. But please note that v is as a function of x, not t. What
should I do to achieve this?

Best regards,
Niles.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web