Foam always requires an existing core fluid simulation.
Foam can be created from the core fluid, already existing splash or bubbles particles, or even photos of real foam. The particles are entirely controlled by RealFlow and the foam emitter's parameters. Foam creates typical, filament-like structures on the water surface.
For a workflow description visit the → "Foam" tutorial.