fixed Uwi and Uwd for an arbitrary number of disks