Opened 7 years ago
Last modified 3 years ago
#4485 new enhancement
Add units for volume flow to OMEdit
Reported by: | Francesco Casella | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | OMEdit | Version: | |
Keywords: | Cc: |
Description
Currently volume flows in OMEdit are only displayed in the SI unit m3/s, which is normally quite inconvenient. Popular engineering units for this quantity are m3/h and l/s (liters per senconds), can you add them please?
Change History (11)
comment:1 by , 7 years ago
Milestone: | 1.12.0 → 1.13.0 |
---|
comment:2 by , 7 years ago
comment:3 by , 7 years ago
As I understand, the list of potential units that you get in the unit drop-down menu is defined by OMEdit, as well as the conversion coefficients, and has nothing to do with Modelica.SIunits. I was referring to that, in the case of volume flows the only option I get is m3/s, which is inconvenient in most cases.
@adeas31 do I miss something?
comment:5 by , 6 years ago
I see that OMEdit already has a drop-down menu for units of measure.
This hints that probably it is already designed to use more units than just the default displayUnit to display plots.
This would allow to choose the actual display unit when analysing simulation results, among a list of candidates. I supplose in this case we could go step-by-step, starting adding alternative units only in selected cases.
If it is decided to go in this direction I would recommend two other cases (in addition to this ticket's):
1) possibility to display linear speeds in both m/s and km/h (very useful for vehicles, one of the most prominent fields of application of Modelica)
2) possibility to display angular speeds in both rad/s and rpm (=revolutions per minute).
Note that I deliberately chose units that are near SI's. I would not recommend to expand extensively to non-SI units, such as inches, feet or BTU's, unless strongly needed in special cases (that I can't envisage so far).
The feature proposed in this comment is available in Dymola, and frequently used by me and my students. Dymola's implementation is a bit tricky, however. I like much more the drop-down menu already implemented in OMEdit.
A final note: in the past all the drop-down menus for units of measure were grayed, implicitly suggesting that alternatives exist, even when no alternative was available. Now they are correctly set to white and the drop-down arrow is not visible unless one clicks on the unit.
If this comment's suggestion is accepted, when more options are available it is thus expected the drop-down menus to be greyed by default, with their arrows visible.
comment:6 by , 6 years ago
@casella: In case you agree to comment 5 what about updating this ticket's name?
comment:8 by , 5 years ago
Milestone: | 1.14.0 → 1.16.0 |
---|
Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0
comment:10 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
Retargeted to 1.18.0 because of 1.17.0 timed release.
How would you handle this? Where would you add this? Doesn't the user always have to set their desired
displayunit
for the quantities fromModelica.SIunits
?