Assinging a mass to a particle and applying displacment BC
Hi,
I am new to YADE. My code currently has on,ly two particles that just stay there. I have few questions:
1. How do I define a mass to my particle?
2. I want to apply a velocity boundary condition on my second ball. Lets say 0.005t .
Thank you for your help!
My CODE:
# DATA COMPONENTS
# add 2 particles to the simulation
# they the default material (utils.defaultMat)
O.bodies.append([
# fixed: particle's position in space will not change (support)
sphere(
# this particles is free, subject to dynamics
sphere(
])
# FUNCTIONAL COMPONENTS
# simulation loop -- see presentation for the explanation
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
]
# set timestep to a fraction of the critical timestep
# the fraction is very small, so that the simulation is not too fast
# and the motion can be observed
O.dt=.5e-
# save the simulation, so that it can be reloaded later, for experimentation
O.saveTmp()
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Najm
- Solved:
- Last query:
- Last reply: