kicad2ems.pcbqs.circuit.temperature¶
Parts at a temperature (R-E9). A part's temperature_C (25 C unless given)
moves what it loses by, from its values at 25 C (the datasheet's):
inductor DCR_ohm (or R_ohm) and AC_R_ohm's resistances: copper's,
COPPER_PER_K, unless tempco_per_K
resistor value x (1 + tempco_per_K dT); tempco_per_K 0 unless given (a
resistor's is ppm/K)
capacitor ESR_ohm x (1 + ESR_tempco_per_K dT); 0 unless given (an
electrolytic's ESR falls as it warms)
switch model.Ron_ohm x (1 + model.Ron_tempco_per_K dT); 0.006/K unless
given, a silicon MOSFET's (R_DS(on) 1.6x at 125 C; the
datasheet's curve gives the part's own). An ideal switch and a
subcircuit (a vendor model, with its own temperature) are not
moved
diode model.Vf_V + model.Vf_tempco_V_per_K dT; -2 mV/K unless given (a
junction's)
and the board's copper, board.temperature_C, its resistances by copper's.
pcbqs.circuit --warm sets these from the thermal model of the run's own losses,
case by case (circuit/warm.py).
- kicad2ems.pcbqs.circuit.temperature.apply(part)[source]¶
The part's values at its temperature_C, in place (resolved: numbers). Its values at 25 C are kept in part['nominal'], and a part that has them is left: applying twice is applying once.
- kicad2ems.pcbqs.circuit.temperature.at(model, temperatures)[source]¶
A copy of the model with temperatures {'parts': {ref: C}, 'board': C} set (None: the model itself).
- kicad2ems.pcbqs.circuit.temperature.copper_model(model, temperature_C)[source]¶
The copper's R-L model (copper.prepare's 'model') with its resistances at temperature_C.
- kicad2ems.pcbqs.circuit.temperature.unmoved(model)[source]¶
[(ref, why)] of the switches whose conduction the temperature does not move: only Ron_ohm is moved, and a vendor's .model (model_name) or a MOSFET given Kp_A_V2 conducts by its own parameters (--warm had reported such a switch at 110 C with its 25 C loss, saying nothing).