Thermo

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

clc,clear all

P1=input('pressure value as desired 1-4 condensor');


P2=input('pressure value as desired 2-3 boiler');
T3=input('enter temperature value boiler');
efficiency_of_pump=input('isentropic efficiency of pump equal to the average percentage of grou
efficiency_of_turbine=input('isentropic efficiency of turbine equal to the average percentage o
% saturated liquid state 1
h1=input('enter value of h1 from table A-5');
v1=input('enter value of v1 from table A-5');
%for h2
Win=v1*(P2-P1);
h2=Win+h1;
%for h3
h3=input('enter value of h3 from table A-6 at p3 and t3 superheated');
s3=input('enter value of s3 from table A-6 at p3 and t3 superheated');
%for h4
s4=input('enter value of s4 at p4 from A-5');
sf=input('enter value of sf at p4 from A-5');
sg=input('enter value of sg at p4 from A-5');
sfg=input('enter value of sfg at p4 from A-5');
if sf<s4 && s4<sg
x=(s4-sf)/sfg
hf=input('enter value of hf at p4 from A-5');
hg=input('enter value of hg at p4 from A-5');
h4=hf+x*(hg-hf);
elseif s4>sf
h4=input('enter value of h4>hg from A-6 superheated');
else
disp(s4)
h4=input('enter value of h4 either as hf or hg from A-5');
end

x = 0.9413

% IDEAL EFFICIENCY
qin=h3-h2;
qout=h4-h1;
wnet=qin-qout;
eta=(wnet/qin)*100

eta = 39.7200

fprintf('The ideal efficiency is %f%%\n',eta)

The ideal efficiency is 39.720024%

% ACTUAL EFFICIENCY
h4a=3919.4-(0.91*(3919.4-2407.752));
h2a=(1.803184+104.3954)/0.86;
qin1=h3-h4a;
qout1=h2a-h1;
Wnet=qin1-qout1;

1
actual_efficiency=(Wnet/qin)*100

actual_efficiency = 36.1637

fprintf('The actual efficiency is %f%%\n',actual_efficiency)

The actual efficiency is 36.163732%

You might also like