Hi(adsbygoogle = window.adsbygoogle || []).push({});

I am trying to solve Newtons equation for a particle in (x, y, z) using NDsolve. Here I what I have so far:

The force acting on the particle only affects (x, y), not z. However, my plot is empty.Code (Text):

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] == 2, x'[0] == 0, y[0] == 0, y'[0] == 0, z[0] == 0,

z'[0] == 250},

{x[t], y[t], z[t]}, {t, 0, 1}];

ParametricPlot[{x[t], x'[t]} /. sol, {t, 0, 0.001}, PlotRange -> {{0, 0.35}, {0, 5}}, AspectRatio -> 0.75]

Is my use of NDsolve correct?

Best,

Niles.

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica: NDSolve in 3 dimensions

Loading...

Similar Threads - Mathematica NDSolve dimensions | Date |
---|---|

Mathematica Rescaling equations in Mathematica | May 5, 2017 |

Mathematica NDSolve different solutions same eq's | Jul 23, 2015 |

Solving ODE numerically in Mathematica - I get 'ndnum' error | Mar 17, 2015 |

Mathematica NDSolve initial condition | Mar 5, 2015 |

Mathematica Ndsolve periodic boundary conditions | Feb 12, 2015 |

**Physics Forums - The Fusion of Science and Community**