NetLogo Models Library:
This particle system models a particle fountain emitting particles from the bottom of the world.
In this model each particle has two main behaviors: - If there is room ahead it continues its trajectory. - If it's about to touch the edge of the world, it dies. Forces such as gravity, wind, and viscosity act on the particles as well.
A particle with an initial velocity emerges from the bottom center of world. It is subjected to the force of gravity, which slows it down and pulls it to the bottom of the world. In addition, forces of wind and viscosity are present. The maximum number of particles and particle rate can be changed with the appropriate sliders. Finally, the step of the systems which controls the precision of the system calculations can be increased or decreased, but it will change the speed of the systems since more calculations have to be done for a more precise simulation. Below, the use of each slider, button and switch is explained.
Press GO to start the particle fountain. You can then modify the settings to change how the fountain behaves. Note that once the maximum number of particles is reached, particles will cease to emerge until another particle leaves room by dying when it is about to touch the sides or ceiling.
Initial velocities: The INITIAL-VELOCITY-X and INITIAL-VELOCITY-Y sliders control the initial velocity in the x and y axes for each particle.
INITIAL-RANGE-X: To make the particle system appear more realistic, each particle can be given a different random velocity at startup. To set the random velocities, give INITIAL-RANGE-X a nonzero value. Larger values will spread the fountain out more. (Even when this switch is off, the particles will have distinct trajectories, due to their different masses.)
Gravity: Gravity acts downwards, and is implemented by adding a negative number, the GRAVITY-CONSTANT, to the y force accumulator. Gravity is unrealistic in this system, in that its acceleration changes depending on the particle's mass. This is an important characteristic of particles systems: We can create motions that do not strictly follow real-world physical rules.
Wind: The wind force sways the particles of the system left and right in the world by adding a WIND-CONSTANT-X force in the x-axis.
Viscosity: The viscosity force resists the motion of a particle by exerting an opposite force proportional to the VISCOSITY-CONSTANT to the speed of the particle. A higher VISCOSITY-CONSTANT means the particles flow easier.
Step size: A smaller step will increase the precision of the trajectories but slow down the model computation, while a large step will decrease the precision of the trajectories but speed up the model computation. Every iteration, the STEP-SIZE scales the velocity and change in location of the particle.
Maximum particle number: The number of particles in the system is bounded by the MAX-NUMBER-OF-PARTICLES slider. Once the particle count reaches the MAX-NUMBER-OF-PARTICLES limit the generation of new particles is stopped. Note that each time a particle reaches the edge of the world it dies, hence by providing room for another particle to be created.
Particle rate: The particle RATE sets the rate at which new particles are generated. A rate of 0 will stop the fountain's flow.
Move the sliders and switches to see the behaviors you get from each force. For example, by moving all sliders but GRAVITY-CONSTANT to a neutral position, you can see how gravity acts on the particles. After you have seen how each individual force acts (initial velocities, viscosity, wind, gravity coefficient), combine them to see how they act together.
Move the sliders in order to make the model look the most like a real water fountain.
Remember that you can move the sliders while the model is running.
Hide the particles and put the pen down in the CREATE-PARTICLE procedure to see the trajectories of the particles accumulate over time.
Change the position of the particle source.
Change the model to make it look like another physical phenomenon, such as lava or soap bubbles.
Make the particle system look like rain, snow, or another phenomenon by changing the model to emit particles from different locations at the top of the world.
A difficulty in this example is to detect when a particle has reached the edge of the world, so it can be made to disappear. Check the
apply-forces procedure to see how the
nobody primitives are used to do this detection.
Particle System Basic Particle System Waterfall Particle System Flame
See Particle System Basic for a list of references on particle systems.
Thanks to Daniel Kornhauser for his work on this model.
If you mention this model or the NetLogo software in a publication, we ask that you include the citations below.
For the model itself:
Please cite the NetLogo software as:
Copyright 2007 Uri Wilensky.
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
Commercial licenses are also available. To inquire about commercial licenses, please contact Uri Wilensky at firstname.lastname@example.org.