Connect with users of Wolfram technologies to learn, solve problems and share ideas
Mark as an Answer
0 Total Likes
Follow this post
Share this post:
How to work with units in System Modeler
10 years ago
How to change the units from SI system to custom types units while adding parameters to a compartment or reaction.
Jan Brugard, Wolfram MathCore
10 years ago
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.
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).
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.
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).
Reply to this discussion
in reply to
Community posts can be styled and formatted using the
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Add a file to this post
Follow this discussion
Be respectful. Review our
to understand your role and responsibilities.
Wolfram|Alpha Notebook Edition
Volume & Site Licensing
Enterprise Private Cloud
Service Plans Benefits
Wolfram Language Documentation
Wolfram Language Introductory Book
Get Started with Wolfram
Fast Introduction for Programmers
Fast Introduction for Math Students
Webinars & Training
Connected Devices Project
Wolfram Data Drop
Wolfram + Raspberry Pi
. All rights reserved.
Learn how »