Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dymola flag equidistant time grid and store variables at events

Is there a flag/scripting way of specifying for a simulation :

  • Store variable at events, same as Simulation Setup\Output\Store variables at events
  • Equidistant time grid, same as Simulation Setup\Output\Equidistant time grid

I know it can be added as an annotation in model :

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

Regards, Gilles

like image 547
GillesP Avatar asked Dec 07 '25 19:12

GillesP


1 Answers

I found the answer in from the Dymola support. See the Dymola user manual V1 p 501 on the simulator API :

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;

Therefore the flags to set before the simulateModel command were :

experimentSetupOutput(events=false,equdistant=true);
like image 187
GillesP Avatar answered Dec 10 '25 01:12

GillesP



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!