Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TurTLE
TurTLE
Commits
22f6aca1
Commit
22f6aca1
authored
Jan 28, 2016
by
Cristian Lalescu
Browse files
add citation information
parent
bcd08299
Changes
1
Hide whitespace changes
Inline
Side-by-side
bfps/NavierStokes.py
View file @
22f6aca1
...
...
@@ -671,6 +671,16 @@ class NavierStokes(_fluid_particle_base):
self
.
compute_time_averages
()
return
None
def
compute_time_averages
(
self
):
"""
Conventions for Uint and Tint are taken from [Ishihara]_.
.. [Ishihara] T. Ishihara et al,
*Small-scale statistics in high-resolution direct numerical
simulation of turbulence: Reynolds number dependence of
one-point velocity gradient statistics*.
J. Fluid Mech.,
**592**, 335-366, 2007
"""
for
key
in
[
'energy'
,
'enstrophy'
]:
self
.
statistics
[
key
+
'(t)'
]
=
(
self
.
statistics
[
'dk'
]
*
np
.
sum
(
self
.
statistics
[
key
+
'(t, k)'
],
axis
=
1
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment