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 --- 2339/CH3/EX3.3.1/Ex3_3.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 2339/CH3/EX3.3.1/Ex3_3.sce (limited to '2339/CH3/EX3.3.1/Ex3_3.sce') diff --git a/2339/CH3/EX3.3.1/Ex3_3.sce b/2339/CH3/EX3.3.1/Ex3_3.sce new file mode 100755 index 000000000..06e8dd6a3 --- /dev/null +++ b/2339/CH3/EX3.3.1/Ex3_3.sce @@ -0,0 +1,22 @@ +clear +clc + +P1=2.75*100; //Pressure in kPa +V1=0.09 //Volume in m^3 +T1=185+273; //Temperature in Kelvin +T2=15+273; +R=0.29; +Cp=1.005; +Cv=0.715; + +m=(P1*V1)/(R*T1); +V2=(T2/T1)*V1; +W=P1*(V2-V1); +printf('The Work Done: %2.3f kJ',W); +printf('\n'); +Q=m*Cp*(T2-T1); +printf('The Heat Transfer: %2.3f kJ',Q); +printf('\n'); +U=Q-W; +printf('The change in Internal Energy: %2.3f kJ',U); +printf('\n'); -- cgit