Docsity

Optimal Fin Spacing for Heat Sinks: MATLAB Function and Plot - Prof. Brian Vick, Study notes of Mechanical Engineering

Toggle sidebar
bg1
Problem 7.6: Optimal Fin Spacing
Description
Heat sinks are often attached to electronic devices to increase the cooling efficiency and thereby
lower the temperature of the device. One common configuration of these heat sinks is an array
of pin fins as shown.
Given the overall dimensions of a heat sink consisting of pin fins, it is desirable to know the
optimal fin spacing, Sopt. The empirical formula for the optimal spacing is
4/1
3/1
3/2
75.2
)/1(
/2
Ra
D
H
DS
DS
D
S
opt
optopt
D = diameter (m)
H = height (m)
Ra = Rayleigh #
Objective
Write a function M-file to compute the optimal spacing given D, H, and Ra. Use your function
to plot Sopt/D versus Ra for H/D = 5, 10, 15, 20 over the range 300 < Ra < 10000.
Algorithm
BEGIN ‘SoptStudy’
INPUT: H, Ra
Compute Sopt using ‘Sopt’ for all H, Ra values
Plot Sopt vs Ra at each H value
END ‘SoptStudy’
BEGIN ‘Sopt’
INPUT: D, H, Ra
SoptGuess = D
Compute Sopt using a ‘fzero’
OUTPUT Sopt
END ‘Sopt’
1
pf3

Partial preview of the text

Download Optimal Fin Spacing for Heat Sinks: MATLAB Function and Plot - Prof. Brian Vick and more Study notes Mechanical Engineering in PDF only on Docsity!

Problem 7.6: Optimal Fin Spacing

Description

Heat sinks are often attached to electronic devices to increase the cooling efficiency and thereby

lower the temperature of the device. One common configuration of these heat sinks is an array

of pin fins as shown.

Given the overall dimensions of a heat sink consisting of pin fins, it is desirable to know the

optimal fin spacing, S opt. The empirical formula for the optimal spacing is

1 / 4 1 / 3 ( 1 / )^2 /^32.^75

Ra D

H

S D

S D

D

S

opt opt opt

D = diameter (m)

H = height (m)

Ra = Rayleigh

Objective

Write a function M-file to compute the optimal spacing given D, H , and Ra. Use your function

to plot Sopt / D versus Ra for H/D = 5, 10, 15, 20 over the range 300 < Ra < 10000.

Algorithm

BEGIN ‘ SoptStudy ’

INPUT: H, Ra

Compute Sopt using ‘Sopt’ for all H, Ra values

Plot Sopt vs Ra at each H value

END ‘ SoptStudy ’

BEGIN ‘Sopt’

INPUT: D, H, Ra

SoptGuess = D

Compute Sopt using a ‘fzero’

OUTPUT Sopt

END ‘Sopt’

MATLAB Codes

Function M-file

function Sopt = Sopt(D, H, Ra) % SOPT: Computes the optimal spacing between horizontal pin fins % % Syntax: Sopt = Sopt(D, H, Ra) % % Input: D = Diameter (m) % H = Overall vertical dimension (m) % Ra = Rayleigh # % % Output: Sopt = Optimal fin spacing (m) f = @(S) S/D (2 + S/D)/(1 + S/D)^(2/3) - 2.75(H/D)^(1/3)*Ra^(-1/4); SoptGuess = D; Sopt = fzero(f, SoptGuess);

Driver Program

function SoptStudy % SoptStudy: Study of optimal spacing for horizontal pin fins %% --- input parameters D = 1; H = 5:5:20; Ra = linspace(300,10000); %% --- compute and store Sopt values SoptData = zeros(length(H) , length(Ra)); for i = 1:length(H) for j = 1:length(Ra) SoptData(i,j) = Sopt(D, H(i),Ra(j)); end end %% --- plot Sopt results close all plot(Ra, SoptData,'linewidth',1.5) xlabel('Rayleigh #, Ra') ylabel('Sopt / D') ylim([0,1]) legend('H/D = 5','H/D = 10','H/D = 15','H/D = 20')