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)
particle.setLinearVelocity(Vec3(-1.0,-1.0,-1.0))
sim.createParticle(particle)

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,
Natalia

Question information

Language:
English Edit question
Status:
Answered
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dion Weatherley (d-weatherley) said :
#1

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.

Cheers,

Dion

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.