Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TurTLE
TurTLE
Commits
5fe30331
Commit
5fe30331
authored
4 months ago
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
fixes escape sequences
parent
76632944
No related branches found
No related tags found
1 merge request
!141
Doc/fix docstrings
Pipeline
#255259
passed
4 months ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
TurTLE/DNS_statistics.py
+5
-5
5 additions, 5 deletions
TurTLE/DNS_statistics.py
with
5 additions
and
5 deletions
TurTLE/DNS_statistics.py
+
5
−
5
View file @
5fe30331
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment