summaryrefslogtreecommitdiff
path: root/1223/CH8/EX8.2/Ex8_2.sce
blob: ceca6c52f5e63ba9acc401380c766b3e8bf6242c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear;
clc;
//Example 8.1
//let thermal resistance parameters be R
Rdcase=1.75;//degree celsius per watt
Rcsnk=1;//degree celsius per watt
Rsamb=5;//degree celsius per watt
Rcamb=50;//degree celsius per watt
Tamb=30;//ambient temperature 
Tjmax=150;//maximum junction temperature
Tdev=150;//device temperature
//when no heat sink is used
P=(Tjmax-Tamb)/(Rdcase+Rcamb);
printf('\nmaximum power dissipation=%.2f W\n',P)
//when heat sink is used
P=(Tjmax-Tamb)/(Rdcase+Rcsnk+Rsamb);
printf('\nmaximum power dissipation=%.2f W\n',P)