List[Null, Null, Null, Null, Null, Null, Null, Notebook[List[Cell[CellGroupData[List[Cell["Equations in Declarations", "Title"], Cell[CellGroupData[List[Cell["Declaration Equations", "Section"], Cell[TextData[List["Declaration equations are usually given as part of declarations of constants or paramet", "ers. Such equations are actually required for constants, but are optional for parameters. An equation always holds, which means that the ", StyleBox["mass", Rule[FontFamily, "Courier"]], " never changes value during simulation", ". It is also possible to specify a declaration equation for a normal state variable, but this will make the variable bahave as a kind of constant.", StyleBox["\n", Rule[FontFamily, "Courier New"]]]], "Text"], Cell[TextData[List["class DecEq\n  ", StyleBox["constant Integer one \t= 1;", Rule[FontColor, RGBColor[0, 0, 1]]], "\t\t\t\t\t// Declaration equation\n  ", StyleBox["parameter Real mass \t= 22.5;\t", Rule[FontColor, RGBColor[0, 0, 1]]], "\t\t\t\t// -\"-\n  ", StyleBox["Real speed \t\t\t= 72.4;\t\t", Rule[FontColor, RGBColor[0, 0, 1]]], "\t\t\t// Declaration equation for a normal state variable\nend Deceq;"]], "ModelicaInput"]], Open]], Cell[CellGroupData[List[Cell["Modifier Equations", "Section"], Cell["Modifier equations occur for example in a variable declaration when there is a need to modify the default value of an attribut of the variable. A modifier equation replaces the declaration equation, if present, for an attribute of the specific type. A common usage is modifier equations for the start attribute of variables, the equations also occur in type definitions.\n", "Text"], Cell[TextData[List["class ModEq\n  ", StyleBox["Real speed(start = 72.4);\t", Rule[FontColor, RGBColor[0, 0, 1]]], "\t\t\t\t\t// Modifier equation\nend ModEq;"]], "ModelicaInput"], Cell["\nHere is another example of a modifier equation:", "Text"], Cell[TextData[List["type Voltage = ", StyleBox["Real(unit = \"V\", min = -220.0, max = 220.0);", Rule[FontColor, RGBColor[0, 0, 1]]]]], "ModelicaInput"]], Open]]], Open]]], Rule[FrontEndVersion, "4.1 for Microsoft Windows"], Rule[ScreenRectangle, List[List[0, 1280], List[0, 951]]], Rule[WindowSize, List[826, 853]], Rule[WindowMargins, List[List[-4, Automatic], List[Automatic, 5]]], Rule[Magnification, 1], Rule[StyleDefinitions, "MathModelica.nb"]], Null, Null, Null, Null, Null]