Developing and periodically developed flow, temperature and heat transfer in a ribbed duct