particlerate

Submitted by ehsan on Thu, 06/27/2013 - 19:37

HI all
I see doc but I dont understand what is the particlerate!or how particlerate insert particles?
in one example:
nparticles 1000 particlerate 5000 insert_every 1000
how particlerate can be biger than nparticle?
please help me

thank you

cstoltz | Fri, 06/28/2013 - 04:20

Particle rate is how fast you're trying to insert particles, i.e. # particles / sec. In the example you quote, a particle rate of 5000 particles/sec means that the simulation will try to create the 1000 particles specified in 0.2 seconds.

maysmech | Fri, 07/05/2013 - 17:52

Hi,
So what is the role of insert_every 1000 if you mean it is every 0.2 sec?

cstoltz | Tue, 07/09/2013 - 11:58

The insert_every setting describes how often the simulation tries to put the particles into the system. You can think of the particle insertion as really occurring as a series of insertions. The insert_every determines how often those insertions occur. Your particle rate, insert_every, and time step will collectively determine how many particles are inserted with each insertion.

See the documentation for the fix_insert commands for more details.