Skip to content

Commit

Permalink
Corrected examples
Browse files Browse the repository at this point in the history
Note that AC_Plug was also corrected in the next "model"
Closes modelica#2564
  • Loading branch information
HansOlsson committed Jun 10, 2020
1 parent 9ce2aa7 commit 5376fb3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions chapters/connectors.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1047,8 +1047,9 @@ \subsubsection{An Overdetermined Connector for Power Systems}\doublelabel{an-ove
\begin{lstlisting}[language=modelica]
model AC_Inductor
parameter Real X[3,3], Y[3,3]; // component constants
AC_plug p;
AC_plug n;
AC_Plug p;
AC_Plug n;
Real omega;
equation
Connections.branch(p.theta,n.theta); //edge in virtual graph
// since n.theta = p.theta
Expand All @@ -1061,7 +1062,7 @@ \subsubsection{An Overdetermined Connector for Power Systems}\doublelabel{an-ove
At the place where the source frequency, i.e., essentially
variable theta, is defined, a \lstinline!Connections.root(..)! must be present:
\begin{lstlisting}[language=modelica]
AC_plug p;
AC_Plug p;
equation
Connections.root(p.theta);
der(p.theta) = 2*Modelica.Constants.pi*50 // 50 Hz;
Expand Down

0 comments on commit 5376fb3

Please sign in to comment.