Foam simulation 1.0