Help with Units of species and simulation run error messages

3 Ansichten (letzte 30 Tage)
Christos
Christos am 14 Nov. 2022
Kommentiert: Christos am 14 Nov. 2022
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

Antworten (1)

Florian Augustin
Florian Augustin am 14 Nov. 2022
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 Kommentare
Florian Augustin
Florian Augustin am 14 Nov. 2022
Hi emjey,
we have plans to bundle units with SimBiology models. However, I cannot give a timeline for this feature unfortunately.
Best,
-Florian
Christos
Christos am 14 Nov. 2022
Hi Florian,
Thank you so much for your response! This is really helpful. I will try to do what you suggested and let you know if I have more questions.
Best regards,
Christos

Melden Sie sich an, um zu kommentieren.

Communitys

Weitere Antworten in  SimBiology Community

Kategorien

Mehr zu Import Data finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by