Skip to content

Commit 24adc6c

Browse files
rwdlnkgahansen
andcommitted
Add Flexi report document.
Co-authored-by: Rod Douglass <douglass@strallc.com> Co-authored-by: Glen Hansen <hansen@strallc.com>
1 parent 2a36c2d commit 24adc6c

189 files changed

Lines changed: 25446 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

doc/flexiReport/Centroid.pdftex

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
%PDF-1.7
2+
%�쏢
3+
%%Invocation: gs -q -dSAFER -dAutoRotatePages=/None -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress ? ? -
4+
5 0 obj
5+
<</Length 6 0 R/Filter /FlateDecode>>
6+
stream
7+
x�eVK�1 ��Y�`�8�Ng�xB���A#@h����.�3�Yt�.��q�6�A~�<��?NM��GG�4K���qnO)�Qx/(���8⾄`�Z�R�Tc��Ե1�'��,!����p_\�U$�RA�
8+
�v^s���<]dg>l9٦p:��39�
9+
��tCW�m�ې�����(ũ���;���Cfe���D����ɡ�"a! (e�L��:k-6 �X�lq�e�8�8��5�!a��0�!�Zh�HG[C�C�s�NY�4Lx����c2��Y�Q�8�-!Xd�6�c�z�qt-A�eI�8֐ch����w���w
10+
�����ws�5$�����<���v-A��p }Y.��N*i�iI�Ь�ruR�g�����jF�"�@ u�$�@z u�Nn��z:e����kF��J�UO���5.lc1CP�5o�p��^Y�gY�q�[a:���"��I�v�(5���,�^F��l= ��:������u����4YC�XX�0��'G{0eQ�� #���$ʘ�m��iHI�꽑���i��Τ��V���Co���H�T���0���ֆʎ����&EZز�
11+
X���4��� Ĕ�j�V�s�뫽̀Q��3��0no����psػ*P����oj%�� �~�@_(6�A�04�}j�q[X6�P���_=�Mn#�C-S�1��zSx��t����w�—I�=λu�>WO��~s��C��M������^�y}�ɉ������W3�԰��ĸ�ț&Q�$�p^����!N
12+
i��&�'z�I�̌O��Q�R�i���f �;��=�=���/| a�5��[!.�1Q(��pu�������endstream
13+
endobj
14+
6 0 obj
15+
838
16+
endobj
17+
4 0 obj
18+
<</Type/Page/MediaBox [0 0 430 407]
19+
/Parent 3 0 R
20+
/Resources<</ProcSet[/PDF /Text]
21+
/Font 9 0 R
22+
>>
23+
/Contents 5 0 R
24+
>>
25+
endobj
26+
3 0 obj
27+
<< /Type /Pages /Kids [
28+
4 0 R
29+
] /Count 1
30+
>>
31+
endobj
32+
1 0 obj
33+
<</Type /Catalog /Pages 3 0 R
34+
/Metadata 11 0 R
35+
>>
36+
endobj
37+
9 0 obj
38+
<</R7
39+
7 0 R>>
40+
endobj
41+
7 0 obj
42+
<</BaseFont/MZMFDL+Times-Bold/FontDescriptor 8 0 R/Type/Font
43+
/FirstChar 32/LastChar 110/Widths[
44+
250 0 0 0 0 0 0 0 0 0 0 570 250 0 0 0
45+
0 500 500 500 500 0 0 0 0 0 0 0 0 0 0 0
46+
0 722 0 722 0 0 0 0 0 0 0 0 0 0 0 0
47+
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
48+
0 0 0 0 0 0 0 0 0 0 0 0 0 0 556]
49+
/Encoding/WinAnsiEncoding/Subtype/Type1>>
50+
endobj
51+
8 0 obj
52+
<</Type/FontDescriptor/FontName/MZMFDL+Times-Bold/FontBBox[0 -158 689 691]/Flags 131104
53+
/Ascent 691
54+
/CapHeight 691
55+
/Descent -158
56+
/ItalicAngle 0
57+
/StemV 103
58+
/MissingWidth 250
59+
/XHeight 473
60+
/CharSet(/A/C/comma/four/n/one/plus/space/three/two)/FontFile3 10 0 R>>
61+
endobj
62+
10 0 obj
63+
<</Filter/FlateDecode
64+
/Subtype/Type1C/Length 1021>>stream
65+
x���kLSw��i�3�L{v����Q6n��86dj��!L.2n=��r��B�la�*�\)�#�s�qQ�ð1q�-��dJ��H�0��O{O���ʲd��o����ɓ�%�A�dT������in�o��R<)%Ȥg�g��C�#%��@
66+
9RDL�T��vp<Ƿ$�ҁ�s)%EGS�Ҵy�{��`l�ded�hj�6�}��d4�ᢝo2�4�B[����j���kͦ����� �-oyY�9�4m&A�"tD"��A
67+
b+�$����@�J"oȞ���:dd�仠/:T�Dȟ���P~��B���vl�&b�nݸͧw9*\q�P�u�V����� VjjψY���2~x���8<L+��=���g���hi�Ҏ`��� Ԡu [*����^��&���_���4֫��� =wj��f�<��>�:�X�����1t��F}���a�]��L�O_h9�Ƨi�|��',���l����$��|y( �\��FK�M�jp��AthZ�#,:~D� ��(�o��9�g��8����B�0�>hG.����}���p*N�5��q�^���:Z�A'��EH�K�`�,���۝�ap/��??���q���e�J��0�s�O�kKׯ�Esh�v�0�>dFm��V�X^��X��q�&��aǂ���f 9���7����~r�b�f�o4���N��0�9cb��ׄ��U���+u����~VkB �b1�|g��@,P�<�0�nt��.2��{���~�s��ˤ�ܲ�b�f:��\�� B��c�u)�8)�5�p/V��ku�8 ^�H�O �@N�Op��S��Bdt��`�� �59�a���l�c~-�Яa=��TX�퐭��c������h��_;�+kh,U��+�6��E޳*���׋z�}C�.��&���C " �"�
68+
�\��>�V)�I�LF������^ �GL�g=���h���c���h�%�f�F��-���P(@5��J \��
69+
endstream
70+
endobj
71+
11 0 obj
72+
<</Type/Metadata
73+
/Subtype/XML/Length 1190>>stream
74+
<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
75+
<?adobe-xap-filters esc="CRLF"?>
76+
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='XMP toolkit 2.9.1-13, framework 1.6'>
77+
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:iX='http://ns.adobe.com/iX/1.0/'>
78+
<rdf:Description rdf:about="" xmlns:pdf='http://ns.adobe.com/pdf/1.3/' pdf:Producer='GPL Ghostscript 9.55.0'/>
79+
<rdf:Description rdf:about="" xmlns:xmp='http://ns.adobe.com/xap/1.0/'><xmp:ModifyDate>2023-03-08T15:49:57-06:00</xmp:ModifyDate>
80+
<xmp:CreateDate>2023-03-08T15:49:57-06:00</xmp:CreateDate>
81+
<xmp:CreatorTool>fig2dev Version 3.2.8b</xmp:CreatorTool></rdf:Description>
82+
<rdf:Description rdf:about="" xmlns:xapMM='http://ns.adobe.com/xap/1.0/mm/' xapMM:DocumentID='uuid:b7940791-f617-11f8-0000-cce0751aacfb'/>
83+
<rdf:Description rdf:about="" xmlns:dc='http://purl.org/dc/elements/1.1/' dc:format='application/pdf'><dc:title><rdf:Alt><rdf:li xml:lang='x-default'>Centroid.fig</rdf:li></rdf:Alt></dc:title></rdf:Description>
84+
</rdf:RDF>
85+
</x:xmpmeta>
86+
87+
88+
<?xpacket end='w'?>
89+
endstream
90+
endobj
91+
2 0 obj
92+
<</Producer(GPL Ghostscript 9.55.0)
93+
/CreationDate(D:20230308154957-06'00')
94+
/ModDate(D:20230308154957-06'00')
95+
/Title(Centroid.fig)
96+
/Creator(fig2dev Version 3.2.8b)>>endobj
97+
xref
98+
0 12
99+
0000000000 65535 f
100+
0000001233 00000 n
101+
0000004305 00000 n
102+
0000001174 00000 n
103+
0000001042 00000 n
104+
0000000115 00000 n
105+
0000001023 00000 n
106+
0000001327 00000 n
107+
0000001659 00000 n
108+
0000001298 00000 n
109+
0000001932 00000 n
110+
0000003038 00000 n
111+
trailer
112+
<< /Size 12 /Root 1 0 R /Info 2 0 R
113+
/ID [<A4E6A68A3C6E8DE9CA3D7787AAB13FDF><A4E6A68A3C6E8DE9CA3D7787AAB13FDF>]
114+
>>
115+
startxref
116+
4484
117+
%%EOF

doc/flexiReport/Centroid.pdftex_t

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
\begin{picture}(0,0)%
2+
\includegraphics{Centroid.pdftex}%
3+
\end{picture}%
4+
\setlength{\unitlength}{3947sp}%
5+
%
6+
\begingroup\makeatletter\ifx\SetFigFont\undefined%
7+
\gdef\SetFigFont#1#2#3#4#5{%
8+
\reset@font\fontsize{#1}{#2pt}%
9+
\fontfamily{#3}\fontseries{#4}\fontshape{#5}%
10+
\selectfont}%
11+
\fi\endgroup%
12+
\begin{picture}(7155,6780)(1111,-6451)
13+
\put(6301,-3286){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$\int_0^9 f(\eta) d\eta$}%
14+
}}}}
15+
\end{picture}%

doc/flexiReport/Intro.tex

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
2+
\section{Introduction}\label{sec:Intro}
3+
4+
Flexi\cite{flexigeneral} is a transient, multi-dimensional fluid dynamics simulation code framework using both the discontinuous Galerkin method and Finite Volume method for discretizing the equations of mass, momentum, and energy conservation. The equations include conservation of mass, momentum, and energy and allows for linear or nonlinear, compressible, viscous or inviscid flows, and RANS turbulence modeling\cite{flexiles}. Full documentation and code is available at \url{github.com/flexi-framework/flexi}. The currently implemented features of Flexi include (\textit{c.f.,} Section 2.3 of the Flexi Project Documentation as compiled from the flexi-framework github site and given in the \textbf{references directory}):
5+
6+
\begin{itemize}
7+
\item Equation systems:
8+
\begin{itemize}
9+
\item compressible Euler equations
10+
\item compressible Navier-Stokes equations
11+
\item linear scalar advection and diffusion
12+
\end{itemize}
13+
\item Space discretization: DGSEM method:
14+
\begin{itemize}
15+
\item Legendre Gauss
16+
\item Legendre Gauss Lobatto
17+
\end{itemize}
18+
\item Time discretization - explicit Runge-Kutta methods:
19+
\begin{itemize}
20+
\item standard RK methods
21+
\item low storage RK methods
22+
\item strong stability preserving RK methods
23+
\end{itemize}
24+
\item Two- or three-dimensional domains
25+
\item Riemann solvers:
26+
\begin{itemize}
27+
\item local Lax-Friedrichs
28+
\item HLL
29+
\item HLLC
30+
\item Roe-Pike
31+
\end{itemize}
32+
\item Curved Meshes
33+
\item Nonconforming Meshes via mortar interfaces
34+
\item Shock capturing
35+
\begin{itemize}
36+
\item Employing finite volume subcells by either
37+
\begin{itemize}
38+
\item switching to finite volume subcells
39+
\item blending the finite volume operator
40+
\end{itemize}
41+
\item Several shock indicators available
42+
\end{itemize}
43+
\item Boundary conditions
44+
\begin{itemize}
45+
\item Various subsonic inflow and outflow conditions
46+
\item exact boundaries (Dirichlet)
47+
\item periodic boundaries
48+
\item slip wall (Euler wall)
49+
\item non-slip walls (Navier-Stokes wall)
50+
\item adiabatic
51+
\item isothermal
52+
\end{itemize}
53+
\item Splitform discontinuous Galerkin schemes
54+
\end{itemize}
55+
56+
The focus of the results presented here is running Flexi on classic Riemann problems in one- and two-dimensions. These include the Sod[\cite{sod1,sod2}] problem, the LeBlanc problem, the Einfeldt problem (also known as the 1-2-3 problem)\cite{einfeldt}, and the two-dimensional Sedov\cite{Sedov} and Hui\cite{Hui} problems. These problems are well documented and some have exact mathematical solutions so that the Flexi results may be compared to these solutions. Those without exact solutions will be compared to relevant published results. In presenting results no attempt has been made to determine the set of Flexi's many available parameters and their values for optimal results.
57+
58+
Although Flexi is a general viscous thermo-fluid dynamics code, this report focuses on Riemann problems and so has been setup to solve the following equation system for the dependent variables density, momentum, and energy $F_i(x, y, z) = [\rho, m_i, E]$ in conservative form:
59+
60+
\begin{eqnarray}
61+
\partial_{,t} \rho + \partial_{,i} \left( m_i \right) & = & 0, \\
62+
\partial_{,t} m_i + \partial_{,j} \left( (m_i*m_j/\rho) + P \delta_{ij}) \right) & = & 0, \\
63+
\partial_{,t} E + \partial_{,i} \left( (m_i/\rho)(E + P) \right) & = & 0
64+
\end{eqnarray}
65+
\noindent where $\rho$ is the density, $m_i = \rho v_i$ is the momentum vector ($v_i$ the velocity vector), and the total energy per unit volume, $E = \rho u + \rho v_i v_i/2$, where $u$ is the specific internal energy and $\delta_{ij}$ is the Kronecker delta function. The current Flexi release has only an ideal gas equation of state so that $P = (\gamma - 1) \rho u$, where $\gamma = C_p/C_v$ is the ideal gas ratio of specific heats.
66+
67+
68+
\begin{table}[h!]
69+
\begin{center}
70+
\caption{Conserved and Primitive Variable names used in Flexi for a \texorpdfstring{$\gamma$}-Law Ideal gas where \texorpdfstring{$R$} is the gas constant.}
71+
\label{tab:flexiVars}
72+
\begin{tabular}{|c|c|c|} \hline
73+
\textbf{Physical Symbol} & \parbox{0.3\linewidth}{\centering \textbf{Conserved Variable}} & \parbox{0.3\linewidth}{\centering \textbf{Primitive Variable}} \\ \hline
74+
$\rho$ & Density & \\
75+
$m_x = \rho v_x$ & MomentumX & \\
76+
$m_y = \rho v_y$ & MomentumY & \\
77+
$m_z = \rho v_z$ & MomentumZ & \\
78+
$E_{sd} = \rho u + \rho V^2/2$ & EnergyStagnationDensity & \\
79+
$v_x = M_x / \rho$ & & VelocityX \\
80+
$v_y = M_y / \rho$ & & VelocityY \\
81+
$v_z = M_z / \rho$ & & VelocityZ \\
82+
$E_s = E_{sd}/\rho = u + V^2/2 $ & & EnergyStagnation \\
83+
$h = u + P/\rho$ & & EnthalpyStagnation \\
84+
$s = R \left[ \frac{\ln(T)}{\gamma-1} - \ln(\rho) \right]$ & & Entropy \\
85+
$P = (\gamma - 1) \rho u$ & & Pressure \\
86+
$T = P/(\rho R) $ & & Temperature \\
87+
$V = \sqrt{v_i v_i}$ & & VelocityMagnitude \\
88+
$C = \sqrt{\gamma P/\rho}$ & & VelocitySound \\
89+
$ Ma = V/C$ & & Mach \\
90+
$T_0 = T \left[ 1+\frac{\gamma - 1}{2} Ma^2 \right]$
91+
& & TotalTemperature \\
92+
$P_0 = P \left[1+\frac{\gamma-1}{2} Ma^2 \right]^{\frac{\gamma}{\gamma-1}} $
93+
& &TotalPressure \\
94+
$\frac{\partial P}{\partial t}$ & & PressureTimeDeriv \\ \hline
95+
\end{tabular}
96+
\end{center}
97+
\end{table}
98+
99+
\noindent The primitive variables listed in Table \ref{tab:flexiVars} are calculated from the Flexi conserved variables whose names as listed may be used in post processing as described in \ref{sec:posti} to call out desired quantities to be written into the solution files.
100+
101+
When comparing Flexi results with an available exact solution, the average $L_2$-norm of the difference, $\bar{\epsilon}$, will be used where
102+
103+
\begin{eqnarray}\label{eq:error}
104+
\Delta_i & = & f_i - f_{{\mathrm{exact}}_i} \\
105+
\bar{\epsilon}(\Delta_i) & = & \frac{1}{N} \sqrt{ \Delta_i \Delta_i} \label{eq:avgerr}
106+
\end{eqnarray}
107+
\noindent where $f$ and $f_{\mathrm{exact}}$ are vectors of the Flexi and exact variables of length $N$ being examined.

0 commit comments

Comments
 (0)