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
  • Index
  • » Users
  • » arupa54
  • » Profile

Posts

Posts

The tool is available at   "OpenModelica/testsuite/special/MatlabTranslator",  Note this tool does not translate all the matlab grammar, but translates only a subset of matlab grammar, for more information refer the document http://dx.doi.org/10.3384/ecp140961285

Dec-18-19 10:57:10
Using OMPython ModelicaSystem to generate an outfile that avoids double entries at the same time...

@olivleno, and adrpo,

I have added this feature, This is now available in the Latest OMPython See . Update the latest OMPython and test it.

Example Usage:

Code:


from OMPython import ModelicaSystem
mod=ModelicaSystem("BouncingBall.mo" , "BouncingBall");
mod.simulate(simflags="-noEventEmit")

More runtime simulation flags can be added something like below

Code:


mod.simulate(simflags="-noEventEmit -noRestart -override=e=0.3,g=9.71")

  • Index
  • » Users
  • » arupa54
  • » Profile
You are here: