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 --- 2144/CH2/EX2.18/exa_2_18.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 2144/CH2/EX2.18/exa_2_18.sce (limited to '2144/CH2/EX2.18/exa_2_18.sce') diff --git a/2144/CH2/EX2.18/exa_2_18.sce b/2144/CH2/EX2.18/exa_2_18.sce new file mode 100755 index 000000000..a29c0684e --- /dev/null +++ b/2144/CH2/EX2.18/exa_2_18.sce @@ -0,0 +1,18 @@ +// Example 2.18 +clc; +clear; +close; +// Given data +Cv= 0.718;// in kJ/kgK +R= 0.278;// in kJ/kgK +T1= 15+273;// in K +T2= 135+273;// in K +m= 2;// mass in kg +V1= 0.7;// in m^3 +Q= m*Cv*(T2-T1);// in kJ +disp(Q,"Heat supplied to gas in kJ is : ") +// Formula P1*V1= m*R*T1 +P1= m*R*T1/V1;// in kN/m^2 absolute +// From P1/T1= P2/T2 +P2= P1*T2/T1;// in kN/m^2 +disp(P2,"The final pressure in kN/m^2 is : ") -- cgit