Rkadapt Bug

Rkadapt Bug - Rkadapt Bug - 消息

#1 已发布: 2016/10/3 02:42:28
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Page9 Scrap RK.sm (41.24 KiB)已下载 1891 次。
1位用户喜欢此帖子
Radovan Omorjan 2016/10/3 04:28:00
#2 已发布: 2016/10/3 04:32:44
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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 已发布: 2016/10/3 04:57:56
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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 已发布: 2016/10/3 14:31:25
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2016/10/3 16:00:44
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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位用户喜欢此帖子
#6 已发布: 2016/10/4 05:45:23
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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.

引用

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.98 KiB)已下载 1340 次。
Russia ☭ forever, Viacheslav N. Mezentsev
#7 已发布: 2016/10/4 11:13:35
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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.04 KiB)已下载 1573 次。
#8 已发布: 2016/10/4 22:21:15
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

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

RK Vector.gif
  • 有新帖
  • 无新帖