Group Abstract Group Abstract

Message Boards Message Boards

0
|
8.2K Views
|
2 Replies
|
4 Total Likes
View groups...
Share
Share this post:

Non-SI units and conversions in SystemModeler

Posted 7 years ago
POSTED BY: Lukas Pernthaler
2 Replies

User-defined unit conversions have been implemented since the release of SystemModeler 5.1 and will be available in the upcoming release. It will let you define and add your own unit conversions which will automatically be picked up and made available in models.

POSTED BY: Daniel Hedberg

Lukas,

SystemModeler has built in units for VolumeFlowRate so you can get the same functionality that is built in for mm with volumeflowrates. You need to declare your parameter or variable as follows:

parameter Modelica.SIunits.VolumeFlowRate vol(displayUnit = "m3/min") "Volume Flow";

or for a variable:

Modelica.SIunits.VolumeFlowRate vv;

-- VolumeFlowRate is a data type.

That is the good news.

The bad news is that WSM only seems to support units of m^3/s, m^3/min, m^3/hour, m^3/day, or l/s. If you want l/min or ml/min you will need to request it from the MathCore people in Sweden -- However, they have been responsive in the past and I have had them add units for me (ie mW and kW in Power for example).

Regards

Neil

POSTED BY: Neil Singer
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard