Professional Documents
Culture Documents
Machine Problem
First Semester AY 2017-2018
Due: November 13, 2017
The tank in Figure 1 with top radius of 1 m, bottom radius of 0.5 m, and
height of 2 m, is initially filled with water. Water drains through a square hole
of side 3 cm in the bottom. Create a program that will determine the time
required to drain the tank using:
i. Analytical Method
ii. Euler’s Method
iii. Midpoint Method
iv. 4th order Runge-Kutta Method
Figure 1 (not to scale)
Consider different stepsizes (0.1, 0.01, 0.001) and compare the results of the
three numerical methods with the analytical value using a graph.
k3
𝑥!
The response 𝒙 𝑡 = 𝑥 of the undamped spring-mass system subjected to the load shown is the solution
!
to the second-order ordinary differential equation
𝑚! 0 𝑥!!! 𝑘 + 𝑘! −𝑘! 𝑥! 0
!! + ! 𝑥! = 2 sin 𝑡
0 𝑚! 𝑥! −𝑘! 𝑘! + 𝑘!
If 𝑘! = 𝑘! = 1, and 𝑘! = 2
a. Compute the response up to 5 seconds using the 4th-order Runge-Kutta method with constant step
size, 𝒉 = 𝟎. 𝟐𝟓. Assume zero initial condition, i.e., 𝒙 0 = 𝟎 and 𝒙! 0 = 𝟎.
b. Plot the displacement of the masses vs. time
c. The analytical solution of the problem depends on the natural frequencies 𝝎 and the mode shapes ∅
which are the eigenvalues and eigenvectors of the matrix
!!
𝑚! 0 𝑘! + 𝑘! −𝑘!
𝑨=
0 𝑚! −𝑘! 𝑘! + 𝑘!
Compute the natural frequencies 𝝎 (eigenvalues) and the mode shapes ∅ (eigenvectors) of matrix A
using shifted-inverse power method. Show your detailed solution.
Page 1 of 4
CE 27 (Analytical and Computational Methods in Civil Engineering II)
Machine Problem
First Semester AY 2017-2018
Due: November 13, 2017
GENERAL INSTRUCTIONS:
Submit the following on or before 10 November 2017, 12NN at ICE Junior Faculty Room (3rd Floor)
1. CODES. Submit the executable file and source code with the following file names (on a CD):
GroupName_MP_P1.c and GroupName_MP_P2.c for the source codes and
GroupName_MP_P1.exe and GroupName_MP_P2.exe for the executable files.
NOTES:
1. Please accomplish the Peer Assessment form individually. Print the form on a scratch letter-sized paper,
fold it into fourths, staple it and sign. Then submit it to your representative. The representative then put
in a long brown envelope the following requirements:
a. CD containing the codes and soft copy of executive report
b. Hard copy of executive report
c. Individual peer review sheets (one from each group member)
2. Please label the envelope with:
CE 27 MP
Section
Group Name
Group Members
3. Finally, secure the contents of the envelope by sealing it with tape. All members of the group then sign
their names (using a marker) on the sealed portion of the envelope.
IMPORTANT:
5 POINTS WILL BE DEDUCTED FROM THE TOTAL MP GRADE FOR EVERY 10 MINUTES OF
LATE SUBMISSION. INCOMPLETE SUBMISSION = LATE SUBMISSION!
Page 2 of 4
CE 27 (Analytical and Computational Methods in Civil Engineering II)
Machine Problem
First Semester AY 2017-2018
Due: November 13, 2017
Scoring:
Please write down the names of your group members (including yourself) in the first column. Using the
Rating System for Scoring Group Members given on the next page, please allocate points on each parameter
for each group member. Please be honest in evaluating your team.
Time on Task
Role Cooperation
Name of Group Member Task Completion
Score Score
Score Score
Reflections:
A. What I really liked about our group
Page 3 of 4
CE 27 (Analytical and Computational Methods in Civil Engineering II)
Machine Problem
First Semester AY 2017-2018
Due: November 13, 2017
Page 4 of 4