Foam

Starting point for foam is always an existing → core fluid simulation, but foam can also be created from splashes or bubbles.

When foam is created from splashes, the splash particles have to be saved in RPC format. Other formats, for example Alembic, have to be deactivated in the splash node's "Export" tab or  "Export Central".


 

Scene Setup

  • Set the domain's simulation state to → “Cache” (“yellow rocket”).



  • Add a "Foam" emitter from the “Hybrido” shelf.
  • Unlink the emitter from the → “Hub” in the → “Relationship Editor”.
  • Connect it with the Hybrido domain.
  • If there is a → “k Volume” daemon already connect it with the emitter.
  • Reset the scene.

 

 

If you want to use the foam emitter's “From splash” option, a splash simulation is required – the associated splash node has to be set to “Cache” as well.

What you see now is a cross in the viewport's centre, indicating that the emitter is not bounded. You can prevent the particles from leaving the domain:

  • Add a → “k Volume” daemon – if necessary – and adjust it to the scene with the R key.
  • If not done already connect the daemon with the emitter in the → “Relationship Editor” (see above).
  • Or make sure that the foam particles will be enclosed inside a container or a cube.

 

You can control the emission of particles with the parameters under → “Foam Creation”:

 

 

  • A wide variety of threshold values are used to control in which parts of the core fluid splashes will occur. These areas can be → previewed.
  • The higher the thresholds, the less particles you will get ("Angle threshold" is the only exception).
  • If you want to create foam from the core fluid only disable “From Splash”.
  • The “Emission rate” parameter is also responsible for the number of particles. With foam, this parameter is very sensitive.

 

Simulate.