Volume function in relation to diameter