Adding fluidity to the nParticles

 
 
 

To make it easier to see how the nParticles interact with the pitcher and glass objects, you can turn on the Solver Display attribute to see the nParticle collision volume. Collision volumes are a non-renderable surface offset from each nParticle radius that the nucleus solver uses when calculating collisions between Nucleus objects.

To edit Collide Width Scale and add fluidity

  1. In the Outliner, select nParticle_Water.
  2. In the Attribute Editor, click the nParticle_WaterShape tab.
  3. In the Collisions section, select Collision Thickness from the Solver Display list.
  4. Set Collide Width Scale to 0.6.
    NoteFor liquid simulations, set Collide Width Scale to a value that is one-third the nParticle object Radius value.
  5. Play the simulation, and stop at frame 30.
  6. In the scene view, dolly and tumble so that you get a close-up view of the nParticles at the bottom of the pitcher.

    The nParticles occupy the pitcher in distinct layers one on top of the other. In the bottom layer, the nParticles are evenly spaced and level, while in the upper layer, there are gaps between particles. Since the top layer of nParticles represent the surface of the liquid, the gaps between particles create a surface that is uneven and unlike the surface of water.

Increasing Incompressibility decreases the tendency of the particles to be pushed together. This forces the nParticles into a more uniform distribution throughout the volume, which creates a smoother surface for the liquid.

To set Incompressibility

  1. In the Outliner, select nParticle_Water.
  2. In the Attribute Editor, click the nParticle_WaterShape tab.
  3. In the Liquid Simulation section, set Incompressibility to 20.

More about Liquid Simulation attributes

For this tutorial, you leave the following Liquid Simulation attributes at their default values: