# Printing the temperature of a device in ngspice?

I had a simple netlist down here:

Example netlist
v1 1 0 dc 15
r1 1 0 5k
.end


Yes, I could just calculate the power lost in here which yield about 45 mW. But the thing is, is there a command for ngspice to print the temperature of certain a device?

I'm using ngspice-31.

• SPICE models don't generally include information on thermal resistance, do they? – Hearth May 18 '20 at 13:41
• @Hearth shocked that's new to me. – harieamjari May 18 '20 at 13:43
• I'm not aware of any way to get SPICE to consider thermal effects at all, but I'm not an expert in SPICE by any means. – Hearth May 18 '20 at 13:45