Help with Units of species and simulation run error messages
3 次查看(过去 30 天)
显示 更早的评论
Hi all,
Here I am again with a more specific question about a model I am trying to work on (please see attached). So, this is a published model bya group which I wanted to use as an exercise & example to familiarize myself with SimBiology. While I can follow most of the different sections including parameters, compartments and species, it seems that there is a discrepancy with the units "nmolar". While the default units of the model which were used to run the simulation was indeed "nmolar", the program shows error messages when I am trying to re-run the simulation using EXACTLY the same input values, parameters and units that were used initially by the authors. In other words, the units of the species are shown as "nmolar" in the compartments and species section, but this concentration term is not included as an option in the Property Editor section. I do not know how the authors were able to run the simulations without getting error messages.
Am I missing something here? Any help and insights are greatly appreciated!
Many thanks,
Best,
Christos
0 个评论
回答(1 个)
Florian Augustin
2022-11-14
Hi Christos,
the SimBiology model uses a custom unit "nmolar". Custom units are currently (R2022b) not bundled with SimBiology models and need to be defined separately.
Here is the reference page for how to add custom units to your installation of SimBiology from the the MATLAB Command Window. You can also add custom units from within the SimBiology Model Builder app. To do this, open the SimBiology Library dialog, either by clicking on the Libraries button in the app's toolstrip (select Custom Libraries -> Units), or by clicking on "Fix" in the Property Editor of any model component that has a unit error:
You can then add the unit in the SimBiology Libraries dialog:
The example above defines the custom unit "nmolar" as "molarity", a builtin unit in SimBiologyu, with a multiplier of 1e-9, i.e. "nmolar" is mapped to "nanomolarity".
I hope this helps.
Florian
3 个评论
Florian Augustin
2022-11-14
Hi emjey,
we have plans to bundle units with SimBiology models. However, I cannot give a timeline for this feature unfortunately.
Best,
-Florian
社区
更多回答在 SimBiology Community
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Import Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!