A thermal equilibrium approach to modelling multiple solid–fluid interactions with phase transitions, with application to cavitation. (December 2022)