6.3 Interface Compatibility or Subtyping............................................................................................. 58
6.4 Plug-Compatibility or Restricted Subtyping.................................................................................. 59
6.5 Function-Compatibility or Function-Subtyping for Functions ...................................................... 61
6.6 Type Compatible Expressions........................................................................................................ 62
Chapter 7 Inheritance, Modification, and Redeclaration ......................................................63
7.1 Inheritance—Extends Clause ......................................................................................................... 63
7.2 Modifications ................................................................................................................................. 66
7.3 Redeclaration ................................................................................................................................. 69
Chapter 8 Equations..................................................................................................................77
8.1 Equation Categories ....................................................................................................................... 77
8.2 Flattening and Lookup in Equations .............................................................................................. 77
8.3 Equations in Equation Sections...................................................................................................... 77
8.4 Synchronous Data-flow Principle and Single Assignment Rule.................................................... 84
8.5 Events and Synchronization........................................................................................................... 84
8.6 Initialization, initial equation, and initial algorithm....................................................................... 86
Chapter 9 Connectors and Conne
ctions ..................................................................................89
9.1 Connect-Equations and Connectors ............................................................................................... 89
9.2 Generation of Connection Equations ............................................................................................. 94
9.3 Restrictions of Connections and Connectors ................................................................................. 96
9.4 Equation Operators for Overconstrained Connection-Based Equation Systems ........................... 98
Chapter 10 Arrays......................................................................................................................105
10.1 Array Declarations ....................................................................................................................... 105
10.2 Flexible Array Sizes..................................................................................................................... 107
10.3 Built-in Array Functions .............................................................................................................. 107
10.4 Vector, Matrix and Array Constructors ....................................................................................... 110
10.5 Array Indexing ............................................................................................................................. 113
10.6 Scalar, Vector, Matrix, and Array Operator Functions ................................................................ 115
10.7 Empty Arrays ............................................................................................................................... 119
Chapter 11 Statemen
ts and Algorithm Sections......................................................................121
11.1 Algorithm Sections ...................................................................................................................... 121
11.2 Statements .................................................................................................................................... 122
Chapter 12 Functions
.................................................................................................................129
12.1 Function Declaration.................................................................................................................... 129
12.2 Function as a Specialized Class ................................................................................................... 130
12.3 Pure Modelica Functions.............................................................................................................. 131
12.4 Function Call................................................................................................................................ 132
12.5 Built-in Functions ........................................................................................................................ 136
12.6 Record Constructor Functions...................................................................................................... 136
12.7 Declaring Derivatives of Functions ............................................................................................. 138
12.8 Declaring Inverses of Functions................................................................................................... 141
12.9 External Function Interface.......................................................................................................... 142
Chapter 13 Packages..................................................................................................................153