Development and validation of FEM-LCORE code for the thermal hydraulics of open cores