Dymola标志等距时间网格并在事件中存储变量

时间:2013-03-08 11:02:03

标签: modelica dymola

是否有指定模拟的标志/脚本方式:

  • 在事件中存储变量,与事件中的Simulation Setup \ Output \ Store变量相同
  • 等距时间网格,与Simulation Setup \ Output \ Equidistant时间网格相同

我知道它可以作为模型中的注释添加:

annotation experiment(__Dymola_NumberOfIntervals=501), __Dymola_experimentSetupOutput(equdistant=true, events=true));

此致 吉勒

1 个答案:

答案 0 :(得分:3)

我从Dymola的支持中找到答案。请参阅模拟器API上的Dymola用户手册V1 p 501:

experimentSetupOutput(...)
  input Boolean textual := false "Textual storage";
  input Boolean doublePrecision := false "Double precision";
  input Boolean states := true "Store state variables";
  input Boolean derivatives := true "Store derivative variables";
  input Boolean inputs := true "Store input variables";
  input Boolean outputs := true "Store outputs variables";
  input Boolean auxiliaries := true "Store auxiliary variables";
  input Boolean equdistant := true "Store equidistantly";
  input Boolean events := true "Store variables at events";
  input Boolean debug := false "Write log messages";
  output Boolean ok;

因此,在simulateModel命令之前设置的标志是:

experimentSetupOutput(events=false,equdistant=true);