From e81f8ab7b41e9d2d1fdac455e577e745267ce1fa Mon Sep 17 00:00:00 2001 From: Andrew Ning Date: Thu, 24 Oct 2024 11:40:00 -0600 Subject: [PATCH] next hw --- atom.xml | 2 +- feed.xml | 2 +- me275/schedule/hw7/index.html | 52 +++++++++++-- me275/schedule/hw8/index.html | 134 ++++++++++++++++++++++++++++++++++ me275/schedule/index.html | 2 +- 5 files changed, 182 insertions(+), 10 deletions(-) create mode 100644 me275/schedule/hw8/index.html diff --git a/atom.xml b/atom.xml index 56d7025..78296ef 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ FLOW Lab - 2024-10-23T20:56:02-06:00 + 2024-10-24T11:39:54-06:00 http://flow.byu.edu Andrew Ning diff --git a/feed.xml b/feed.xml index b195c2e..31b088a 100644 --- a/feed.xml +++ b/feed.xml @@ -1 +1 @@ -Jekyll2024-10-23T20:56:02-06:00http://flow.byu.edu/feed.xmlFLOW LabFlight, Optimization, and Wind LaboratoryAndrew NingOptimization Book Available2021-10-15T00:00:00-06:002021-10-15T00:00:00-06:00http://flow.byu.edu/posts/opt-book]]>Andrew NingBEM Paper2021-07-30T00:00:00-06:002021-07-30T00:00:00-06:00http://flow.byu.edu/posts/bem-paper]]>Andrew NingEduardo Research Update2021-03-01T00:00:00-07:002021-03-01T00:00:00-07:00http://flow.byu.edu/posts/eduardo-latest]]>Eduardo AlvarezReformulated VPM2021-02-01T00:00:00-07:002021-02-01T00:00:00-07:00http://flow.byu.edu/posts/reformulated-vpm]]>Eduardo AlvarezOptimization Book Announcement2021-01-20T00:00:00-07:002021-01-20T00:00:00-07:00http://flow.byu.edu/posts/optimization-book]]>Andrew NingPJ Defense2020-09-30T00:00:00-06:002020-09-30T00:00:00-06:00http://flow.byu.edu/posts/pj-defense]]>Andrew NingVPM Paper2020-08-30T00:00:00-06:002020-08-30T00:00:00-06:00http://flow.byu.edu/posts/vpm-paper]]>Eduardo AlvarezAirborne Wind with Vortex Particle Method2020-08-16T00:00:00-06:002020-08-16T00:00:00-06:00http://flow.byu.edu/posts/wind-harvesting]]>Judd Mehr and Eduardo AlvarezEduardo’s Past Three Years2020-08-10T00:00:00-06:002020-08-10T00:00:00-06:00http://flow.byu.edu/posts/eduardo-three-years]]>Eduardo AlvarezFLOWUnsteady in Google Drive2020-08-02T00:00:00-06:002020-08-02T00:00:00-06:00http://flow.byu.edu/posts/google-drive-vpm]]>Eduardo Alvarez \ No newline at end of file +Jekyll2024-10-24T11:39:54-06:00http://flow.byu.edu/feed.xmlFLOW LabFlight, Optimization, and Wind LaboratoryAndrew NingOptimization Book Available2021-10-15T00:00:00-06:002021-10-15T00:00:00-06:00http://flow.byu.edu/posts/opt-book]]>Andrew NingBEM Paper2021-07-30T00:00:00-06:002021-07-30T00:00:00-06:00http://flow.byu.edu/posts/bem-paper]]>Andrew NingEduardo Research Update2021-03-01T00:00:00-07:002021-03-01T00:00:00-07:00http://flow.byu.edu/posts/eduardo-latest]]>Eduardo AlvarezReformulated VPM2021-02-01T00:00:00-07:002021-02-01T00:00:00-07:00http://flow.byu.edu/posts/reformulated-vpm]]>Eduardo AlvarezOptimization Book Announcement2021-01-20T00:00:00-07:002021-01-20T00:00:00-07:00http://flow.byu.edu/posts/optimization-book]]>Andrew NingPJ Defense2020-09-30T00:00:00-06:002020-09-30T00:00:00-06:00http://flow.byu.edu/posts/pj-defense]]>Andrew NingVPM Paper2020-08-30T00:00:00-06:002020-08-30T00:00:00-06:00http://flow.byu.edu/posts/vpm-paper]]>Eduardo AlvarezAirborne Wind with Vortex Particle Method2020-08-16T00:00:00-06:002020-08-16T00:00:00-06:00http://flow.byu.edu/posts/wind-harvesting]]>Judd Mehr and Eduardo AlvarezEduardo’s Past Three Years2020-08-10T00:00:00-06:002020-08-10T00:00:00-06:00http://flow.byu.edu/posts/eduardo-three-years]]>Eduardo AlvarezFLOWUnsteady in Google Drive2020-08-02T00:00:00-06:002020-08-02T00:00:00-06:00http://flow.byu.edu/posts/google-drive-vpm]]>Eduardo Alvarez \ No newline at end of file diff --git a/me275/schedule/hw7/index.html b/me275/schedule/hw7/index.html index a2a6751..7776b1e 100644 --- a/me275/schedule/hw7/index.html +++ b/me275/schedule/hw7/index.html @@ -95,30 +95,68 @@

HW 7


-

These first two problems come from x.

+

These first two problems are based on problems in “Applied Numerical Methods with Python” by Steven Chapra and David Clough, the latter is based on problems in “Principles of Statistics for Engineers and Scientists” by William Navidi.

  1. -

    A mass-spring-damper is a common mechanical system model, for example: vehicle suspension, a bridge, human body, aircraft landing gear, etc. In class, we considered a case with gravity (e.g., bungee jumper), but we now consider the simpler case without gravity (e.g., horizontal). Newton’s second law results in:

    +

    A mass-spring-damper is a common mechanical system model (e.g., vehicle suspension, a bridge, human body, aircraft landing gear). In class, we considered a case with gravity (e.g., bungee jumper), but we now consider the simpler case without gravity (e.g., horizontal). Newton’s second law results in:

    \[m\frac{dx^2}{dt^2} + b \frac{dx}{dt} + k x = 0\] -

    where \(m\) is the mass, \(b\) is the damping coefficient, and $k\(is the spring constant. Let\)m = 20, k = 20\(and for\)b\(we will try three values: 5, 40, 200. Assume an initial displacement of 1 and an initial velocity of 0. Using a standard ODE solver, plot the results from\)t = 0$$ to 15, with all three cases on the same plot.

    +

    where \(m\) is the mass, \(b\) is the damping coefficient, and \(k\) is the spring constant. Let \(m = 20, k = 20\) and for the damping \(b\) we will try three values: 5, 40, 200. Assume an initial displacement of 1 and an initial velocity of 0. Using a standard ODE solver, plot the results from \(t = 0\) to 15, with all three cases on the same plot.

  2. A simple model of an epidemic is:

    -

    \(\begin{align} +\[\begin{align} \frac{dS}{dt} &= - i S I\\ \frac{dI}{dt} &= i S I - r I\\ \frac{dR}{dt} &= r I\\ - \end{align}\) - where \(S\) = susceptible individuals, \(I\) = infected individuals, \(R\) = recovered individuals, \(i\) = infection rate, \(r\) = recovery rate. A city has 10,000 people all of whom are susceptible.

    + \end{align}\] -

    (a) If a single infectious individual enters the city at t = 0, compute the progression of the epidemic until the number of infected individuals falls below 10. Use the following parameters: \(i\) = 0.0002 and \(r\) = 0.15. Plot S, I and R as a function of time, all on the same plot.

    +

    where \(S\) = susceptible individuals, \(I\) = infected individuals, \(R\) = recovered individuals, \(i\) = infection rate, \(r\) = recovery rate. A city has 10,000 people all of whom are susceptible.

    + +

    (a) If a single infectious individual enters the city at t = 0, compute the progression of the epidemic until the number of infected individuals falls below 10. Use the following parameters: \(i\) = 0.002/7 (the 7 is to convert from infection rate per week to per day) and \(r\) = 0.15. Plot S, I and R as a function of time, all on the same plot.

    + +

    (b) Suppose that, after recovery, there is a loss of immunity that causes recovered individuals once again to become susceptible. This reinfection mechanism can be modeled as \(\rho R\), where \(\rho\) is the return rate. To be specific this means you should add \(\rho R\) to the existing \(dS/dt\) term (increasing the number of people who susceptible) and you should subtract \(\rho R\) from the existing \(dR/dt\) term (decreasing by the same amount, the pool of recovered individuals). Repeat the computations/plot in (a) using \(\rho = 0.03\).

    +
  3. +
  4. +

    A sample of 100 cars driving on the freeway during a morning commute was drawn, and the number of occupants in each car was tabulated as follows:

    + + + + + + + + + + + + + + + + + + + + +
    Occupants12345
    Number of cars70151032
    + +

    a) compute the sample mean

    + +

    b) compute the sample standard deviation

    + +

    c) compute the median

    + +

    d) compute the first and third quartiles (which means 25th percentile and 75th percentile respectively)

    + +

    e) what proportion of cars had more than the mean number of occupants?

+ diff --git a/me275/schedule/hw8/index.html b/me275/schedule/hw8/index.html new file mode 100644 index 0000000..d8e351b --- /dev/null +++ b/me275/schedule/hw8/index.html @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + HW · ME 275 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +

HW 8

+ +

due 11/7/2024 before midnight via Learning Suite +25 possible points

+ +
+ +
    +
  1. +

    The peak velocity and peak acceleration were recorded for five earthquakes.

    + + + + + + + + + + + + + + + + + + + + +
    Velocity1.541.600.951.302.92
    Acceleration7.648.048.046.373.25
    + +

    a) Compute the correlation coefficient between these two variables.

    + +

    b) Create a scatterplot.

    + +

    c) Is the correlation coefficient an appropriate summary of this data? Explain why or why not.

    +
  2. +
+ +
+ + + diff --git a/me275/schedule/index.html b/me275/schedule/index.html index 3c276ae..9e73a50 100644 --- a/me275/schedule/index.html +++ b/me275/schedule/index.html @@ -271,7 +271,7 @@

Schedule

Th Oct 31 Probability   - HW 7 + HW 7