do you have an example file using foam as smoke?
you mean the foam shader in fog mode? yes, see the finesmoke sample scene