Bulk Material

Any chance to create such a simulation? I tried using Molecular Script, but Blender just dying from so many particles.