模型注释

Modelica comments

Modelica 规范是否禁止以下示例代码中给出的注释类型? 我正在使用的工具将注释移到下一个分号后面。

within ;
model HeatingResistor_Comment "Heating resistor"
  extends Modelica.Icons.Example;

  Modelica.Electrical.Analog.Basic.HeatingResistor heatingResistor(
    R_ref=100,
    alpha=1e-3,   // taken from Meyer 2016 paper
    T_ref=293.15, // this is 20C
    i(start=0));
  Modelica.Electrical.Analog.Basic.Ground G;
  Modelica.Electrical.Analog.Sources.SineVoltage SineVoltage1(
    V=220,
    freqHz=1);
  Modelica.Thermal.HeatTransfer.Components.ThermalConductor thermalConductor(G=50);
  Modelica.Thermal.HeatTransfer.Celsius.FixedTemperature fixedTemperature(T=20);

equation
  connect(SineVoltage1.n, G.p);
  connect(heatingResistor.heatPort, thermalConductor.port_a);
  connect(SineVoltage1.p, heatingResistor.p);
  connect(G.p, heatingResistor.n);
  connect(thermalConductor.port_b, fixedTemperature.port);

end HeatingResistor_Comment; 

此示例的副本也在这里(语法突出显示):
https://gist.github.com/thorade/c1a0447f2f5c05aefb9e

如果您使用的是 OpenModelica,那么很遗憾,评论会被移动。 我们正计划修复该问题,但这需要一些时间。