About Modelica Classes

Modelica is the language used to define dynamic behaviors. In the Modelica language, the basic structuring element is called a class.

Classes appear in the Package Browser, under a behavior library or a logical behavior.

Class Types

A class is given a predefined type.


  • Package: such class is used to structure the hierarchy of a behavior library or logical behavior
  • Model: such class is used to contain components
  • Component: such class defines the parameters / variables of the behavior
  • Connector: such class allows linking components together
  • Function
  • Record
  • Block

Class Storage

A class is inserted in a behavior representation (either behavior library or logical behavior). However, they can be stored in another behavior representation (within the PLM database).

Class Instantiation

Classes are instantiated to create components and connectors. They appear in the Component Browser.

Protected Class

Protected classes cannot be accessed from outside its parent package.

To protect a class, you must edit its attributes and check the Properties option.