Irregular variation of unbalanced force during simulation
hello:
i am doing a deposit simution contained polyhedra and shpere,particles pile up freely in a box formed by polyhedra under the action of gravity. below is my code:
from yade import polyhedra_
import random
m = FrictMat(
n = PolyhedraMat(
O.materials.
#the boundary of particle flow
v1=((0,
v2=((0,
v3=((0,
v4=((0,
v5=((2.
b1 = polyhedra_
b2 = polyhedra_
b3 = polyhedra_
b4 = polyhedra_
wall = polyhedra_
b1.shape.wire=True
b2.shape.wire=True
b3.shape.wire=True
b4.shape.wire=True
O.bodies.
#sphere particles mixed with polyhedra
sp=pack.
sp.makeCloud(
for center,radius in sp:
if radius > 0.1:
t.state.pos = center # sets polyhedron position according to sphere position
else:
t = sphere(
#simulation
O.engines = [
ForceResett
InsertionSo
Interaction
),
# GravityEngine(
NewtonInteg
PyRunner(
]
def checkUnbalanced():
print unbalancedForce()
if unbalancedForce
O.pause()
O.dt=1e-4
when the simulaiton begins, i found that the unbalanced force changed Irregularly in a small value field. what i expect is that as the number of simulation iterations increases, the unbalanced force decreases gradually.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: