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.30/Ex6_30.sce | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 2417/CH6/EX6.30/Ex6_30.sce (limited to '2417/CH6/EX6.30') diff --git a/2417/CH6/EX6.30/Ex6_30.sce b/2417/CH6/EX6.30/Ex6_30.sce new file mode 100755 index 000000000..782f13225 --- /dev/null +++ b/2417/CH6/EX6.30/Ex6_30.sce @@ -0,0 +1,20 @@ +clear; +clc; +printf("\t\t\tProblem Number 6.30\n\n\n"); +// Chapter 6: The Ideal Gas +// Problem 6.30 (page no. 274) +// Solution + +//data given +//mass of 1 kg +T1=500+273; //Celsius temperature converted to Kelvin //final temperature +p2=1; //atm //absolute final pressure +p1=5; //atm //absolute initial pressure +J=778; //conversion factor +R=8.314/29; //moleculer weight=29 //Unit:kJ/kg*K //constant of proportionality +k=1.4; //k=cp/cv //ratio of specific heat +//From the equation, +T2=T1*((p2/p1)^((k-1)/k)); //Unit:Kelvin //The absolute final temperature +printf("The absolute final temperature is %f K or %f C\n",T2,T2-273); +work=(R*(T2-T1))/((1-k)); //kJ/kg //The work done by air(out) +printf("The work done by air is %f kJ/kg(out)\n",work) -- cgit