cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Flood calculation - this value must be an array

ptc-4501676
1-Visitor

Flood calculation - this value must be an array

Hi,again I am trying to solve differential equations with ODE solver. In defining the solver, there is always a message " the value must be an array".

Thanks

Krisnandito

ACCEPTED SOLUTION

Accepted Solutions

You have a double vector on the LHS of odesolve. Mathcad thinks this is a vector with a single element (which just happens to be a vector). Replace this with a single vector.

However, you then get the same problem you had previously! Are you sure your test for negatives is the right way around this time? Certainly, if you reverse its logic the ODE works.

Alan

View solution in original post

3 REPLIES 3

There is typo in the equation in the previous file but still have "this value must be an array" message

You have a double vector on the LHS of odesolve. Mathcad thinks this is a vector with a single element (which just happens to be a vector). Replace this with a single vector.

However, you then get the same problem you had previously! Are you sure your test for negatives is the right way around this time? Certainly, if you reverse its logic the ODE works.

Alan

Thanks Alan. Now the model works :-).

Krisnandito

Announcements

Top Tags