A molecular dynamics method for calculating molecular volume changes appropriate for biomolecular simulation.