determining contacts with getBodyIdsContacts() ?
Hi,
I am new to Yade, and I have a question concerning the determination of contacts of particles.
I want to calculate the coordination number of a binary packing. One for the bigger particles and one for the smaller particles. My idea was to use getBodyIdsConta
As an easy example I am using two spheres to tryout the functions.
I am creating two spheres with a radius of 0.5, so the distance in case of a contact should be 1.0 or less.
I am using getBodyIdsConta
The problem is, that getBodyIdsConta
kind regards
Johannes Welsch
example:
O.bodies.append([
sphere(
sphere(
])
O.engines=[
ForceResetter(),
InsertionSor
InteractionLoop(
[
[
[
),
NewtonIntegr
PyRunner(
]
O.dt=.5e-
def PrintContacts():
contacts = utils.getBodyId
if len(contacts) > 0:
print "Position Partikel 1", O.bodies[
print "Kontakte Partikel 1", utils.getBodyId
print "Partikel 1",O.forces.f(1)
O.pause()
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Robert Caulk
- Solved:
- Last query:
- Last reply: