From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 572/CH5/EX5.2/c5_2.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 572/CH5/EX5.2/c5_2.sce (limited to '572/CH5/EX5.2') diff --git a/572/CH5/EX5.2/c5_2.sce b/572/CH5/EX5.2/c5_2.sce new file mode 100755 index 000000000..b9b9e8812 --- /dev/null +++ b/572/CH5/EX5.2/c5_2.sce @@ -0,0 +1,16 @@ +// (5.2) By steadily circulating a refrigerant at low temperature through passages in the walls of the freezer compartment, a refrigerator maintains the freezer compartment at 5C when the air surrounding the refrigerator is at 22C. The rate of heat transfer from the freezer compartment to the refrigerant is 8000 kJ/h and the power input required to operate the refrigerator is 3200 kJ/h. Determine the coefficient of performance of the refrigerator and compare with the coefficient of performance of a reversible refrigeration cycle operating between reservoirs at the same two temperatures. + + +//solution + +//variable initialization +funcprot(0) +Qcdot = 8000 //in kj/h +Wcycledot = 3200 //in kj/h +Tc = 268 //temperature of compartment in kelvin +TH = 295 //temperature of the surrounding air in kelvin + +beta = Qcdot/Wcycledot //coefficient of performance +betamax = Tc/(TH-Tc) //reversible coefficient of performance +printf('coefficient of performance is : \n\t beta = %f',beta) +printf('\n\n coefficient of performance of a reversible cycle is :\n\t betamax = %f',betamax) \ No newline at end of file -- cgit