Skip to content
Snippets Groups Projects
Commit 5fe30331 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

fixes escape sequences

parent 76632944
No related branches found
No related tags found
1 merge request!141Doc/fix docstrings
Pipeline #255259 passed
...@@ -34,12 +34,12 @@ def compute_statistics( ...@@ -34,12 +34,12 @@ def compute_statistics(
strict_Parseval_check = True): strict_Parseval_check = True):
"""Run basic postprocessing on raw data. """Run basic postprocessing on raw data.
The energy spectrum :math:`E(t, k)` and the enstrophy spectrum The energy spectrum :math:`E(t, k)` and the enstrophy spectrum
:math:`\\frac{1}{2}\omega^2(t, k)` are computed from the :math:`\\frac{1}{2}\\omega^2(t, k)` are computed from the
.. math:: .. math::
\sum_{k \\leq \\|\\mathbf{k}\\| \\leq k+dk}\\hat{u_i} \\hat{u_j}^*, \\hskip .5cm \sum_{k \\leq \\|\\mathbf{k}\\| \\leq k+dk}\\hat{u_i} \\hat{u_j}^*, \\hskip .5cm
\sum_{k \\leq \\|\\mathbf{k}\\| \\leq k+dk}\\hat{\omega_i} \\hat{\\omega_j}^* \sum_{k \\leq \\|\\mathbf{k}\\| \\leq k+dk}\\hat{\\omega_i} \\hat{\\omega_j}^*
tensors, and the enstrophy spectrum is also used to tensors, and the enstrophy spectrum is also used to
compute the dissipation :math:`\\varepsilon(t)`. compute the dissipation :math:`\\varepsilon(t)`.
...@@ -202,7 +202,7 @@ def compute_time_averages(self): ...@@ -202,7 +202,7 @@ def compute_time_averages(self):
.. math:: .. math::
U_{\\textrm{int}}(t) = \\sqrt{\\frac{2E(t)}{3}}, \\hskip .5cm U_{\\textrm{int}}(t) = \\sqrt{\\frac{2E(t)}{3}}, \\hskip .5cm
L_{\\textrm{int}} = \\frac{\pi}{2U_{int}^2} \\int \\frac{dk}{k} E(k), \\hskip .5cm L_{\\textrm{int}} = \\frac{\\pi}{2U_{int}^2} \\int \\frac{dk}{k} E(k), \\hskip .5cm
T_{\\textrm{int}} = T_{\\textrm{int}} =
\\frac{L_{\\textrm{int}}}{U_{\\textrm{int}}} \\frac{L_{\\textrm{int}}}{U_{\\textrm{int}}}
...@@ -469,10 +469,10 @@ def plot_basic_stats( ...@@ -469,10 +469,10 @@ def plot_basic_stats(
print('WARNING: CFL computation does not make sense for non-isotropic grids') print('WARNING: CFL computation does not make sense for non-isotropic grids')
a.plot(self.statistics['t'] / self.statistics['Tint'], a.plot(self.statistics['t'] / self.statistics['Tint'],
sresolution, sresolution,
label = '$(k_M \eta_K)^{-1}$ (spatial resolution)') label = '$(k_M \\eta_K)^{-1}$ (spatial resolution)')
a.plot(self.statistics['t'] / self.statistics['Tint'], a.plot(self.statistics['t'] / self.statistics['Tint'],
tresolution, tresolution,
label = '$\\frac{\\Delta t}{\\Delta x} \sqrt{3}\\| u \\|_\infty$ (CFL upper bound)') label = '$\\frac{\\Delta t}{\\Delta x} \\sqrt{3}\\| u \\|_\infty$ (CFL upper bound)')
a.set_ylim(top = 1.05*max(sresolution.max(), a.set_ylim(top = 1.05*max(sresolution.max(),
tresolution.max()), tresolution.max()),
bottom = 0) bottom = 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment