Safe nuclear reactor using thorium fuel