Can I use "mL/kg" and "mg/kg" for compartment and species units in SimBiology?
7 views (last 30 days)
Show older comments
MathWorks Support Team
on 9 Jun 2020
Answered: MathWorks Support Team
on 10 Jun 2020
I would like to use "mL/kg" for compartment unit and "mg/kg" for species unit in SimBiology model.
After I add "milliliter/kilogram" in library and enter it in CapacityUnits for compartment, I get a following warning message.
Configuration Warning Invalid CapacityUnits. Valid unit types are length, area, and volume.
Accepted Answer
MathWorks Support Team
on 9 Jun 2020
Currently, defining species in milligram/kilogram is not allowed in SimBiology. Species have to be defined in dimensions of amount or concentration. Compartments need to be defined in units of length, area or volume. As such, you can't create a compartment with unit 'kilogram'.
In order to calculate concentrations, SimBiology uses the compartmental dimensions to convert the amount of a species (gram/mole) to concentration (gram/liter, mole/liter).
To workaround, please define your species in units of 'milligram', and then add two parameters (bodyweight and [speciesName_normalized]). On the second parameter, add a repeated assignment speciesName_normalized = speciesName/bodyweight.
Alternatively, you could also implicitly implement this by just assuming that all species are normalized by bodyweight and normalizing the relevant parameters/dose amounts by bodyweight (e.g. your dose is implied to be in milligram/kilogram but it is still defined in your model as 'milligram).
0 Comments
More Answers (0)
Communities
More Answers in the SimBiology Community
See Also
Categories
Find more on Extend Modeling Environment in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!