- Index
- » Users
- » thoskar
- » Profile
Posts
Posts
Great, thanks! Can you please tell me where I can find the logs? Or alternatively where I can view them in OMEdit?
Hi. I am a beginner at Modelica and was wondering if it is possible to model from the command line (or alternatively from python using the OMPython package). What I mean is: in OMEdit I can set up a model by dragging for instance a ground and a resistor on to the screen and then connect the two with a line. I am wondering if it is possible to set this up from the command line some how. Maybe my sudo code below will clarify.
I am firstly wondering if this is possible, and secondly how to do this.
Sudo code:
>>> load(Modelica)
>>> import(some_path + '/Electrical/Analog/Basic/Ground.mo', name='ground1')
>>> import(some_path + '/Electrical/Analog/Basic/Resistor.mo', name='resistor1')
>>> connect(ground.p, resistor1.p)
Any answer is much appreciated.
Thanks!
- Index
- » Users
- » thoskar
- » Profile