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

Generation of model

Generation of model

Hello all,

I'm wondering how can I create multiple instance of a model.
For example, I have an model "Germany", "France" "Cities", and "Road" to simulate the flow of cars in the road.

I'm able to create Cities and link them thanks to Road, but I would like to manage my simulation by specifying in France the number of cities I wish for my simulation, and having a way to generate for 5 cities all the road linking them together. And for 6 cities in France, for another simulation, having directly  the road connected, without creating the new cities and write all the "connected()".
Is that possible ?

Or can I generate OpenModelica code thanks to another programming language which will read my inputs (6 cities) and create the "France" model I wish to have ?

Thanks for your help.
Clément.

Edited by: giopi - Nov-16-17 12:19:58
There are 0 guests and 0 other users also viewing this topic