Opened 7 years ago

Last modified 7 years ago

#4501 assigned defect

Rotational display unit not converted correctly

Reported by: Christian Kral <dr.christian.kral@…> Owned by: Adrian Pop
Priority: high Milestone: Future
Component: Interactive Environment Version:
Keywords: Cc:

Description

Consider the following model:

model Test
  Modelica.Mechanics.Rotational.Sources.QuadraticSpeedDependentTorque load(
  tau_nominal=-100,
  TorqueDirection=false,
  w_nominal(displayUnit="1/min") = 104.71975511966) 
  annotation(Placement(visible = true, transformation(origin = {-2, 2}, 
    extent = {{-10, -10}, {10, 10}}, rotation = 0)));
end Test;

In this model the nominal angular velocity is equal to 104.71975511966 rad/s = 1000 1/min. Make a double click on the component load in the Diagram view. Have a look at the attached image: it shows the wrong conversion to 6283.19 1/min. When switching back to rad/s the angular speed is displayed correctly.

This issue applies to

OMEdit 1.12.0~dev-329-gf8a7774
Connected to OpenModelica 1.12.0~dev-957-gd3d2a74
Linux Mint 18.2 64bit

Attachments (1)

QuadraticSpeedDependentTorque.png (53.3 KB ) - added by Christian Kral <dr.christian.kral@…> 7 years ago.
Wrong display unit conversion

Download all attachments as: .zip

Change History (4)

by Christian Kral <dr.christian.kral@…>, 7 years ago

Wrong display unit conversion

comment:1 by Christian Kral <dr.christian.kral@…>, 7 years ago

When changing the display unit to "rpm" the conversion works fine.

comment:2 by Adeel Asghar, 7 years ago

Component: OMEditInteractive Environment
Owner: changed from Adeel Asghar to Adrian Pop
Status: newassigned

comment:3 by Adrian Pop, 7 years ago

See #4195. According to the Modelica unit grammar we're doing the correct thing.

Note: See TracTickets for help on using tickets.