- Index
- » Programming
- » Modelica Language
- » extern model referencing
extern model referencing
extern model referencing
Hey everybody,
at first, I'm using OMEdit (OpenModelica) to script and jmodelica to build FMUs and to simulate.
Now I've build two models (submodel1 and submodel2). I like to connect those two models in another model (mainmodel). In Openmodelica editor no problem, because both submodels are loaded in the work directory.
But now I wanted to load the mainmodel in jmodelica, which don't know those two submodels. So an error occurs. I need to load those two models in jmodelica.
Is there a way to reference both models in the programcode?
for example instead of :
Modelica.examples.submodel1 nameofmodel;
like this:
'c:\\users\mymodels\submodel1.mo' nameofmodel;
is there a way to do so?
Otherwise, how can I import those the submodels in jmodelica?
Sorry, I'm not so familiar with Modelica/jModelia and I read and did a lot of tutorials, but can't solve this problem.
Thanks in advanced!
Greetings
Julian
Re: extern model referencing
The uses-annotation perhaps? I am not familiar with jmodelica though.
- sjoelund.se
- 1700 Posts
Re: extern model referencing
I solved the problem by putting the models in the folder of the standard modelica models (C:\JModelica.org-1.17\install\ThirdParty\MSL\Modelica)...not nice but it works...
however, if somebody has a tip for me, to refer at extern models, would be nice
- Index
- » Programming
- » Modelica Language
- » extern model referencing