Package: Difference between revisions

From Mechanomy Composer Wiki
Jump to navigation Jump to search
(Created page with "== Package == Modelica organizes libraries in packages via the package and within keywords. === Single File Packages === Single file packages allow multiple models/functions/...")
(No difference)

Revision as of 19:03, 11 June 2020

Package

Modelica organizes libraries in packages via the package and within keywords.

Single File Packages

Single file packages allow multiple models/functions/records/types to be written and run a single Modelica file. The format is

package Container "OptionalDisplayName"
  //type definitions shared with all package models
  type 
  //record definitions shared with all package models

  //function definitions shared with all package models
  //models
  model SmallBox
  end SmallBox;


end Container;