main
John Lauer
Continue compact 5 W prototype; record AIFlow continuation fix and isolated cooling envelope work
6cd702a
import json
from pathlib import Path
P=Path(__file__).resolve().parents[1];d=json.loads((P/'design/netlist.json').read_text())
s={'board':'Adom electronic load R0, 64 x 72 mm, 2 layers; engineering prototype', 'copperUm':35,'clearance':0.2,'edgeClearance':0.2,'fixedRefs':[c['ref'] for c in d['components'] if 'fixed'in c], 'wideNets':{n:[2.0,1.5,1.2] for n in ['DUT_POS','DUT_FUSED','LOAD_POS','SHUNT_P','GND']}, 'midNets':{'5V_AUX':[0.5,0.4],'V_GATE':[0.3,0.25]},'kelvin':{'U4.10':'RSH1.2','U4.9':'RSH1.3'}, 'chains':[{'refs':r,'direction':'down'} for r in [['R8','R9','R10'],['R18','R19'],['R22','R23'],['R27','R28'],['R35','R36','R37']]], 'loads':{n:{'amps':3,'maxRiseC':10} for n in ['DUT_POS','DUT_FUSED','LOAD_POS','SHUNT_P','GND']}, 'hot':{'Q1':{'watts':5,'tabNet':'LOAD_POS','maxRiseC':15,'note':'5 W compact prototype target at assumed 40 C ambient and 55 C case trip. External heatsink unresolved; board-only solver is not cooling validation.'},'D1':{'watts':1.65,'tabNet':'LOAD_POS'},'RSH1':{'watts':0.18,'tabNet':'SHUNT_P'}},'hotMaxRiseC':35, 'pours':[{'net':'GND','polygon':[[98.3,30.3],[161.7,30.3],[161.7,101.7],[98.3,101.7]],'layers':['B.Cu'],'priority':0,'connection':'solid','name':'Power return and signal reference'}], 'notPoured':['BOOST_SW','SERVO_FB','SHUNT_P_SENSE','SHUNT_N_SENSE','I_SET','DAC_OUT','SET_DIV'], 'fab':{'rules':'fab','target':'fab'},'sourcing':{'profile':'fab'},'molecule':{'pin':'medium','gridMm':2,'edgeMarginMm':2,'cornerPinsNet':'GND'},'requireEvidence':['calcs','simulation'], 'qualificationNote':'Limits are simultaneous. MOSFET5W plus diode/shunt losses are conservative separate layout screens, not one physical operating point. Heatsink contact, mounted airflow, USB impedance, contact current ratings and prototype tests remain unverified.'}
s['planes']={'GND':'B.Cu'}
s['netClearance']={'USB_VBUS':0.27}
s['loads']['5V_AUX']={'amps':0.3,'maxRiseC':10}
(P/'design/spec.json').write_text(json.dumps(s,indent=2))