Speed up Simulink Model using World Magnetic Model (WMM2020)

6 ビュー (過去 30 日間)
Joe Gibbs
Joe Gibbs 2021 年 10 月 23 日
回答済み: KJ N 2024 年 5 月 29 日
I'm attempting to generate Magnetometer measurements for a CubeSat in Simulink using the WMM2020 (World Magnetic Model) Block but when I run a simulation with the block connected the simulation drastically slows down; from 500s instaneously to sticking at 1e-07.
Has anyone used the WMM2020 block and encountered similar problems? If so what did you do to speed up the simulation?
  2 件のコメント
Wei Huang
Wei Huang 2022 年 8 月 19 日
Hi Joe,
I'm having a similar problem with my simulation using WMM2020. Did you ever solve this issue ? If so, please share thank you.
Finn
Finn 2023 年 2 月 26 日
Did either of you find a solution to this? Having the same problem right now

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

回答 (1 件)

KJ N
KJ N 2024 年 5 月 29 日
For anyone coming across this as I did looking for a solution: it appears that the culprit is likely the solver step type. It appears, at least in my model, that the WMM block takes way too long to process if using variable step size (in Simulink Simulation Menu, see Model Setting->Solver->Solver Selection->Type-> ( [Variable-step] or [Fixed-step] ). Depending on your required accuracy and the capability of your machine, 0.1 might be a good choice for a step size.

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by