Dynamic analysis of a thorium fuel cycle in CANDU reactors