MELGYM: A dynamic control interface for MELCOR simulations Manjavacas, Antonio Gómez-Romero, Juan Ernst, Damien Vázquez-Barroso, Manuel A. Martín-Fuertes, Francisco MELCOR Gymnasium Control MELCOR is a computer code for the simulation and safety analysis of nuclear facilities, comprising several modules for the calculation of thermal–hydraulic phenomena and aerosol physics. However, MELCOR offers limited support for interactive control, such as valve opening or flow rates redefinition, as its batch execution mode does not allow real-time modification of model parameters. To overcome this limitation, we present MELGYM, a Gymnasium-based interface that facilitates interactive control in MELCOR. MELGYM enables the training of reinforcement learning agents on MELCOR simulations, introducing real-time interaction and enabling the definition of reward functions based on simulation outcomes. 2025-11-03T09:49:54Z 2025-11-03T09:49:54Z 2025-05 journal article Manjavacas, A., Gómez-Romero, J., Ernst, D., Vázquez-Barroso, M. A., & Martín-Fuertes, F. (2025). MELGYM: A dynamic control interface for MELCOR simulations. SoftwareX, 30(102148), 102148. https://doi.org/10.1016/j.softx.2025.102148 https://hdl.handle.net/10481/107700 10.1016/j.softx.2025.102148 eng http://creativecommons.org/licenses/by-nc/4.0/ open access Atribución-NoComercial 4.0 Internacional Elsevier