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

Model -override

Model -override

Hello,

you have implemented the command override to change the start  values and to modify the simulation settings.
If I use this command the Model.exe is simulated, but with the default values for startTime etc...

I tried several versions:

Code:


system("cmd Model.exe -override startTime=0, stopTime=0.03, numberOfIntervals=3");
system("cmd Model.exe -override startTime=0, stopTime=0.03,  stepSize=0.01");
system("Model -override, startTime=0, stopTime=0.1, stepSize=0.01")
system("Model -override, startTime=0, stopTime=0.1, numberOfIntervals=3")

Regards,

Marco

Re: Model -override

Okay override works only for one Command!!!

system("Model -override stopTime=0.3") works...

Is there a way to manipulate more than one command...

Thanks

Re: Model -override

My fault....

The secret is to write it without a blank...
Works:
system("Model -override stepSize=0.01,startTime=0.2,stopTime=0.3")
Works not:
system("Model -override stepSize=0.01, startTime=0.2, stopTime=0.3")

There are 0 guests and 0 other users also viewing this topic