From 388081ab1d0d2565ba2dce64d7a4d94f86688847 Mon Sep 17 00:00:00 2001 From: Henrik Tidefelt Date: Tue, 22 Jun 2021 08:44:04 +0200 Subject: [PATCH] Reorder in increasing order of variability Rules should generally be presented in this order, as the lower variabilities are included in the higher ones. --- chapters/equations.tex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chapters/equations.tex b/chapters/equations.tex index 88ebe51d3..6889cd289 100644 --- a/chapters/equations.tex +++ b/chapters/equations.tex @@ -722,6 +722,7 @@ \section{Events and Synchronization}\label{events-and-synchronization} verification already at compile time. \end{nonnormative} + \section{Initialization, initial equation, and initial algorithm}\label{initialization-initial-equation-and-initial-algorithm} Before any operation is carried out with a Modelica model (e.g., simulation or linearization), initialization takes place to assign consistent values for all variables present in the model. @@ -772,11 +773,11 @@ \section{Initialization, initial equation, and initial algorithm}\label{initiali Implicitly by using the \lstinline!start!-attribute for variables with \lstinline!fixed = true!. With \lstinline!start! given by \lstinline!startExpression!: \begin{itemize} \item - For a non-discrete-time \lstinline!Real! variable \lstinline!vc!, the equation \lstinline!vc = startExpression! is added to the initialization equations. + For a variable declared as \lstinline!constant! or \lstinline!parameter!, no equation is added to the initialization equations. \item For a discrete-time variable \lstinline!vd!, the equation \lstinline!pre(vd) = startExpression! is added to the initialization equations. \item - For a variable declared as \lstinline!constant! or \lstinline!parameter!, no equation is added to the initialization equations. + For a non-discrete-time \lstinline!Real! variable \lstinline!vc!, the equation \lstinline!vc = startExpression! is added to the initialization equations. \end{itemize} \end{enumerate}