arun3688

Results 95 comments of arun3688

@Nobby-n Now the variable filter option is added to `ModelicaSystem` constructor with this commit https://github.com/OpenModelica/OMPython/commit/22842296fea438c315f7638f53f6eb68571b10c8, you can use it in following ways , ``` >>> from OMPython import ModelicaSystem >>>...

@bilderbuchi the `ModelicaSystem()` API uses a different approach to produce the simulation results, it basically builds the model first and then` simulate()` API uses the simulation executable to produce the...

@bilderbuchi , I guess we could use the existing `port `argument to connect to an existing omc connection, I can add that feature

@alidaf I think you have not import ModelicaSystem class, OMCSessionZMQ and ModelicaSystem are two different classes ``` >>> from OMPython import OMCSessionZMQ >>> omc =OMCSessionZMQ() >>> omc.sendExpression("getClassNames()") ``` To use...

@alidaf But you are not getting any errors when running from normal host systems, with the same line

yes you can give me the docker file and i see if i can find something

@PatronusCoder This is implemented with this commit https://github.com/OpenModelica/OMPython/commit/f64925b182436a49a03bee38c2b3f6e2167392e9 Now you can specify your own result file using the following getXXX method ``` omc.simulate(resultfile="tmpres.mat")` omc.getSolutions("time", resultfile="tmpres.mat") ``` If the result file...

@PatronusCoder You can use getSimulationOptions() to see the options you can set and use obj.setSimulationOptions(stepSize=0.004) to have fixed stepsize For more information look into docs (https://www.openmodelica.org/doc/OpenModelicaUsersGuide/latest/ompython.html#enhanced-ompython-features)