An algorithm for simulating the energy transfer process in a moving solid-fluid mixture