I know I can change File_init.txt's definitions, but I was wondering if there is some way to do it in the class file (.mo) or in a directive to the comiler (omc).
In an attempt to alleviate myself of the lack of a 'has-a' relationship in Modelica, I am writing a Perl wrapper that writes the highest level of my Modelica simulation (with my has-a's turned into if and when statements) and the compiles (omc +s then make) and simulates. This would work perfectly if I could specify such parameters as stop, step, outputFormat in some other way, rather than having to open the init file and do a regexp replace on them which is really clunky.
Long story short, is there some directive like the (pseudo-code) example below?
class MainSim
extends BaseSim;
...
simulation.stop = 1E-9;
simulation.step = 1E-12;
simulation.outputFormat = "csv";
...
equation
...
end MainSim;