main
John Lauer
Publish compact v5 electrical checks and six captioned progression review scenes; cooling acceptance remains open
ca514b5
"""Plot solver nodes without inventing a spatial fin temperature field."""
from pathlib import Path
import json,sys
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
R=Path(__file__).resolve().parents[1];j=json.loads((R/(sys.argv[1] if len(sys.argv)>1 else 'revisions/compact-r11/fields-package-scenario/fields.json')).read_text());p=j['packageCooling'][0]
plt.rcParams.update({'text.color':'#e9effa','axes.labelcolor':'#e9effa','xtick.color':'#d8e0ed','ytick.color':'#d8e0ed','font.size':14})
f,ax=plt.subplots(figsize=(16,9),facecolor='#101820');ax.set_facecolor('#101820')
x=range(4)
for key,label,col in [('still','Fan-off assumption: sink 8 K/W','#f1ae63'),('moving','Ducted-air assumption: sink 1.2 K/W','#71d4df')]:
t=p[key];ys=[40,40+t['sinkRiseC'],40+t['caseRiseC'],40+t['junctionRiseC']]
ax.plot(x,ys,'o-',lw=3,ms=9,label=label,color=col)
for a,b in zip(x,ys):ax.annotate(f'{b:.1f} C',(a,b),xytext=(0,12 if key=='still' else -26),textcoords='offset points',ha='center',color=col)
ax.axhline(55,color='#ff727a',ls='--',lw=1.5,label='55 C case-upper-bound shutdown threshold')
ax.set_xticks(list(x),['Ambient','Sink network node','Q1 case','Q1 junction']);ax.set_ylabel('Temperature (C)');ax.set_ylim(30,103);ax.grid(axis='y',alpha=.15);ax.legend(loc='upper left',frameon=False,fontsize=12,labelcolor='#e9effa')
f.suptitle('Q1 needs its external heat path in the model',x=.08,ha='left',fontsize=25,weight='bold');f.text(.08,.88,'R11 sensitivity study • Q1 5.5 W screening input • saved PCB • NOT thermal acceptance',fontsize=13,color='#b6c4d8')
f.text(.08,.055,'Assumed interface, airflow and lead coupling. No installed-airflow or transient validation.\nThese are lumped network nodes, not a resolved fin-temperature map. The 5 W rating is unchanged.',fontsize=12,color='#b6c4d8')
f.subplots_adjust(left=.08,right=.97,top=.83,bottom=.17);out=R/(sys.argv[2] if len(sys.argv)>2 else 'revisions/compact-r11/evidence/package-path-scenario.png');f.savefig(out,dpi=120);print(out)