Numerically Solving a System of Differential Equations in Parallel?

2 ビュー (過去 30 日間)
Kevin Bachovchin
Kevin Bachovchin 2014 年 4 月 4 日
回答済み: nathan raynal-castang 2019 年 4 月 11 日
Hello,
If I have a system of coupled differential equations:
dx1dt = f1(x1,x2)
dx2dt = f2(x1,x2)
Is there a way to solve this system of differential equations in parallel? (I'm thinking something like one function computes dx1dt and another function computes dx2dt and the two functions communicate with each other in order to share x1 and x2 after each time step.)
Thank you,
Kevin

回答 (2 件)

Mischa Kim
Mischa Kim 2014 年 4 月 4 日
Kevin, check out this answer. Your x1 and x2 are the u and w variables.
  5 件のコメント
Kevin Bachovchin
Kevin Bachovchin 2014 年 4 月 9 日
What I want is for one function to compute dx1dt and another function to compute dx2dt in parallel and then the two processors communicate with each other in order to share x1 and x2 after each time step. Is something like that possible?
Mischa Kim
Mischa Kim 2014 年 4 月 10 日
As Jan and I tried to point out these type of coupled numerical problems do not lend themselves for parallelization. Parallelization works best if you can send off independent jobs to e.g. different processor cores.

サインインしてコメントする。


nathan raynal-castang
nathan raynal-castang 2019 年 4 月 11 日
as far I as know it is not possible, however, if you have to solve it multiple times, you could use paralel computing to solve the equation with different parameters multiple times .

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by