是否有指定模拟的标志/脚本方式:
我知道它可以作为模型中的注释添加:
annotation experiment(__Dymola_NumberOfIntervals=501), __Dymola_experimentSetupOutput(equdistant=true, events=true));
此致 吉勒
答案 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);