A "method of moments" spray simulation code