What is the function of the steam generator

What is the function of the steam generator