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
73dd6e9c
Commit
73dd6e9c
authored
Jul 09, 2020
by
Nathan Coppin
Browse files
resetting omega in predictor corrector
parent
d8b203c4
Pipeline
#7921
failed with stages
in 2 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/time_integration.py
View file @
73dd6e9c
...
...
@@ -85,6 +85,7 @@ def predictor_corrector_iterate(fluid, particles, dt, min_nsub=1, contact_tol=1e
vp0
=
np
.
copy
(
particles
.
velocity
())
pp0
=
np
.
copy
(
particles
.
position
())
cp0
=
np
.
copy
(
particles
.
contact_forces
())
op0
=
np
.
copy
(
particles
.
omega
())
# Predictor
#
...
...
@@ -113,6 +114,7 @@ def predictor_corrector_iterate(fluid, particles, dt, min_nsub=1, contact_tol=1e
fluid
.
advance_concentration
(
dt
)
# Reset solid velocities
particles
.
velocity
()[:,:]
=
vp0
particles
.
omega
()[:,:]
=
op0
_advance_particles
(
particles
,(
alpha
*
f0
+
(
1
-
alpha
)
*
f1
),
dt
,
min_nsub
,
contact_tol
,
after_sub_iter
=
after_sub_iter
,
max_split
=
max_split
)
# Give to the fluid the solid information
fluid
.
set_particles
(
particles
.
mass
(),
particles
.
volume
(),
particles
.
position
(),
particles
.
velocity
(),
particles
.
contact_forces
())
...
...
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