Computational thermal-hydraulic modeling for nuclear fusion and fission applications