Message Boards Message Boards

0
|
6720 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

How to work with units in System Modeler

Posted 11 years ago
How to change the units from SI system to custom types units while adding parameters to  a compartment or reaction.
POSTED BY: Rizwan Ahmad
This depends on if you are using the "New Reaction Model..." wizard to create your reactions or if you create them by drag&drop/manually.

Wizard
If you are using the wizard you cannot choose type when creating the reaction, however you can do that once you have created it. To do this double-click on the newly created reaction in the class browser. Then right-click on the variable name in the Components view (found to the right of the diagram layer) and select  "Change type...". You can select type from:

* Builtin (Real, Integer, String, Boolean)
* SI units (as defined in Modelica.SIunits)
* Non-SI units (as defined in Modelica.Conversions.NonSIunits)
* or Other (where you can specify any unit the user has themselves defined).

Drag&Drop 
When you are adding a parameter to the model using the Insert->Parameter menu (on right-click in General tab), you can select the type from
the list above.

Text view

If you are adding the parameter in text-view you can write any type you want. Note that you can drag the type from the Class Browser into the text view to get it's fully qualified name (e..g BioChem.Units.AmountOfSubstance).
POSTED BY: Jan Brugard
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract