diff options
Diffstat (limited to '2339/CH3/EX3.22.1/Ex3_22.sce')
-rwxr-xr-x | 2339/CH3/EX3.22.1/Ex3_22.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/2339/CH3/EX3.22.1/Ex3_22.sce b/2339/CH3/EX3.22.1/Ex3_22.sce new file mode 100755 index 000000000..e0fd6156f --- /dev/null +++ b/2339/CH3/EX3.22.1/Ex3_22.sce @@ -0,0 +1,27 @@ +clc
+clear
+
+//Inputs
+//The Values in the program are as follows:
+//Temperature in Celcius converted to Kelvin(by adding 273)
+//Pressure in bar converted to kPa (by multiplying 100)
+//Volume in m^3
+//Value of R,Cp and Cv in kJ/kg K
+V1=0.091;
+P1=2.73;
+T1=187+273;
+T2=27+273;
+Cp=1.005;
+Cv=0.718;
+
+R=Cp-Cv;
+
+m=(P1*100*V1)/(R*T1);
+Q=m*Cp*(T2-T1);
+printf('The Value of heat transferred: %1.2f kJ',Q);
+printf('\n')
+
+V2=(T2*V1)/T1;
+W=P1*100*(V2-V1);
+printf('The Value of Work done: %1.2f kJ',W);
+printf('\n')
|