how to create bonds between particles during the simulation
Hi there,
I am trying to create bonds between particles during the simulaiton. I understand it is possible to create bonds at the beginning of the simulaiton by using the sim.createConne
particle1 = SimpleSphere(id = 0, posn = Vec3(0,2,0), radius = 0.1, mass = 1)
sim.createParti
pList.append(
particle2 = SimpleSphere(id = 1, posn = Vec3(0,2.2,0), radius = 0.1, mass = 1)
sim.createParti
pList.append(
sim.createConne
This works very well and I can check the bond interaction is running during the simulation.
However, I would like to create more bonds after the simulations start, such that I can simulate the process that particles move together once they come into contact. I thought it would be helpful to use a Runnable module to create bonds dynamically. The pieces of codes used is shown below:
particle1 = SimpleSphere(id = 0, posn = Vec3(0,6,0), radius = 0.1, mass = 1)
self.sim.
self.pList.
particle2 = SimpleSphere(id = 1, posn = Vec3(0,6.2,0), radius = 0.1, mass = 1)
self.sim.
self.pList.
self.sim.
This time, it does not work. The bond interaction is not running any more.
I cannot figure out why ESyS refused to create new bonds at the run-time. Could anybody help me solve this problem?
Thanks in advance.
Best,
Aaron
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: