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

manage function Simulate in OpenModelica

manage function Simulate in OpenModelica

Hi guys
I need help for manage a problem

the problem is that startTime is in the internal library of OpenModelica: OpenModelica.Scripting.simulate. That is a function.

My aim is to create a Model and inside it, I want to use this operation:  time - startTime

Anyone know how to manage it?

Thanks

Re: manage function Simulate in OpenModelica

Code:

parameter Real startTime(fixed=false);

initial equation
  startTime = time;

Re: manage function Simulate in OpenModelica

thanks
it works!

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