Errors about the species in different compartments have different unit

조회 수: 2 (최근 30일)
voZnW
voZnW 2022년 10월 3일
답변: Florian Augustin 2022년 10월 5일
In my data, the concentration of Drug_Central was namomole/liter; the concentration of Liver_Drug was nanomole/gram. So I set the unit of Central compartment is "liter", and the unit of Liver compartment is "gram". But there was an error in my model. The error you can see in the picture below. How to set the unit in the model when the unit of species in different compartments have different unit?
  댓글 수: 1
emjey
emjey 2022년 10월 3일
voZnW, as the first error message says, you cannot have unit-wise inconsitent species in a reaction.
Wrt concentration units, '... today species in SimBiology are still constrained to have units of amount/mass or concentration.', see https://uk.mathworks.com/matlabcentral/answers/1638420-any-progress-on-relaxing-the-constraints-on-species-units
This is an unfortunate restriction many stumble upon.

댓글을 달려면 로그인하십시오.

답변 (1개)

Florian Augustin
Florian Augustin 2022년 10월 5일
Hi,
Just to follow up on emjey's comment. The error message indicates that some of your reactions are dimensionally inconsistent. You mentioned that you set one compartment's units to "liter" and another compartment's units to "gram". This could be the cause for inconsistentcy in your units. You can inspect the equations for Reaction_4 and Reaction_5 (and others that might be indicated in the error message you see) to help with debugging inconsistency in the units. You can see the equations in the SimBiology Model Builder by clicking on the right-most button (directly under the search bar) in the Model tab of the Browser panel.
Screenshot of SimBiology Model Builder.
You can also inspect the equations on the MATLAB Command Window by calling the getequations method on your SimBiology model.
I hope this helps,
Florian

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

Help CenterFile Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by