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

Please solve alll
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.
Please solve alll Problem setup: To understand

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 Programming Questions!