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
  • » AMP
  • » Profile

Posts

Posts

Sep-19-21 17:57:34
Basically above, I am learning the software and I am having issues with it.
Category: Programming

Hello I was following a Modelica tutorial found here: https://www.youtube.com/watch?v=esSMzMC … =BenkyTech by the channel "Benky Tech" At 7:12 Benky makes a scope called Heatport and uses Modelica.SIunits.HeatFlowRate but when I do the same thing I get the error message "[1] 12:47:53 Translation Error
[Alejandro_HeatExampleOneText: 7:3-7:47]: Class Modelica.SIunits.HeatFlowRate not found in scope Heatport.". I am not really sure how to fix this and I did not see how to do it online. What I have written is:
partial connector Heatport
  //Potential Varible
  Modelica.SIunits.TemperatureDifference T "unit=K";
  //Flow Varible
  Modelica.SIunits.HeatFlowRate Q "units=Watt";
end Heatport;

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