SimBiology error with e^time in reaction rate

2 Ansichten (letzte 30 Tage)
Colin Cess
Colin Cess am 14 Sep. 2017
Kommentiert: Colin Cess am 17 Sep. 2017
I've got a pretty complicated differential equation to describe absorption from a dosing site to the central compartment, part of which contains the term e^(-ka*Time). I've tried using it in the reaction rate itself (as exp(-ka*Time)) and as a rate rule, but I've been getting errors, either that SimBiology can't perform dimensional analysis due to the exp(), or that it can't evaluate the reaction rate at t=0.0000. Is there a way I can get SimBiology to use this term in my reaction rate?

Akzeptierte Antwort

Arthur Goldsipe
Arthur Goldsipe am 14 Sep. 2017
Hi,
The message about being unable to perform dimensional analysis is a warning, not an error. Your simulation results should be fine. You just need to manually check your units in the rule and make sure that the argument of exp is dimensionless. See the "Tip" on the reference page for DimensionalAnalysis.
I'm not sure what you mean by "it can't evaluate the reaction rate at t=0.0000". Can you provide more details, such as the exact error message and some sort of reproduction steps? Ideally, if you can attach your model to the question that would make it easier for us to help you.
-Arthur
  3 Kommentare
Arthur Goldsipe
Arthur Goldsipe am 15 Sep. 2017
Ahhh. The problem is that you used "Time" instead of "time". SimBiology is case-sensitive. After I changed the case, the model simulated for me.
Colin Cess
Colin Cess am 17 Sep. 2017
...wow. Thanks a lot! Did not know that.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Communitys

Weitere Antworten in  SimBiology Community

Kategorien

Mehr zu Scan Parameter Ranges finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by