← back to the examples

Colloids in solvent

Colloids of diameter 5 are placed in a background solvent of Lennard-Jones particles (diameter 1), interacting through pair_style colloid in 2d. The system starts very dilute and runs at constant pressure, so the box shrinks and oscillates. In the second animation (made with dump image) the displayed box is rescaled to a fixed size each frame, so the particles appear to grow as the box shrinks.