Help with Units of species and simulation run error messages
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Florian Augustin
el 14 de Nov. de 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 comentarios
Florian Augustin
el 14 de Nov. de 2022
Hi emjey,
we have plans to bundle units with SimBiology models. However, I cannot give a timeline for this feature unfortunately.
Best,
-Florian
Comunidades de usuarios
Más respuestas en SimBiology Community
Ver también
Categorías
Más información sobre Import Data en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!