WOLFRAM SYSTEM MODELER

'package'

package

Wolfram Language

In[1]:=
SystemModel["ModelicaReference.Classes.'package'"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Define specialized class package

Examples

package Library
  constant Real k = 0.1;

  type X = Real(min=0);

  model A
    ...
  end A;

  model B
    ...
  end B;
end Library;

Syntax

   [ encapsulated ][ partial] package
   IDENT class_specifier

class_specifier :
   string_comment composition end IDENT
   | "=" base_prefix name [ array_subscripts ] [ class_modification ] comment
   | "=" enumeration "(" ( [enum_list] | ":" ) ")" comment

See Modelica Grammar for further details.

Description

May only contain declarations of classes and constants. Enhanced to allow import of elements of packages.