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 --- 2417/CH6/EX6.25/Ex6_25.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 2417/CH6/EX6.25/Ex6_25.sce (limited to '2417/CH6/EX6.25') diff --git a/2417/CH6/EX6.25/Ex6_25.sce b/2417/CH6/EX6.25/Ex6_25.sce new file mode 100755 index 000000000..805cfff20 --- /dev/null +++ b/2417/CH6/EX6.25/Ex6_25.sce @@ -0,0 +1,17 @@ +clear; +clc; +printf("\t\t\tProblem Number 6.25\n\n\n"); +// Chapter 6: The Ideal Gas +// Problem 6.25 (page no. 268) +// Solution + +//data given +T2=500+273; //Celsius temperature converted to Kelvin //final temperature +T1=20+273; //Celsius temperature converted to Kelvin //initial temperature +cp=1.0062; //specific heat at constant pressure //kJ/kg*K +//From the energy equation for the constant-pressure process,the heat transferred is deltah.Therefore, +//q=deltah=cp*(T2-T1) +deltah=cp*(T2-T1); //heat transferred //kJ/kg //into system +printf("The heat transferred is per kilogram of air %f kJ/kg\n",deltah); +deltas=cp*log(T2/T1); //increase in entropy //kJ/kg*K +printf("The increase in entropy per kilogram of air is %f kJ/kg*K\n",deltas); -- cgit