Coupling superconducting magnet and refrigerator thermal-hydraulic models for nuclear fusion applications