Skip to content

Commit

Permalink
Remove unnecessary use of \textbf for itemize items
Browse files Browse the repository at this point in the history
Since most of these should use math, it also looks better if none of the items use boldface.
  • Loading branch information
henrikt-ma committed Jun 3, 2020
1 parent 7d466da commit 1d34f0e
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions chapters/stream.tex
Expand Up @@ -248,33 +248,28 @@ \section{Stream Operator inStream and Connection Equations}\doublelabel{stream-o
\begin{nonnormative}
Based on the above requirements, the following implementation is recommended:
\begin{itemize}
% This shouldn't be an itemized list, but a list of definitions
% faking that by using raggedright
\raggedright
\item \textbf{N = 1, M = 0:}\newline
\item $N = 1,\, M = 0$:\hfill
\begin{lstlisting}[language=modelica,mathescape=true]
inStream($m_1$.c.h_outflow) = $m_1$.c.h_outflow;
\end{lstlisting}
\item
\textbf{N = 2, M = 0:}\newline
\item $N = 2,\, M = 0$:\hfill
\begin{lstlisting}[language=modelica,mathescape=true]
inStream($m_1$.c.h_outflow) = $m_2$.c.h_outflow;
inStream($m_2$.c.h_outflow) = $m_1$.c.h_outflow;
\end{lstlisting}
\item \textbf{N = 1, M = 1:}\newline
\item $N = 1,\, M = 1$:\hfill
\begin{lstlisting}[language=modelica,mathescape=true]
inStream($m_1$.c.h_outflow) = inStream($c_1$.h_outflow);
// Additional equation to be generated
$c_1$.h_outflow = $m_1$.c.h_outflow;
\end{lstlisting}
\item \textbf{N = 0, M = 2:}\newline
\item $N = 0,\, M = 2$:\hfill
\begin{lstlisting}[language=modelica,mathescape=true]
// Additional equation to be generated
$c_{1}$.h_outflow = inStream($c_{2}$.h_outflow);
$c_{2}$.h_outflow = inStream($c_{1}$.h_outflow);
\end{lstlisting}

\item\textbf{All other cases:}\newline
\item All other cases:\hfill
\begin{lstlisting}[language=modelica,mathescape=true]
if $m_j$.c.m_flow.min >= 0 for all j = 1:N with j <> i and
$c_k$.m_flow.max <= 0 for all k = 1:M
Expand Down Expand Up @@ -345,8 +340,8 @@ \section{Stream Operator inStream and Connection Equations}\doublelabel{stream-o
\end{lstlisting}

The derivation of this implementation is discussed in
\autoref{derivation-of-stream-equations}. Note that in the cases N = 1, M =0 (unconnected port,
physically corresponding to a plugged-up flange), and N = 2, M=0
\autoref{derivation-of-stream-equations}. Note that in the cases $N = 1,\, M = 0$ (unconnected port,
physically corresponding to a plugged-up flange), and $N = 2,\, M = 0$
(one-to-one connection), the result of \lstinline!inStream! is trivial
and no non-linear equations are left in the model, despite the fact that
the original definition equations are nonlinear.
Expand Down

0 comments on commit 1d34f0e

Please sign in to comment.