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/CH3/EX3.1/ex3_1.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 2144/CH3/EX3.1/ex3_1.sce (limited to '2144/CH3/EX3.1') diff --git a/2144/CH3/EX3.1/ex3_1.sce b/2144/CH3/EX3.1/ex3_1.sce new file mode 100755 index 000000000..5c6db5d52 --- /dev/null +++ b/2144/CH3/EX3.1/ex3_1.sce @@ -0,0 +1,23 @@ +// Exa 3.1 +clc; +clear; +close; +// Given data +P = 2.15 * 10^5;// in N/m^2 +T = 20;// in degree C +T = T + 273;// in K +V = 0.20;// in m^3 +R = 0.2927;// in kJ/kg-K +R = R * 10^3;// in J/kg-K +m = (P*V)/(T*R);//in kg +Q = 20*10^3;// in J +C_v = 0.706*10^3;// in J/kg-K +theta = Q/(m*C_v);// in degree C +T = T - 273;// in degree C +T1 = theta + T;// new temp. in degree C +disp(T1,"New temperature in degree C is"); +T1 = T1 + 273;// in K +T = T + 273;// in K +P2 = P * (T1/T);// in N/m^2 +P2 = P2 * 10^-3;// in kN/m^2 +disp(P2,"New pressure in kN/m^2 is"); -- cgit