Write a program to make a table of the physical properties for water in the range of temperatures from 273 to 323 K. The Density : p= 1200.92 – 1.0056 T + 0.001084 T² The conductivity: K= 0.34 + 9.278 * 104 T The Specific heat: Cp = 0.015539 (T – 308.2)² + 4180.9

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Practice Problems
1) Write a program to make a table of the physical properties for water in the range of
temperatures from 273 to 323 K.
The Density :
The conductivity: K= 0.34 + 9.278 * 104 T
The Specific heat: C, = 0.015539 (T – 308.2)² + 4180.9
p= 1200.92 – 1.0056 T + 0.001084 T²
2) Define the 5 x 4 matrix, g.
- 0.5
0.6
1.5
2.3
8.2
0.5
- 0.1 - 2.0
g =| 5.7
8.2
9.0
1.5
0.5
0.5
2.4
0.5
1.2 - 2.3 - 4.5
0.5
Find the content of the following matrices and check your results for content using
Matlab.
a) a = g(:,2)
b) a = g(4,:)
c) a = g(4:5,1:3)
d) a = g(1:2:5,:)
e) a=sum(g)
3) Given the arrays x = [1 3 5], y = [2 4 6] and A = [3 1 5 ; 5 9 7], Calculate;
а) х+у
b) x'+ y'
c) A - [x ; y]
d) [x; y].*A
e) А-3
Transcribed Image Text:Practice Problems 1) Write a program to make a table of the physical properties for water in the range of temperatures from 273 to 323 K. The Density : The conductivity: K= 0.34 + 9.278 * 104 T The Specific heat: C, = 0.015539 (T – 308.2)² + 4180.9 p= 1200.92 – 1.0056 T + 0.001084 T² 2) Define the 5 x 4 matrix, g. - 0.5 0.6 1.5 2.3 8.2 0.5 - 0.1 - 2.0 g =| 5.7 8.2 9.0 1.5 0.5 0.5 2.4 0.5 1.2 - 2.3 - 4.5 0.5 Find the content of the following matrices and check your results for content using Matlab. a) a = g(:,2) b) a = g(4,:) c) a = g(4:5,1:3) d) a = g(1:2:5,:) e) a=sum(g) 3) Given the arrays x = [1 3 5], y = [2 4 6] and A = [3 1 5 ; 5 9 7], Calculate; а) х+у b) x'+ y' c) A - [x ; y] d) [x; y].*A e) А-3
1) Find the 3rd order polynomial that satisfies the data of water for saturation temperature
and pressure. By using the predicted polynomial compute the saturation pressure at 65 C.
Temp(C) 0
Pre. (kPa) .6108 1.227 2.337 4.241 7.375 12.335 19.92 31.16 47.36 70.11 101.33
10
20
30
40
50
60
70
80
90
100
2) A vapor pressure vs. temperature thermodynamic process has the following data.Write a
MATLAB program to calculate the values of constants A and B in following equation.
B
og( P°) = A-
T+ 273.15
Temp (C) | -36.7 | -19.6 -11.5
Pre. (kPa)
-2.6
7.6
15.4
26.1
42.2
60.6
80.1
1
5
10
20
40
60
100
200
400
760
3) The experimental velocity of an incompressible fluid in a pipe of radius 1 m is tabulated
as below:
Second Class \ Lec. 5
47
Computer Programming (II)
Dr. Saad Raheem
r (m)
0.0
0,1
0,2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
V
1.0
0.99
0.96
0.91| 0.84
0.75 0.64 0.51 0.36 0.19
0.0
Where: r is the distance from the centre of the pipe and u is the velocity of the fluid.
Write a MATLAB program to fit the experimental velocity to the following function:
u=a+br+cr?
4) Fully developed flow moving a 40 cm diameter pipe has the following velocity profile:
Radius r, cm
0.0
2.5
5.0
7.5
10.0
12.5
15.0
17.5
20.0
Velocity v, m/s 0.914 0.890 0.847 0.795 0.719 0.543 0.427 0.204
Find the volumetric flow rate Q using the relationship Q = S" 2arvdr.
Where r is the radial axis of the pipe, R is the radius of the pipe and v is the velocity.
Solve the problem using two steps.
(a) Fit a polynomial curve to the velocity data using polyfit.
(b) Integrate the equation using int.
5) The rate at which a substance passes through a membrane is determined by the diffusivity
D,(cm?/s) of the gas. D varies with the temperature T (K) according to the following law:
D = D,exp (-E/RT) Where:
D, is the pre-exponential factor
E is the activation energy for diffusion
R=1.987 cal/mol K.
Diffusivities of SOɔ in a certain membrane are measured at several temperatures with
the data listed below.
| T(K)
347
374.2
396.2
420.7
447.7
471.2
D(cm/s)x10°
1.34
2.5
4.55
8.52
14.07
19.99
Write a MATLAB program to calculate the values of D, and E.
6) A constant temperature, pressure-volume thermodynamic process has the following data:
Pressure (kpa)
420
368
333
326
312
242
207
Volume (m³)
0.5
3
6
8
10
11
We know that W = S pdV. Where W is work, p is pressure, and V is volume. Calculate
the work required to compression from 5 m³ to 2 m³.
Transcribed Image Text:1) Find the 3rd order polynomial that satisfies the data of water for saturation temperature and pressure. By using the predicted polynomial compute the saturation pressure at 65 C. Temp(C) 0 Pre. (kPa) .6108 1.227 2.337 4.241 7.375 12.335 19.92 31.16 47.36 70.11 101.33 10 20 30 40 50 60 70 80 90 100 2) A vapor pressure vs. temperature thermodynamic process has the following data.Write a MATLAB program to calculate the values of constants A and B in following equation. B og( P°) = A- T+ 273.15 Temp (C) | -36.7 | -19.6 -11.5 Pre. (kPa) -2.6 7.6 15.4 26.1 42.2 60.6 80.1 1 5 10 20 40 60 100 200 400 760 3) The experimental velocity of an incompressible fluid in a pipe of radius 1 m is tabulated as below: Second Class \ Lec. 5 47 Computer Programming (II) Dr. Saad Raheem r (m) 0.0 0,1 0,2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 V 1.0 0.99 0.96 0.91| 0.84 0.75 0.64 0.51 0.36 0.19 0.0 Where: r is the distance from the centre of the pipe and u is the velocity of the fluid. Write a MATLAB program to fit the experimental velocity to the following function: u=a+br+cr? 4) Fully developed flow moving a 40 cm diameter pipe has the following velocity profile: Radius r, cm 0.0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 20.0 Velocity v, m/s 0.914 0.890 0.847 0.795 0.719 0.543 0.427 0.204 Find the volumetric flow rate Q using the relationship Q = S" 2arvdr. Where r is the radial axis of the pipe, R is the radius of the pipe and v is the velocity. Solve the problem using two steps. (a) Fit a polynomial curve to the velocity data using polyfit. (b) Integrate the equation using int. 5) The rate at which a substance passes through a membrane is determined by the diffusivity D,(cm?/s) of the gas. D varies with the temperature T (K) according to the following law: D = D,exp (-E/RT) Where: D, is the pre-exponential factor E is the activation energy for diffusion R=1.987 cal/mol K. Diffusivities of SOɔ in a certain membrane are measured at several temperatures with the data listed below. | T(K) 347 374.2 396.2 420.7 447.7 471.2 D(cm/s)x10° 1.34 2.5 4.55 8.52 14.07 19.99 Write a MATLAB program to calculate the values of D, and E. 6) A constant temperature, pressure-volume thermodynamic process has the following data: Pressure (kpa) 420 368 333 326 312 242 207 Volume (m³) 0.5 3 6 8 10 11 We know that W = S pdV. Where W is work, p is pressure, and V is volume. Calculate the work required to compression from 5 m³ to 2 m³.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY