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

Non-building simulation

Non-building simulation

I want a model to be simulated many times with different parameter values.
According to docs, buildModel() "builds a modelica model by generating c code and build it", so I should use it, as is written in http://stackoverflow.com/questions/2096 … h-ompython

However, simulate() "simulates a modelica model by generating c code, build it and run the simulation executable." How to simulate without building again?

Re: Non-building simulation

Just run the generated executable.

Re: Non-building simulation

Thanks.

Re: Non-building simulation

Can the pre-built model be run from the scripting evironment. Or better yet, can I use OMPython to build a model once and then run it many times with different parameters?

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