Skip to main content
14-Alexandrite
November 18, 2018
Solved

odesolve "array index invalid"

  • November 18, 2018
  • 1 reply
  • 1610 views

Hi, I am trying to solve  a simple differential equation that uses an excel acceleration vs time as the driving force. I have used linterp to ensure that time values used in the solve can be extracted from the input acceleration versus time data.There also seems to be an issue with too many initial conditions. I would have thought you need 4 but this solve block only seems to need 3?

Any assistance would be appreciated.

Thanks

ross

    Best answer by AlanStevens

    @remslie wrote:

    Hi, I am trying to solve  a simple differential equation that uses an excel acceleration vs time as the driving force. I have used linterp to ensure that time values used in the solve can be extracted from the input acceleration versus time data.There also seems to be an issue with too many initial conditions. I would have thought you need 4 but this solve block only seems to need 3?

    Any assistance would be appreciated.

    Thanks

    ross


    I think you have confused the system (x) with the base (y) at times!  Here's my modification:

    quake1.PNGquake2.PNG

     

    Alan

     

     

    1 reply

    19-Tanzanite
    November 19, 2018

    @remslie wrote:

    Hi, I am trying to solve  a simple differential equation that uses an excel acceleration vs time as the driving force. I have used linterp to ensure that time values used in the solve can be extracted from the input acceleration versus time data.There also seems to be an issue with too many initial conditions. I would have thought you need 4 but this solve block only seems to need 3?

    Any assistance would be appreciated.

    Thanks

    ross


    I think you have confused the system (x) with the base (y) at times!  Here's my modification:

    quake1.PNGquake2.PNG

     

    Alan

     

     

    remslie14-AlexandriteAuthor
    14-Alexandrite
    November 19, 2018

    Alan,

    Many thanks once again for your prompt response and dedication to the Mathcad cause.

    Best regards,

    Ross