Text this: Theoretical analysis of sewing needle heating and cooling