Rkadapt Bug

Rkadapt Bug - Rkadapt Bug - Messages

#1 Posted: 10/3/2016 2:42:28 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Page9 Scrap RK.sm (41 KiB) downloaded 60 time(s).
1 users liked this post
Radovan Omorjan 10/3/2016 4:28:00 AM
#2 Posted: 10/3/2016 4:32:44 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hmm...Interesting example, but it does not work for me in Mcad 15 either?

Regards,
Radovan
oderkadapt.png[attach]
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Posted: 10/3/2016 4:57:56 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

I don't know how to convert implicit form into explicit. If you show me the rules for the numeric case I'll add such feature.
Russia ☭ forever, Viacheslav N. Mezentsev
#4 Posted: 10/3/2016 2:31:25 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Viacheslav, Radovan: as simple as that
add a dummy 0 to the vector of RK solution
to meet the length of the IC !!!

Forum RK Bug Solved.gif
#5 Posted: 10/3/2016 4:00:44 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Wrote

Viacheslav, Radovan: as simple as that
add a dummy 0 to the vector of RK solution
to meet the length of the IC !!!


Ah yes, but this is the standard "trick" in Mathcad when you want to give some parameter to the ODE. The derivative of that parameter is zero - like your dummy second value.
Here, if I understood this well, you might use SMath in a better way - giving parameters as third, fourth,...argument (not possible in Mathcad).
Your example might be this way as well

rkadapt.PNG
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 users liked this post
#6 Posted: 10/4/2016 5:45:23 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Functions from ODE Solvers plugin use the rules from Mathcad help. If you have two initial conditions this means that you have the second order ODE and f(t,y) must be a vector with two rows.

Quote

Arguments:

init is either a vector of n real initial values, where n is the number of unknowns, or a single scalar initial value, in the case of a single ODE.


Rewriting a Higher-Order ODE as a System of First-Order ODEs.pdf (142 KiB) downloaded 63 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
#7 Posted: 10/4/2016 11:13:35 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Thanks Viacheslav,

Very useful for those not familiar [never had Mathcad].
I have added the automatic RK vector extractor D(x,Y).

Jean

ODE Euler_rkf4 EDU.sm (31 KiB) downloaded 51 time(s).
#8 Posted: 10/4/2016 10:21:15 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

...just change variables for new names.
or copy/paste the section in blank sheet.
Smath is very reactive wrt variables.

RK Vector.gif
  • New Posts New Posts
  • No New Posts No New Posts