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
6211f520
Commit
6211f520
authored
Jan 21, 2018
by
Chichi Lalescu
Browse files
add warning about nu computation
parent
db01eb7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
bfps/DNS.py
View file @
6211f520
...
...
@@ -694,6 +694,11 @@ class DNS(_code):
opt
.
injection_rate
=
self
.
parameters
[
'injection_rate'
]
if
type
(
opt
.
dealias_type
)
==
type
(
None
):
opt
.
dealias_type
=
self
.
parameters
[
'dealias_type'
]
if
(
opt
.
nx
>
opt
.
n
or
opt
.
ny
>
opt
.
n
or
opt
.
nz
>
opt
.
n
):
opt
.
n
=
min
(
opt
.
nx
,
opt
.
ny
,
opt
.
nz
)
print
(
"Warning: '-n' parameter changed to minimum of nx, ny, nz. This affects the computation of nu."
)
self
.
parameters
[
'nu'
]
=
(
opt
.
kMeta
*
2
/
opt
.
n
)
**
(
4.
/
3
)
# check value of kMax
kM
=
opt
.
n
*
0.5
...
...
Write
Preview
Supports
Markdown
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