DC IR drop of a net's copper with Elmer: steady current conduction in the 3D
copper and via barrels.
python -m kicad2ems.fem.elmer.dc board.kicad_pcb --net VHB --source L3 \
--load Q1=0.67 --load Q2=0.67 --out dc_vhb
The source part's pads on the net are held at 0 V; each load draws its current
through its pads on the net as one equipotential terminal. The copper is the
layered mesh the thermal tool solves on (layered.py: the board's triangles swept
through the stack as wedges, the net's copper and via barrels its bodies;
R-D23). Several --net are one conductor (a rail
through 0 ohm links joined copper); series parts (sense resistors, beads) are
not modelled: pcbqs.pdn does rail trees and returns, this is the 3D check of
their copper. Writes <out>/dc.json (each load's voltage, the copper's loss, the
mesh) and Elmer's case in <out>/elmer.
from kicad2ems.fem.elmer.dc import solve
r = solve(board, {'VHB'}, 'L3', {'Q1': 0.67}, out='dc_vhb')
# r['V']['Q1'] (V, negative: the drop), r['loss_W']