kicad2ems.fem.elmer.dc

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']
kicad2ems.fem.elmer.dc.layered_sif(m, loads, plating=0.025)[source]
The .sif on the layered mesh (layered_mesh's description, boundaries
named 'I:source' and 'I:<load>'): the current in the net's copper and
barrels, the other bodies left out of the solve.
kicad2ems.fem.elmer.dc.solve(board, nets, source, loads, out='dc', h=0.25, plating=0.025, log=<built-in function print>)[source]
Each load's voltage (V, relative to the source: negative, the drop) and
the copper's loss (W), on the layered mesh (R-D23).