Numerical simulation of capillary-tube expansion devices