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

Possibility to perform a "loop" for a timetable?

Possibility to perform a "loop" for a timetable?

Hello everybody.

I created a model that uses as input a timetable giving a "hourly flow distribution" during an entire day (24 values). This parameter is used for my model for further calculation.

When I run my simulations on an entire day ( everything works.
However I would like to run my simulations on a month with the same dailies flows, just like a temporal loop on my timetable.

does someone knows if it is possible? And how to do?

By now When the simulation time exceed the timetable time, the model only perform a time extrapolation over the 2 last points.

If somone have an Idea I would be happy.

Thank you

Re: Possibility to perform a "loop" for a timetable?

Perhaps if you contribute to these tickets it will be added in the next MSL release:

https://github.com/modelica/Modelica/issues/477
https://github.com/modelica/Modelica/issues/2120

Re: Possibility to perform a "loop" for a timetable?

You could use a sawtooth with a 24 hour period.  Then, use that as the input to a combitable1d, instead of a timetable. 

Re: Possibility to perform a "loop" for a timetable?

Good Idea Dersh, this combination works perfectly.

Thank you.

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