0

I am new to modelica and tried to formulate an equation in Dymola using a new model. However, I ended up with errors related to end line of model. I could not figure it out. Could you please help me out. Thanks in advance. For the reference, I have attached description of 2 image files. enter image description here enter image description here

marco
  • 5,944
  • 10
  • 22
  • 1
    I suggest to post code as text in the future, not as image. – marco Sep 03 '20 at 10:35
  • 2
    As a newbie to Modelica, I would recommend you check out these two sources: https://mbe.modelica.university/ and https://webref.modelica.university/. Welcome to the wonderful world of Modelica. – Scott G Sep 03 '20 at 13:56
  • https://mbe.modelica.university/components/packages/nimport/ – matth Sep 04 '20 at 10:23

1 Answers1

2

The equation (j = j_0*{...}) needs a semicolon at the end;

Rene Just Nielsen
  • 3,023
  • 12
  • 15
  • 2
    There are some more things that need to be changed, like {} and [], these are for arrays. Also, you should not define constants that are already defined in MSL constants. You should not use reals with units as comment or description string, but use types with units. – matth Sep 03 '20 at 13:37
  • 2
    In the next version of Dymola the error message will be clearer that semicolon is missing. The errors of using [] for function call and {} as parenthesis should be detected later. – Hans Olsson Sep 04 '20 at 13:55
  • @HansOlsson When would the next version be released? – Jack Sep 15 '20 at 10:11
  • Sometime later this year according to plan. The detailed plan is not official as far as I know. – Hans Olsson Sep 15 '20 at 15:14