error
Title
Question
when opening the bouncingballwithimport file which i have downloaded is showing this error
[1] 12:49:54 Translation Error
[bouncingBallWithImport: 3:3-3:68]: Class Modelica.SIunits.Length not found in scope bouncingBallWithImport.
[2] 12:49:54 Translation Error
[bouncingBallWithImport: 4:3-4:45]: Class Modelica.SIunits.Length not found in scope bouncingBallWithImport.
[3] 12:49:54 Translation Error
[bouncingBallWithImport: 5:3-5:49]: Class Modelica.SIunits.Velocity not found in scope bouncingBallWithImport.
[4] 12:49:54 Translation Error
[bouncingBallWithImport: 6:3-6:82]: Class Modelica.SIunits.Acceleration not found in scope bouncingBallWithImport.
OpenModelica Modelica-Packages 06-07 min 30-40 sec
Answers:
In the bouncingballwithimport.mo file, go to text view to see the code.
In line number 3 and 4, replace Modelica.SIunits.Length with Modelica.Units.SI.Length
In line no 5, replace Modelica.SIunits.Velocity with Modelica.Units.SI.Velocity
In line no 6, replace Modelica.SIunits.Acceleration with Modelica.Units.SI.Acceleration
Make these changes, and the model should run fine.
Login to add comment