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
  • » xingfuhua16
  • » Profile

Posts

Posts

Hi, dear friend,
I am a graduate student of Chinese Academy of Sciences. I am working on Modeling and Simulation. Recently I am working on a research project which needs to call some functions in OpenModelica such as index reduction methods, BLT methods, etc. But these methods are implemented in Modelica language, our project is implemented in C++. Can I call these functions in OpenModelica from our C++ project or transform these functions in Modelica to C/C++ version code ?

I have tried the function generateCode which is described as API/command in 'Open Modelica User Guide'. But it seems not work.
such as write the command in OpenModelica Shell
generateCode(sin)


I also tried the omc +s Model.mo method which is described in 'Open Modelica System Document', but it seems not work.

I want to ask that if it is possible to generate the C code of functions which is written in Modelica, and which is the proper way to do this.

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