Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 11560

Re: ODE with two functions of time

$
0
0

Werner;

 

Thank you very much. Your approach is ingenious so it looks like you can use ODE solve blocks as functions provided the variable that you want to find is not also a function. This is so powerful and a good thing to know and remember. The other trick you have used eludes me, however. Why is it that you had to create a function with 2 arguments. I would have thought that the ODE solve block function hw(h) contained the solution vectors for both the variable Hw and t. However when I try to calculate this function in isolation I get the following:

 

What does all that all mean looks like some error code? If it is an error why then can a programming block strip out the solution vectors and why did you need to do this in the first place? It seems strange that the Solve Block does not return a user accessible solution vectors i.e. ones that can be inspected directly. Is not this the whole purpose of an ODE i.e. we are solving for a function or am I missing some subtle point.

 

Kind regards, Mark


Viewing all articles
Browse latest Browse all 11560

Trending Articles