🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Export contact particle ID with EDEMpy

User: "Yang_QI1"
Altair Community Member
Updated by Yang_QI1

Hi anyone,

I am trying to get ids of particles in contact with each other using EDEMpy. I only want information of particle conatacting with particle and I have used two methods.
1.contactids = deck.timestep[tstep].contact.surfSurf.getIds()
2. contacts = deck.timestep[tstep].contact.surfSurf.getContacts()

contactids = contacts[:,[1,3]]

I previously thought these two methods should return identical results, both returns contact particle pairs.
However, I noticed that the two methods generate different results and I am confused about the reasons. I would like to know what exactly does the two functions: contact.surfSurf.getIds() and contact.surfSurf.getContacts() returns? Why is there a difference?

Many thanks,

Jason

Find more posts tagged with