kicad2ems.pcbqs.circuit.warm

pcbqs.circuit --warm N (R-E9): the circuit run at its parts' own
temperatures. The run's losses go to the board's thermal model (pcbqs.thermal,
each case its own map); each part is set to the temperature the map gives it
(its pads', or its junction's where its footprint gives thermal.theta) and the
board's copper to its copper's mean (the mean under the copper's own loss where
the run has its map, --fields), and the circuit is run again, up to N times,
until no part moves by more than TOLERANCE_K. Their resistances follow their
temperatures as circuit/temperature.py has it; nothing else in the circuit does
(a vendor model's own temperature is its own).

<out>/circuit.json gets 'warm': each pass's largest move and its hottest part,
and whether it settled; each case its 'temperatures_C'. <out>/thermal is the
thermal model of the last run's losses (thermal --case all).
kicad2ems.pcbqs.circuit.warm.copper_temperature(case, folder)[source]
The board copper's temperature for a case from its thermal results
folder: the mean under the copper's own loss where the case has its map
(copper-loss.npz) and the thermal model's grid; else the copper layers'
mean.
kicad2ems.pcbqs.circuit.warm.run(model, out, passes, log=<built-in function print>, thermal_args='', **run_kw)[source]
The circuit run, then up to `passes` runs again at the temperatures the
thermal model gives the last one's losses: the last run's summary
(circuit.json's), with 'warm'.
kicad2ems.pcbqs.circuit.warm.temperatures(model, summary, thermal_out)[source]
{case name: {'parts': {ref: C}, 'board': C}} from thermal --case all's
results in thermal_out.