Statistical mechanics of the GENERIC framework under external forcing - Español, P. (Journal of Chemical Physics, 2023)