Package

From Mechanomy Composer Wiki
Revision as of 19:03, 11 June 2020 by Unknown user (talk) (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/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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;