The fluctuation of the content of a species between negative and positive

3 ビュー (過去 30 日間)
Day
Day 2023 年 3 月 4 日
コメント済み: Arthur Goldsipe 2023 年 3 月 6 日
The model I am developing in Simbiology includes a drug species in which large repeated amounts of doses are injected. It has no other input parameters.
Why does the content if the drug species fluctuates between negative and positive values; although the content of the species is still large, i.e. far away from zero?
  2 件のコメント
Jacopo Biasetti
Jacopo Biasetti 2023 年 3 月 6 日
Hi,
One possibility is that your system of equations is stiff. Stiff systems usually result in oscillations when not solved correctly. Try using a stiff solver, e.g., ode15s, and also reduce the timestep.
Jacopo
Day
Day 2023 年 3 月 6 日
Thank you so much

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

採用された回答

Arthur Goldsipe
Arthur Goldsipe 2023 年 3 月 6 日
Can you share the model? As Jacopo mentions in the comment above, this is likely due to the difficult of solving the underlying differential equations for this model. In the absence of more details, the only thing I can suggest is to look at this doc page.
  2 件のコメント
Day
Day 2023 年 3 月 6 日
I accepted the answer.
Could you please help me in solving the following:
I set a trigger event in Simbiology that when 'X' species exceeds a certain mass then X= k*Time, where k is a parameter.
However, the condition is achieved at n of time, I received an error says that
Error computing event function at t=n
How should I solve this problem?
Arthur Goldsipe
Arthur Goldsipe 2023 年 3 月 6 日
I recommend creating a new MATLAB Answers question, and sharing detailed reproduction steps. Ideally, share your code or project. Without these details, it's hard to help you.

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

その他の回答 (0 件)

コミュニティ

その他の回答  SimBiology コミュニティ

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by