Main Page: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
== Modelica Format Reference == | == Modelica Format Reference == | ||
Models are formatted according to [https://www.modelica.org/documents/ModelicaSpec34.pdf 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. Comments are indicated by the double forward slash. | |||
A quick reference to Modelica formatting. | A quick reference to Modelica formatting. | ||
* [[overall model structure]] | * [[overall model structure]] |
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. Comments are indicated by the double forward slash.
A quick reference to Modelica formatting.
Modelica Standard Library Reference
A quick reference to the Modelica Standard Library, see also [1]