Skip to content

Commit

Permalink
PDE extensin documentation
Browse files Browse the repository at this point in the history
Euler equations

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk/doc@21989 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jan Silar committed Aug 26, 2014
1 parent faed7a5 commit a3f75f0
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 4 deletions.
Binary file modified PDEInModelica/doc/_PDEInModelica.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions PDEInModelica/doc/comparisonToSaldamli.lyx
Expand Up @@ -1741,7 +1741,7 @@ status open
\begin_layout Plain Layout

\family typewriter
class DomainCircular2D
class DomainHalf-circle
\end_layout

\begin_layout Plain Layout
Expand Down Expand Up @@ -1870,7 +1870,7 @@ coord = c + radius * r * { cos(Pi*(1/2 + v), sin(Pi*(1/2 + v) };
\begin_layout Plain Layout

\family typewriter
end DomainCircular2D;
end DomainHalf-circle;
\end_layout

\end_inset
Expand Down
Binary file modified PDEInModelica/doc/comparisonToSaldamli.pdf
Binary file not shown.
145 changes: 143 additions & 2 deletions PDEInModelica/doc/modelExamples.lyx
Expand Up @@ -211,6 +211,10 @@ lstparams "breaklines=true,caption={Advection equation -- flat model},captionpos
\end_layout

\begin_layout Paragraph
\begin_inset Note Note
status open

\begin_layout Plain Layout
Generated C code
\begin_inset Newline newline
\end_inset
Expand All @@ -224,6 +228,11 @@ lstparams "breaklines=true,caption={Advection equation -- \"generated\" C code},
\end_inset


\end_layout

\end_inset


\end_layout

\begin_layout Subsection
Expand Down Expand Up @@ -328,11 +337,15 @@ lstparams "breaklines=true,caption={String model in Modelica},captionpos=b,frame

\end_layout

\begin_layout Paragraph
\begin_inset Note Note
status open

\begin_layout Paragraph
Generated C code
\end_layout

\begin_layout Standard
\begin_layout Plain Layout
\begin_inset CommandInset include
LatexCommand lstinputlisting
filename "../PDESolver/models/string.c"
Expand All @@ -343,7 +356,7 @@ lstparams "breaklines=true,caption={String equation -- \"generated\" C code},cap

\end_layout

\begin_layout Standard
\begin_layout Plain Layout
\begin_inset Note Note
status open

Expand All @@ -354,6 +367,11 @@ přidat
\end_inset


\end_layout

\end_inset


\end_layout

\begin_layout Subsection
Expand Down Expand Up @@ -1841,6 +1859,129 @@ lstparams "breaklines=true,caption={Vibrating membrane in air},captionpos=b,fram
\end_inset


\end_layout

\begin_layout Subsection
Euler equations
\end_layout

\begin_layout Standard
\begin_inset Formula
\begin{eqnarray*}
\frac{\partial\varrho}{\partial t} & = & -\frac{\partial}{\partial x}\left(\varrho v\right)\\
\frac{\partial}{\partial t}\left(\varrho v\right) & = & -\frac{\partial p}{\partial x}\\
\varrho\frac{\partial\varepsilon}{\partial t} & = & -p\frac{\partial v}{\partial x}
\end{eqnarray*}

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Formula $\varrho$
\end_inset

..
density,
\begin_inset Formula $v$
\end_inset

..
velocity,
\begin_inset Formula $p$
\end_inset

..
pressure,
\begin_inset Formula $\varepsilon$
\end_inset

..
specific internal energy
\end_layout

\begin_layout Standard
state equation
\begin_inset Formula
\begin{align*}
p & =\varepsilon\varrho(\gamma-1)
\end{align*}

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Formula $\gamma=c_{p}/c_{v}$
\end_inset

..
gas constant (fraction of specific heat capacities at constant pressure
and volume)
\end_layout

\begin_layout Standard
\begin_inset Note Note
status open

\begin_layout Subsection
Euler equations -- two-temperature model
\end_layout

\begin_layout Plain Layout
euler equations
\end_layout

\begin_layout Plain Layout
\begin_inset Formula
\begin{eqnarray*}
\varrho_{t} & = & -\left(\varrho v\right){}_{x}\\
\left(\varrho v\right){}_{t} & = & -(p^{i}+p^{e})_{x}\\
\varrho\varepsilon_{t}^{e} & = & -p^{e}v_{x}-W_{x}-\beta\left(T_{e}-T_{i}\right)\\
\varrho\varepsilon_{t}^{i} & = & -p^{i}v_{x}+\beta\left(T_{e}-T_{i}\right)
\end{eqnarray*}

\end_inset


\end_layout

\begin_layout Plain Layout
heat transfer
\end_layout

\begin_layout Plain Layout
\begin_inset Formula
\[
W=\kappa(T)T_{x}
\]

\end_inset


\end_layout

\begin_layout Plain Layout
state equations
\end_layout

\begin_layout Plain Layout
\begin_inset Formula
\begin{align*}
p_{e} & =\varepsilon_{e}\varrho(\gamma-1) & p_{i} & =\varepsilon_{i}\varrho(\gamma-1)\\
\varepsilon_{e} & =\frac{T_{e}Z\, k_{B}}{\left(\gamma-1\right)A\, m_{u}} & \varepsilon_{i} & =\frac{T_{i}k_{B}}{\left(\gamma-1\right)A\, m_{u}}
\end{align*}

\end_inset


\end_layout

\end_inset


\end_layout

\end_body
Expand Down

0 comments on commit a3f75f0

Please sign in to comment.