Skip to content

Commit

Permalink
Merge pull request modelica#2572 from HansOlsson/FixExample2564
Browse files Browse the repository at this point in the history
Corrected examples
  • Loading branch information
HansOlsson committed Jun 10, 2020
2 parents 58de6ea + 5376fb3 commit 3ea5c47
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 3ea5c47

Please sign in to comment.