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
114401c4
Commit
114401c4
authored
Oct 26, 2017
by
Chichi Lalescu
Browse files
fix initialization of orientations
parent
491e8bec
Pipeline
#20691
passed with stage
in 10 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bfps/DNS.py
View file @
114401c4
...
...
@@ -746,7 +746,7 @@ class DNS(_code):
def
get_random_versors
(
npoints
):
bla
=
np
.
random
.
normal
(
size
=
(
npoints
,
3
))
bla
/=
np
.
sum
(
bla
**
2
,
axis
=
1
)[:,
None
]
bla
/=
np
.
sum
(
bla
**
2
,
axis
=
1
)[:,
None
]
**
.
5
return
bla
while
nn
>
0
:
if
nn
>
batch_size
:
...
...
@@ -908,6 +908,8 @@ class DNS(_code):
particle_file
.
create_group
(
'tracers0/position'
)
particle_file
.
create_group
(
'tracers0/velocity'
)
particle_file
.
create_group
(
'tracers0/acceleration'
)
if
self
.
dns_type
in
[
'NSVEparticlesP2P'
]:
particle_file
.
create_group
(
'tracers0/orientation'
)
return
None
def
launch_jobs
(
self
,
...
...
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