Development and application of a system analysis code for liquid fueled molten salt reactors based on RELAP5 code