kicad2ems.pcbqs.pdn.stack

A rail's PDN impedance over all of its plane pairs: every layer where the rail
tree (rail.Rail) is a plane, against the nearest ground plane above and below
it, each pair a cavity (cavity.py's equations on its own mesh), solved together;
the decaps, the regulator and the loads attached through their own copper; the
rail's nets without a plane (a filtered branch after a bead, a regulator's
output before its sense resistor) as lumped nodes.

    rail = Rail(board, '+3V3', loads={'U21': 2.0})
    pdn = RailPDN(rail, vrm=dict(R=1e-3, L=30e-9))
    Z = pdn.z(f)  # {load: |Z(f)| complex}, with every decap and the regulator
                  # attached
    pdn.parts     # per part: its connection (cavity vias or lumped node), mount
                  # L, element

Joined:
  * two cavities sharing the rail plane (a plane between two grounds) at every
    ground via through both their grounds; two sharing a ground at every rail
    via through both rails; and both at every part's port (its vias);
  * a part on a plane net through its pad's copper to the vias there, which
    reach the plane: the path's inductance mu0 h N (h: the height of that copper
    over the nearest plane, N: the squares from the pad to the vias, from a
    conduction solve of that copper) on each side, and the via pair's mu0 h / pi
    ln(s / r) (s: the distance from its rail vias to its ground vias), shared by
    the vias of each side;
  * a series part (a sense resistor, a bead) between its two sides: R, a bead
    R_dc + (j w L || R_100) with |Z| = R_100 at 100 MHz, plus its package's ESL.
Each cavity's voltage is the rail plane's minus its ground's, the ground planes
taken as joined at the ports.
class kicad2ems.pcbqs.pdn.stack.Cavity(rail_layer: str, ground_layer: str, geom: object, d: float, er: float, tand: float, t: float, nodes: numpy.ndarray = None, tris: numpy.ndarray = None, K: object = None, M: object = None)[source]
class kicad2ems.pcbqs.pdn.stack.Conn(vias: list = <factory>, node: str = None, L_path: float = 0.0, R_path: float = 0.0, h: float = 0.0, why: str = '')[source]
How one side of a part meets the PDN: the vias of its pad's copper that
reach a plane (cavity), or a lumped node (a net with no plane).
kicad2ems.pcbqs.pdn.stack.cap_parasitics(p, esr=None, esl=None)[source]
(ESR, ESL) of a capacitor part p: its own fields (ESR, ESL, Sim.esr ...),
else its package's (ESL_PKG, an electrolytic's ESR_PKG), else esr / esl (a
tool's assumed values; R-E14: the near field's input capacitors had all
taken one ESR and ESL).