Analysis of granular flow in a pebble-bed nuclear reactor.