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 --- 779/CH5/EX5.1/5_1.sce | 16 ++++++++++++++++ 779/CH5/EX5.2/5_2.sce | 13 +++++++++++++ 779/CH5/EX5.3/5_3.sce | 13 +++++++++++++ 779/CH5/EX5.4/5_4.sce | 45 +++++++++++++++++++++++++++++++++++++++++++++ 779/CH5/EX5.5/5_5.sce | 10 ++++++++++ 779/CH5/EX5.6/5_6.sce | 12 ++++++++++++ 779/CH5/EX5.7/5_7.sce | 9 +++++++++ 779/CH5/EX5.9/5_9.sce | 8 ++++++++ 8 files changed, 126 insertions(+) create mode 100755 779/CH5/EX5.1/5_1.sce create mode 100755 779/CH5/EX5.2/5_2.sce create mode 100755 779/CH5/EX5.3/5_3.sce create mode 100755 779/CH5/EX5.4/5_4.sce create mode 100755 779/CH5/EX5.5/5_5.sce create mode 100755 779/CH5/EX5.6/5_6.sce create mode 100755 779/CH5/EX5.7/5_7.sce create mode 100755 779/CH5/EX5.9/5_9.sce (limited to '779/CH5') diff --git a/779/CH5/EX5.1/5_1.sce b/779/CH5/EX5.1/5_1.sce new file mode 100755 index 000000000..911ecda20 --- /dev/null +++ b/779/CH5/EX5.1/5_1.sce @@ -0,0 +1,16 @@ +// Part(a) +V1 = 0.95; +P1 = 100e03; +v1 = 7; +V2 = 0.19; +P2 = 700e03; +v2 = 5; +w = 0.5; +u21 = 90e03; // u21 = u2-u1 +Q = -58e03; // As heat is added Q = dQ/dt +W = - w*( u21 + (P2*V2-P1*V1) + ((v2^2-v1^2)/2) ) + Q; // W = dW/dt +disp("Watt",W,"The rate of work input is") +// Part (b) +A = (v2/v1)*(V1/V2); // A = A1/A2 +d = sqrt(A); // d = d1/d2 +disp(d,"The ratio of the inlet pipe diameter and outer pipe diameter is") \ No newline at end of file diff --git a/779/CH5/EX5.2/5_2.sce b/779/CH5/EX5.2/5_2.sce new file mode 100755 index 000000000..c58be2540 --- /dev/null +++ b/779/CH5/EX5.2/5_2.sce @@ -0,0 +1,13 @@ +V1 = 0.37; +P1 = 600e03; +v1 = 16; +V2 = 0.62; +P2 = 100e03; +v2 = 270; +Z1 = 32; +Z2 = 0; +g = 9.81; +Q = -9e03; // heat loss Q = dQ/dt +W = 135e03; // Work done W = dW/dt +U12 = (P2*V2-P1*V1) + ((v2^2-v1^2)/2) + (Z2-Z1)*g + W - Q; // U12 = U1-U2 +disp("Joule",U12,"The internal energy decreases by") \ No newline at end of file diff --git a/779/CH5/EX5.3/5_3.sce b/779/CH5/EX5.3/5_3.sce new file mode 100755 index 000000000..12c24d67d --- /dev/null +++ b/779/CH5/EX5.3/5_3.sce @@ -0,0 +1,13 @@ +P1 = 4e06; +t1 = 400; +h1 = 3213e03; +V1 = 0.073; +P2 = 3.5e06; +t2 = 392; +h2 = 3202e03; +V2 = 0.084; +Q = -8.5e03; +v1 = sqrt((2*(h1-h2+Q))/(1.15^2-1)); +A1 = (%pi/4)*0.2^2; +w = (A1*v1)/V1; +disp("Kg/s",w,"The stean flow rate is") diff --git a/779/CH5/EX5.4/5_4.sce b/779/CH5/EX5.4/5_4.sce new file mode 100755 index 000000000..c070928d0 --- /dev/null +++ b/779/CH5/EX5.4/5_4.sce @@ -0,0 +1,45 @@ +h1 = 313.93; +h2 = 2676; +h3 = 419; +w1 = 4.2; +w = poly(0,'w') // w = w2 +P = w1*h1 + w*h2 - h3*(4.2+w) +function [x] = stress(a,b,f) + N = 100; + eps = 1e-5; + if((f(a)*f(b))>0) then + error('no root possible f(a)*f(b)>0'); + abort; + end; + if(abs(f(a))0) + c = (a+b)/2 + if(abs(f(c))