Hi guys i hope some one can help with this, it is essentialy an ODE/IVP so
please bear with me while i explain
In MATLAB I have a function that outputs a value of acceleration(d2y/dt2) of a system for a given set of initial conditions and input torque.
e.g. At t=0 : y=0, dy/dt=0, d2y/dt2=0, torque=10N/m
It will output a value of the instantaneous acceleration d2y/dt2
And what i need to do is map the position of the system with time.
e.g.
If the torque is applied for time t what will be the final aceleration and position of the system (what will be the values of y and d2y/dt2)
I believe this is an ODE initial value problem?
-I state the intial conditions
-The function works out d2y/dt2
-I then use that value in an ode?? with time step h?? to give me new values of dy/dt and y
-sub y, dy/dt, d2y/dt2 back into the function and it gives me a new value of d2y/dt2 (i.e the acceleration of the system after the torque has been applied for time step h)
-repeat this process for time t
-plot y against t
I apologise if the explanation is confusing :S i am just unsure as to how i can do this
i have a good idea but what i dont get is the whole ode stuff i know it is essentially a simple problem but cant grasp exactly how to do the maths for it and how to code it in matlab??
Any help would be much appreciated thank you all for your time