diyAudio (
-   Software Tools (
-   -   LTSpice: how to model temperature ? (

Bigun 13th September 2009 01:47 AM

LTSpice: how to model temperature ?
I'm not talking about how to set the global variable TEMP to model the circuit behaviour over temperature - done that.

The issue is that some components get hot (e.g. power devices) and will be mounted on heatsinks. Other devices are not mounted on the heatsink and will be at a different ambient.

Now, consider an amplifier design where a power BJT is on a heatsink at one temperature and another BJT setting the biass current for the power device and it is on a separate heatsink at a different temperature. [Don't worry about whether this is good design practice, I have a very good reason for these devices being at different temperatures.]

In order to model this I have to set different temperatures for two devices, which I can't figure out how to do :confused:

andy_c 13th September 2009 03:46 AM

1 Attachment(s)
Here's an example of passing "temp" to an individual model. In this specific case, the results should be exactly the same as if temp were not passed in. That's because temp is set to the nominal value of Tnom for a BJT, which is 27 deg C. See the documentation of Tnom in the BJT model parameters help.

Bigun 14th September 2009 10:27 PM

Thanks Andy - brilliant, it works like a dream. I even used a parameter to allow me to step through some values for only those parts mounted on the heatsink. :up:

p.s. It allowed me to verify that the temperature compensation in my circuit works (theoretically at least), which I couldn't do with a global temperature setting.

All times are GMT. The time now is 03:33 PM.

Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 18.75%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Copyright ©1999-2017 diyAudio