Main Page: Difference between revisions

From Mechanomy Composer Wiki
Jump to navigation Jump to search
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 7: Line 7:
* [[__Mechanomy_analyze]]
* [[__Mechanomy_analyze]]


== [[Common Errors]] ==
== Common Errors ==
[[Common Errors]]




== Modelica Format Reference ==
== Modelica Language Reference ==
Models are formatted according to [https://www.modelica.org/documents/ModelicaSpec34.pdf Modelica language specification 3.4]
Models are formatted according to [https://www.modelica.org/documents/ModelicaSpec34.pdf Modelica language specification 3.4]


Line 25: Line 26:
  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.
* [[arrays]]
* [[overall model structure]]
* [[functions]]
* [[comments]]
* [[keywords]]
* [[declarations]]
 
** [[constant]]
Multiple models can be defined in one file through the [[package]] format.  Package files are also used to construct libraries of models, in a structured hierarchy.
** [[parameter]]
* [[equations]]
** [[connect]]ing elements
* [[annotation]]
** [[__Mechanomy_analyze]]


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

Latest revision as of 15:47, 10 June 2020

Welcome to the Composer Wiki

Composer Tutorials

coming soon

Composer Reference

Common Errors

Common Errors


Modelica Language 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.

Multiple models can be defined in one file through the package format. Package files are also used to construct libraries of models, in a structured hierarchy.

Modelica Standard Library Reference

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