Implement helper functions to allow SPH simulations to be gridded onto OctreeGrids