NDSolve in 3D
- To: mathgroup at smc.vnet.net
- Subject: [mg126295] NDSolve in 3D
- From: Niles <niels.martinsen at gmail.com>
- Date: Sun, 29 Apr 2012 02:10:28 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
Hi I am trying to solve Newtons equation for a particle in (x, y, z), and here is what I have: sol = NDSolve[{ x''[t] == acceleration[x'[t], y[t], z[t]], y''[t] == acceleration[y'[t], x[t], z[t]], z''[t] == 0, x[0] == 0, x'[0] == 0, y[0] == 0, y'[0] == 0, z[0] == 0, z'[0] == 250}, {x[t], y[t], z[t]}, {t, 0, 1}]; There is only a force acting in the (x, y)-direction, and the z-component is just constant (not accelerating). When I plot the solution using ParametricPlot[{x[t], x'[t]} /. sol, {t, 0, 0.001}, PlotRange -> {{0, 0.35}, {0, 5}}, AspectRatio -> 0.75] the plot is empty. Is my syntax in NDSolve correct? Best, Niles.