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

Posts

Posts

Mar-10-18 07:38:32
e.g. parameter SI.HeatFlowRate Q_ST=5 "Heat transfer rate"...
Category: Programming

Hello,

Does anyone know if there is a way to define a symbol for a variable using LaTex or HTML formatted text along with the name, unit and description of a variable? I need it for posprocessing of the OpenModelica _res.mat output files in Python matplotlib package.

I personally would have thought something like the following would work but not sure about that, and apparantly the annotations are not saved anywhere in the  _res.mat or _init.xml files.

Code:


parameter SI.HeatFlowRate Q_ST = 5 "Heat transfer rate" annotation(Symbol="Q\textsubscript{ST}");

I would appreciate it if someone could help with this.

Thanks,
Ali

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