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
fluidparticles
MigFlow
Commits
38e9193d
Commit
38e9193d
authored
Mar 16, 2021
by
Jonathan Lambrechts
Browse files
fix
parent
a96d9865
Pipeline
#9162
passed with stages
in 4 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/time_integration.py
View file @
38e9193d
...
...
@@ -42,7 +42,8 @@ def _advance_particles(particles, f, dt, min_nsub,contact_tol,max_nsub=None,afte
vn
=
v
+
f
*
dt
/
particles
.
mass
()
vmax
=
np
.
max
(
np
.
linalg
.
norm
(
vn
,
axis
=
1
))
nsub
=
max
(
min_nsub
,
int
(
np
.
ceil
((
vmax
*
dt
*
8
)
/
min
(
particles
.
r
()))))
nsub
=
min
(
max_nsub
,
nsub
)
if
max_nsub
is
not
None
:
nsub
=
min
(
max_nsub
,
nsub
)
else
:
nsub
=
1
vmax
=
0
...
...
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