Vous êtes sur la page 1sur 2

ES 204 – Numerical Methods in Engineering 2nd Semester AY 2017-2018

MACHINE PROBLEM 02 Due Date: 20 March 2018

INSTRUCTIONS:

 You may use C or C++ to accomplish this Machine Problem.


 The contents of the write-up are listed below. Start each problem on a new page.

a) Problem Title
Write an appropriate title at the top of the first page (centered).

b) Problem Statement
Summarize the problem statement (in paragraph form).

c) Results and Discussion


Explain and show your complete solution, including derivations (if necessary) and equations used. For
problems involving iteration, include a table of values and provide the first 3 and last 3 iterates. BOX your
final answers.

d) Problems Encountered
Write a paragraph about the problems you have encountered in accomplishing this Machine Problem.
It may involve the statement of the problem, difficulty of the problem, generation of codes, etc. Also,
narrate how you responded to these problems.

e) References
Make a list of references (books, internet sources, etc.) used to solve the problems.

f) Appendix
Copy and paste your code/s in this section.

 All codes shall be submitted (and shall be saved in a zip file) via email until 6:00 PM of 20 March 2018.
Late submission will not be accepted for whatever reason.
 A hard copy of the Machine Problem write-up shall be submitted in class on the designated deadline.
 May the odds be ever in your favor.

1. The power developed by a hydraulic impulse turbine (P) by changing the penstock diameter (D) is found to be
as follows:

I 1 2 3 4
DI (M) 0.4 0.6 0.8 1.0
PI (MW) 20 50 105 180

a) Determine the corresponding power (in MW) of the hydraulic impulse turbine if the penstock diameter
is 0.9 m by fitting a cubic equation to the data using Newton’s interpolating polynomial of order 3.
b) Repeat part (a) by fitting the data with cubic splines with natural end conditions. Provide the equations
for each interval.

Create a superimposed plot for the two cases and compare. Explain possible similarities/differences of the fit.

NOTE: If Iterative Methods will be used to solve a linear system of equations, set TOL (tolerance) = 1.0 x 10-5, and
use the absolute error and L∞ norm criterion as your stopping conditions.
2. An engineer uses a temperature sensor mounted in a thermowell to measure the temperature in a continuous
stirred tank reactor (CSTR). The engineer notes that the measured reactor temperature has been cycling
approximately sinusoidally.

The temperature was modeled, yielding the following expression:

   
T  t   20  10 1  e 2t sin e t  1

Determine the integral of the temperature function from t = 0 to t = 4 minutes using Adaptive Quadrature and
set TOL (tolerance) = 1.0 x 10-5. Simpson’s 1/3 Rule should be used as basis for integration.

---------- END OF MACHINE PROBLEM ----------