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

Posts

Posts

Jan-13-11 14:41:04
OMEdit : parameters are lost every time I save the model

yes, it is the same, thanks.
Well, this makes OMEdit simply unusable :-(

I will try  to enter the parameters as text in the .mo file ... or  does anyone have another workaround ?

Philippe

Jan-13-11 12:30:44
OMEdit : parameters are lost every time I save the model

I know Modelica for a while, but I hoped OMEdit would make it finaly usable by the masses (i.e my colleagues current/roll)

So I'm testing OMEdit now (on Windows XP, with Modelica 1.6) and my first big problem is the parameters I enter in the blocks in the properties dialog (inertia, spring constant etc.) disappear everytime I save the model current/sad

The simulation runs ok (but PLEASE group the plot variables by blocks in a tree...) but as soon as I save the model, all parameters are back to default values...

Did I miss something ? Thanks for your help.

Philippe Guglielmetti
Switzerland

P.S. my current model is listed below... without parameters...

model Transport
  Modelica.Mechanics.Rotational.Components.BearingFriction bearingfriction1 annotation(Placement(visible = true, transformation(origin = { -30.7309, -32.7028}, extent = {{ -15, -15},{15,15}}, rotation = 0)));
  Modelica.Mechanics.Rotational.Components.Inertia cylindre annotation(Placement(visible = true, transformation(origin = {3.57143, -33.9286}, extent = {{ -15, -15},{15,15}}, rotation = 0)));
  Modelica.Mechanics.Rotational.Components.Spring bande annotation(Placement(visible = true, transformation(origin = {45.0415, -34.4228}, extent = {{ -15, -15},{15,15}}, rotation = 0)));
  Modelica.Mechanics.Rotational.Components.Inertia cylindre2 annotation(Placement(visible = true, transformation(origin = {91.0714, -35.1084}, extent = {{ -15, -15},{15,15}}, rotation = 0)));
  Modelica.Mechanics.Rotational.Components.BearingFriction bearingfriction2 annotation(Placement(visible = true, transformation(origin = {138.313, -35.4751}, extent = {{ -15, -15},{15,15}}, rotation = 0)));
  Modelica.Mechanics.Rotational.Sensors.AngleSensor anglesensor1 annotation(Placement(visible = true, transformation(origin = {139.502,9.49298}, extent = {{ -15, -15},{15,15}}, rotation = 0)));
  Modelica.Mechanics.Rotational.Sources.Speed speed1 annotation(Placement(visible = true, transformation(origin = { -72.5446, -32.2864}, extent = {{ -15, -15},{15,15}}, rotation = 0)));
  Modelica.Blocks.Sources.Step step1 annotation(Placement(visible = true, transformation(origin = { -131.537, -32.2864}, extent = {{ -15, -15},{15,15}}, rotation = 0)));

equation
  connect(step1.y,speed1.w_ref) annotation(Line(points = {{ -115.037, -32.2864},{ -96.4605, -32.2864},{ -96.4605, -32.2864},{ -90.5446, -32.2864}}));
  connect(speed1.flange,bearingfriction1.flange_a) annotation(Line(points = {{ -57.5446, -32.2864},{ -46.6358, -32.2864},{ -46.6358, -32.7028},{ -45.7309, -32.7028}}));
  connect(cylindre2.flange_b,anglesensor1.flange) annotation(Line(points = {{106.071, -35.1084},{125.558, -35.1084},{125.558,9.49298},{124.502,9.49298}}));
  connect(cylindre2.flange_b,bearingfriction2.flange_a) annotation(Line(points = {{106.071, -35.1084},{117.586, -35.1084},{117.586, -35.0765},{123.313, -35.0765},{123.313, -35.4751}}));
  connect(bearingfriction1.flange_b,cylindre.flange_a) annotation(Line(points = {{ -15.7309, -32.7028},{ -11.1607, -32.7028},{ -11.1607, -33.9286},{ -11.4286, -33.9286}}));
  connect(bande.flange_b,cylindre2.flange_a) annotation(Line(points = {{60.0415, -34.4228},{76.5306, -34.4228},{76.5306, -35.1084},{76.0714, -35.1084}}));
  connect(cylindre.flange_b,bande.flange_a) annotation(Line(points = {{18.5714, -33.9286},{30.692, -33.9286},{30.692, -34.4228},{30.0415, -34.4228}}));
end Transport;

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