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.