Design of fluid distribution systems