Size problem in yade simulation
I did a gravity deposition test in a cylinder. The following is the original code and it works.
*******
from yade import pack
#material
SoilMat=
O.materials.
#define the chamber
O.bodies.
#create foundation by making spheres in the cylinder.
sp=pack.
sp.makeCloud(
cyl=pack.
sp=pack.
sp.toSimulation
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
# update position using Newton's equations
NewtonIntegrat
# call the checkUnbalanced function (defined below) every 2 seconds
PyRunner(
]
O.dt=.2*
def checkUnbalanced():
print('%s: Unbalanced=%s' % (O.iter,
if O.iter<5000: return
if unbalancedForce
O.pause()
O.saveTmp()
*******
However, when I magnify all units 1000 times, like the following code, some sphere just went through the bottom of the cylinder and I don't know why.
*******
from yade import pack
#material
SoilMat=
O.materials.
#define the chamber
O.bodies.
#create foundation by making spheres in the cylinder.
sp=pack.
sp.makeCloud(
cyl=pack.
sp=pack.
sp.toSimulation
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
# update position using Newton's equations
NewtonIntegrat
# call the checkUnbalanced function (defined below) every 2 seconds
PyRunner(
]
O.dt=.2*
def checkUnbalanced():
print('%s: Unbalanced=%s' % (O.iter,
if O.iter<5000: return
if unbalancedForce
O.pause()
O.saveTmp()
*******
Thanks in advance!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: