Tools for the kelvin cell simulations