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
b089bbb3
Commit
b089bbb3
authored
Jun 25, 2020
by
Nathan Coppin
Browse files
change mesh compataibility in hopper.py
parent
e90ed53f
Pipeline
#7770
passed with stages
in 4 minutes and 7 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
testcases/hopper-3d/hopper.py
View file @
b089bbb3
...
...
@@ -110,7 +110,7 @@ p2.remove_particles_flag((p2.position()[:,0] + p2.r()[:,0] <0.18))
p2
.
remove_particles_flag
((
p2
.
position
()[:,
0
]
+
p2
.
r
()[:,
0
]
>-
0.18
))
p2
.
position
()[:,
1
]
-=
0.5
p
.
clear_boundaries
()
p
.
load_msh_boundaries
(
"mesh"
+
".msh"
,
[
"Inner"
,
"Right"
,
"Left"
,
"
RightUp"
,
"RightDown"
,
"LeftUp"
,
"LeftDown"
,
"
Front"
,
"Rear"
,
"LockDown"
],
material
=
"Steel"
)
p
.
load_msh_boundaries
(
"mesh"
+
".msh"
,
[
"Inner"
,
"Right"
,
"Left"
,
"Front"
,
"Rear"
,
"LockDown"
],
material
=
"Steel"
)
p
.
write_vtk
(
outputdir
,
0
,
0
)
#
...
...
@@ -123,7 +123,7 @@ while t < tEnd :
if
t
>=
10
and
opened
==
0
:
opened
=
1
p
.
clear_boundaries
()
p
.
load_msh_boundaries
(
"mesh"
+
".msh"
,
[
"Inner"
,
"Right"
,
"Left"
,
"
RightUp"
,
"RightDown"
,
"LeftUp"
,
"LeftDown"
,
"
Front"
,
"Rear"
],
material
=
"Steel"
)
p
.
load_msh_boundaries
(
"mesh"
+
".msh"
,
[
"Inner"
,
"Right"
,
"Left"
,
"Front"
,
"Rear"
],
material
=
"Steel"
)
#Adding new particles
if
(
max
(
p
.
position
()[:,
1
])
+
max
(
p
.
r
())
<
0.6
)
and
t
>
10
and
t
<
25
:
p
.
add_particles
(
p2
.
position
(),
p2
.
r
(),
p2
.
mass
(),
v
=
p2
.
velocity
(),
tag
=
"Sand"
,
forced
=
p2
.
forced_flag
(),
contact_forces
=
p2
.
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