I’m in my last year of my physics degree, and part of my dissertation project involves mathematica, modelling the orbital behaviour of a spacecraft using Ion propulsion.
I have 2 coupled differential equations being solved, r’‘(t) and o’'(t), in an NdSolve function (o is pheta in my case, modelling the change in angular momentum). It solves this with no problem, and plots the results fine. My next step is to attain a parametric plot, in which my 2 functions are cos(o)*r and sin(o)*r, to get the trajectory of my spacecraft along its journey. I have attemped to copy the syntax in the “get help” section and the when evaluated, it just returns a blank graph. What am i doing wrong!?
It’s hard to tell without the code. Can you try making a really super simple example of the kind of thing you’re trying to do and post it? Let’s ignore the Evaluate statements. They shouldn’t be doing anything to the code anyway. What is the output of this command?
r[t] /. TotalThrust
Is it a list? It’s probably not supposed to be a list. Usually you need to run First or Part to make sure you don’t have a list.
Thanks for the reply, i’ve simplified my code and attached it to this post, if you could find the errors that would be fab! I’m pretty sure its not returning a list, but i could be wrong, i’m not confident at all with Mathematica.