Density functional study of condensation in capped capillaries. (18th June 2015)