part_type_step - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Sets the number and type of particles that must be generated in each step by the given particle type. Indicating a negative number for the particle count will cause the particles to emitted with a chance of -1/number. For instance, if -5 is given for the particle count, 1 particle will be emitted every 5 steps.
Parameter | Data Type | Description |
---|---|---|
ind | integer | index of the particle type |
numb | integer | number of particles |
type | integer | index of the particle type to emit |
void: This function does not return anything.
// demonstrates setting particle type 1 to generate 5 particles of type 2 each step
part_type_step(type1, 5, type2);
NOTOC