Commit b089bbb3 authored by Nathan Coppin's avatar Nathan Coppin
Browse files

change mesh compataibility in hopper.py

parent e90ed53f
Pipeline #7770 passed with stages
in 4 minutes and 7 seconds
......@@ -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())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment