Heat-exchanger models in the SOKRAT-BN code which are used to calculate problems with boiling sodium in channels with different geometry are presented. The results of modeling of different experiments on boiling of liquid-metal coolant are presented. Good agreement is obtained between the SOKRAT-BN calculations and experiments performed with stationary and nonstationary boiling of sodium. It is shown that the thermohydraulic processes occurring in reactor facilities during design-basis and beyond design basis accidents can be calculated correctly using the thermohydraulic module of the SOKRAT-BN computer code.