Setting a velocity of the whole particles system (using gengeo model)

Asked by Natalia Foltyn

Hi everyone,

I'm running the simulation with the sphere built with great number of particles, hitting the floor. I'm using a gengeo geometry.
I would like to set the velocity of the whole sphere (now I am just setting the gravity forces acting on the ball).
Does anyone know how to apply it?

I've found one example in the tutorial:

#add the second particle to the domain:
particle=NRotSphere(id=1, posn=Vec3(5,5,5), radius=1.5, mass=2.0)

but it is about setting a velocity for only one particle, not for the whole set and it uses createParticle class,
which I am not using, because I have my geometry built in gengeo.

Thanks for any help,

Question information

English Edit question
ESyS-Particle Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dion Weatherley (d-weatherley) said :

Hi Natalia,

Try using:

sim.setTaggedParticleVelocity (
   tag = 12345,
   Velocity = Vec3 (6,7,8)

where the particle tag is assigned in gengeo when constructing the sphere of particles.



Can you help with this problem?

Provide an answer of your own, or ask Natalia Foltyn for more information if necessary.

To post a message you must log in.