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

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

Problems(discontinuous condition) in Rkfixed

ptc-3308012
1-Newbie

Problems(discontinuous condition) in Rkfixed

I want to put an Odesolver into a program, so I use rkfixed, but it is not working if I add the 'if statement'

\Anyone one know how to solve this?

Thanks!

Rong

ACCEPTED SOLUTION

Accepted Solutions

7 REPLIES 7

RONG XU wrote:

I want to put an Odesolver into a program, so I use rkfixed, but it is not working if I add the 'if statement'

\Anyone one know how to solve this?

Thanks!

Rong

1) Send please the Mathcad file too.

2) We can use the odesolve function in a program to by a creating a user function f(...):= odesolve(...) and by colling this function f(...) in the program.

Thanks for reply!

Attached is the mathcad file. If you cannot open it, plz let me know.

And do you have example of function():=odesovler()

Best regard

Rong

rkfixed_test.GIF

Viktor

Viktor

Thanks. It worked out good. Can you explain why use Y[0](first vector value) instead of Y?

RONG XU wrote:

Thanks. It worked out good. Can you explain why use Y[0](first vector value) instead of Y?

The best explanation can be found in Help:

QuickSheets/ CALCULUS AND DIFFERENTIAL EQUATIONS /Solving a First-Order ODE Initial Value Problem

Viktor

Viktor

RONG XU wrote:

And do you have example of function():=odesovler()

Best regard

Rong

http://communities.ptc.com/message/188186#188186

thanks!

Announcements

Top Tags