Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » mpradov
  • » Profile

Posts

Posts

Jan-07-20 19:41:58
SIunit Real obtained through an inherited version of standard Modelica SIunits package is not...

Dear all,

Version 1.14.1 solves that bug  current/big_smile

Thank you

Manuel

Dec-30-19 12:40:33
SIunit Real obtained through an inherited version of standard Modelica SIunits package is not...

I am using the following code:

within CybSim.Physiology;
encapsulated package Interfaces "Connectors and partial physiological entities"
  import SI = CybSim.Mechanisms.SIunits;
  ...
  connector inputDrug = input SI.MassFlowRate "input Drug mass flow rate connector";
  ...
end Interfaces;


where CybSim.Mechanisms.SIunits is defined by inheriting Modelica SIUnits:

within CybSim.Mechanisms;
encapsulated package SIunits
  "Additional units and methods required for CybSim"
  extends Modelica.SIunits;
  ....
end SIunits;


Although SI.MassFlowRate is correctly understood by Modelica in other CybSim (name of the library that I am developing) classes, however, the default icon associated with inputDrug connector is marked as wrong (red cross). This is solved if Modelica.SIunits is used instead of CybSim.Mechanisms.SIunits.

It seems a small bug of OMEdit (1.14).

Thank you very much in advance for your suggestions.

Manuel

  • Index
  • » Users
  • » mpradov
  • » Profile
You are here: