How to make dynamic water with foam

Hey!
Does anyone know how to make water with foam which reacts to collisions (eg: characters etc) or even a tutorial?

Take a look at this

Thanks for the help