% Transmission lossclearall;closeall;clcrho=.6;c=486;% c [m/s] and rho have been computed % for a temperature of 600 Fahrenheit % cross-sectional area of pipe a1=.025;s1=pi*a1^2;%m a2=.055;s2=pi*a2^2;% m a3=.025;s3=pi*a3^2;% m L1=.5;L2=0.15;L3=0.1;% m freq=linspace(1,11000,1000);forii=1:1000w=freq(ii);k=w/c;f(ii)=w/(2*pi);% with mufflerTout=[1;1];% dummy values which don't influence% the final result of the transmission lossT1=[cos(k*L1)i*rho*c/s1*sin(k*L1);i*s1/rho/c*sin(k*L1)cos(k*L1)];T2=[cos(k*L2)i*rho*c/s2*sin(k*L2);i*s2/rho/c*sin(k*L2)cos(k*L2)];T3=[cos(k*L3)i*rho*c/s3*sin(k*L3);i*s3/rho/c*sin(k*L3)cos(k*L3)];T_tot_1=T1*T2*T3;Tin=T_tot_1*Tout;Powin(ii)=.5*Tin(1,1)*Tin(2,1);Powout(ii)=.5*Tout(1,1)*Tout(2,1);endloss=-10*log10(Powout./Powin);plot(f,loss)xlabel('Frequency [ HZ ]')ylabel('dB')title('Transmission Loss')
In case this is not legally possible: Jleonar grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
Original upload log
The original description page was here. All following user names refer to en.wikibooks.