Question: Problem setup: To understand the behavior of structures under the influence of disturbances such as strong winds, earthquakes, etc. engineers often model them as mass

Problem setup: To understand the behavior of structures under the influence of disturbances such as strong
winds, earthquakes, etc. engineers often model them as mass-spring systems. The figure below shows such a repre-
sentation for a three-story building.
Considering only the horizontal motion of the structure, Newton's second law gives:
m1d2x1dt=-k1x1+k2(x2-x1)
m2d2x2dt=-k2(x1-x2)+k3(x3-x2),
m3d2x3dt=k3(x2-x3)
where x1,x2,x3 are the displacements of each floor.
In this project, you will solve these equations using PYTHON to simulate the dynamics of the structure, going from
t=0 to 20 seconds. The initial values of displacements and velocities are all zero, except the velocity of first floor is
dx1dt=1ms.
Method: To solve the equations, you will use the two step midpoint method taught in class, which for a system
of equations: dxdt=F(x,t), is implemented as:
xi+12=xi+h2F(xi,ti)
xi+1=xi+hF(xi+12,ti+12)
where h is the step size.
Analysis: You will consider three different step sizes of h=1,0.5,0.25 to solve the equations. For each case,
analyze the behavior of all displacements and velocities as a function of time. In addition to that, also analyze if and
how the results change as you reduce the step size. Some portion of the score for the project will be awarded based
on the creativity of the analysis. For instance, you can calculate the relative error of the solution as the step size is
decreased to assess convergence.
How to answer: 1. The PYTHON code which solves the equations and writes out the solution. The entire source code, with all functions, variables, etc. A text/data file containing the solution for the case h =0.5. The file should contain 8 columns, viz. the step number, time, the three displacements and the three velocities. Write the columns in a well formatted manner discuss the various cases and results, with appropriate figures. You are free to present the analysis in the manner you want, but the answer response should not be longer than 4 pages (standard formatting), and you are allowed a maximum of 4 figures. Your figures should study and analyze the behavior of various displacements and velocities as a function of time, also comparing the effect of different step sizes in a meaningful way with some kind of error analysis. Essentially, you have to present your findings in a clear and concise manner, but at the same time ensure all the important and relevant results are conveyed clearly. The answer response should end with a conclusions section (of about half a page), which should summarize your analysis and key findings.
Problem setup: To understand the behavior of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!