Additional functions for increasing computational speed in Yade