Main Page: Difference between revisions

From Mechanomy Composer Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 25: Line 25:
  end ModelName;
  end ModelName;


Each declaration or equation line should be terminated with a semicolon, with arguments separated by commas. Comments are indicated by the double forward slash.
Each declaration or equation line should be terminated with a semicolon, with arguments separated by commas.
 
A quick reference to Modelica formatting.
* [[overall model structure]]
* [[comments]]
* [[declarations]]
** [[constant]]
** [[parameter]]
* [[equations]]
** [[connect]]ing elements
* [[annotation]]
** [[__Mechanomy_analyze]]


== Modelica Standard Library Reference ==
== Modelica Standard Library Reference ==

Revision as of 17:54, 3 January 2020

Welcome to the Composer Wiki

Composer Tutorials

coming soon

Composer Reference

Common Errors

Modelica Format Reference

Models are formatted according to Modelica language specification 3.4

model ModelName
  //declarations

equation
  //equations

annotation(
  experiment(StartTime=0, StopTime=1, Tolerance=0.01, Interval=0.1),
  __Mechanomy_analyze(plot2D={x:time, y: varName})
);
end ModelName;

Each declaration or equation line should be terminated with a semicolon, with arguments separated by commas.

Modelica Standard Library Reference

A quick reference to the Modelica Standard Library, see also [1]