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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Problems(discontinuous condition) in Rkfixed

ptc-3308012
1-Visitor

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