Simulation temperature of a particular component

Hello
Is there any way to set the simulation temperature of a particular component? I know that we can use .temp to set the temperature for the whole circuit but if I want to set different operating temperatures for different devices, say for example a MOSFET and a diode, is it possible?
I am doing a test with the attached circuit that gets the I-V curve of a MOSFET but I can only change the temperature using the .temp directive.
Thanks!


2.- Mosfet-temp-test - external-def-particular-temp.qsch (3.4 KB)

See

In short, it is an instance parameter.

Thank you very much to both. I am not familiar with temperature analysis and couldn’t find how to put the temperature value for a particular component.
I have seen that it even accepts the value from a external voltage source but it does not change along the simulation. It just take a fixed value.
Do you think it is possible to change the operating temperature along the simulation?
(FYI: I am investigating the possibilities of doing electrothermal simulation of power converters including both electrical and thermal analysis.)
Thanks!
3.- Mosfet-temp-test-voltage-source.qsch (4.4 KB)

Instance and model parameters cannot be changed during a .tran simulation. In short, as far as I know, there is no way to change circuit temperature through a .tran simulation in SPICE.

There are native devices with self-heating characteristics. The temperature of these devices can change over time based on their operating conditions. To my knowledge, there are two native devices with this nature in Qspice: resistors and MEXTRAN transistors with RTH and CTH parameters for self-heating.

Help in R.Resistor
image

Help in Q.Bipolar Transistor - level 504 MEXTRAN
image

Manufacturer custom models like Infineon level 3 MOS, Rohm level 2 MOS, Wolfspeed level 3 MOS, include a temperature node in their device model equations, allowing for continuous temperature changes through a node setpoint. I have also observed this technique in other simulation platforms; it appears that they primarily manipulate the model by incorporating a thermal node to adjust certain key parameters in the model over time.