A set of routines relating to accretion disks