Text this: Thermal analysis in optical waveguides