Thermodynamic optimization of a linear thermomagnetic motor. (25th January 2023)