A mathematical model of thermodynamic processes during oscillatory motion of liquids in a porous medium has been developed, taking into account the thermal interaction of an oil reservoir with surrounding rocks and phase transitions due to the dissolution of paraffin. Analytical dependences of temperature on time, distance to the well, and parameters of the porous reservoir are obtained, which substantiate the possibility of increasing oil recovery from reservoirs when exposed to pressure wave fields.