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 massspring systems. The figure below shows such a repre
sentation for a threestory building.
Considering only the horizontal motion of the structure, Newton's second law gives:
where 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
to seconds. The initial values of displacements and velocities are all zero, except the velocity of first floor is
Method: To solve the equations, you will use the two step midpoint method taught in class, which for a system
of equations: is implemented as:
where is the step size.
Analysis: You will consider three different step sizes of 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: The PYTHON code which solves the equations and writes out the solution. The entire source code, with all functions, variables, etc. A textdata file containing the solution for the case h The file should contain 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 pages standard formatting and you are allowed a maximum of 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
