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

Total Simulation Time - Possible to set in source code?

Total Simulation Time - Possible to set in source code?

Is it possible to set the total simulation time in the source code and not via the simulation settings? The simulation should run until a certain value has been reached, for example when you threw a ball in the air the simulation should stop when it hits the ground.

Re: Total Simulation Time - Possible to set in source code?

https://specification.modelica.org/v3.4 … xperiments basically stores default simulation settings.

Re: Total Simulation Time - Possible to set in source code?

You can also call terminate() in the model if you want to terminate the simulation when a certain condition is fulfilled, rather than at a fixed time point.

There are 0 guests and 0 other users also viewing this topic
You are here: