diff --git a/_posts/2021-04-01-air-propulsion-simulation/air-propulsion-simulation.Rmd b/_posts/2021-04-01-air-propulsion-simulation/air-propulsion-simulation.Rmd index ca19bd2..531da8d 100644 --- a/_posts/2021-04-01-air-propulsion-simulation/air-propulsion-simulation.Rmd +++ b/_posts/2021-04-01-air-propulsion-simulation/air-propulsion-simulation.Rmd @@ -15,6 +15,7 @@ output: categories: - Julia - Capstone +bibliography: ../../citations.bib --- Boilerplate intro about why all of this was done @@ -37,7 +38,7 @@ using Measurements using Measurements: value, uncertainty ``` -This code is just the setup the setup, using values scraped from various parts of the world wide web. +This code is just the setup, using values scraped from various parts of the world wide web. ```{julia} # Tank https://www.amazon.com/Empire-Paintball-BASICS-Pressure-Compressed/dp/B07B6M48SR/ @@ -64,7 +65,7 @@ This is the actual simulation. Maybe throw some references in and explain some e The rocket equation is pretty sick: $$T = \dot{m} \cdot v_\text{Exit} + A_\text{Nozzle} \cdot (P - P_\text{Ambient}) $$ -And thats about all you need to get to the moon. +And thats about all you need to get to the moon[@curtis_orbital]. ```{julia} let diff --git a/_posts/2021-04-01-air-propulsion-simulation/air-propulsion-simulation.html b/_posts/2021-04-01-air-propulsion-simulation/air-propulsion-simulation.html index eec58dc..d2960dd 100644 --- a/_posts/2021-04-01-air-propulsion-simulation/air-propulsion-simulation.html +++ b/_posts/2021-04-01-air-propulsion-simulation/air-propulsion-simulation.html @@ -108,10 +108,12 @@ code span.wa { color: #5e5e5e; font-style: italic; } /* Warning */ + + @@ -1498,7 +1500,7 @@ Show code using Measurements: value, uncertainty -

This code is just the setup the setup, using values scraped from various parts of the world wide web.

+

This code is just the setup, using values scraped from various parts of the world wide web.

# Tank https://www.amazon.com/Empire-Paintball-BASICS-Pressure-Compressed/dp/B07B6M48SR/
 V = (85 ± 5)u"inch^3"
@@ -1520,7 +1522,7 @@ Show code
 

This is the actual simulation. Maybe throw some references in and explain some equations.

The rocket equation is pretty sick:

-

\[T = \dot{m} \cdot v_\text{Exit} + A_\text{Nozzle} \cdot (P - P_\text{Ambient}) \] And thats about all you need to get to the moon.

+

\[T = \dot{m} \cdot v_\text{Exit} + A_\text{Nozzle} \cdot (P - P_\text{Ambient}) \] And thats about all you need to get to the moon(Curtis 2020).

let
 t = 0.0u"s"
@@ -1552,7 +1554,13 @@ Show code
 

+

Big conclusion about things.

+
+
+Curtis, Howard D. 2020. Orbital Mechanics for Engineering Students. Fourth edition. Butterworth-Heinemann Publications. +
+
@@ -1574,6 +1582,8 @@ Show code
+

References

+

Corrections

If you see mistakes or want to suggest changes, please create an issue on the source repository.

diff --git a/_site.yml b/_site.yml index 8421eef..eeb47f0 100644 --- a/_site.yml +++ b/_site.yml @@ -9,4 +9,6 @@ navbar: href: index.html - text: "About" href: about.html + - text: "Resume" + href: https://ansonbiggs.com output: distill::distill_article diff --git a/citations.bib b/citations.bib new file mode 100644 index 0000000..0ab3640 --- /dev/null +++ b/citations.bib @@ -0,0 +1,23 @@ + +@book{shackelford_introduction_2015, + address = {Boston}, + edition = {Eighth edition}, + title = {Introduction to materials science for engineers}, + isbn = {9780133826654}, + publisher = {Pearson}, + author = {Shackelford, James F.}, + year = {2015}, + keywords = {Materials}, +} + +@book{curtis_orbital, + title = {Orbital mechanics for engineering students}, + isbn = {9780128240250 9780323853453 9780081021330}, + language = {English}, + author = {Curtis, Howard D}, + year = {2020}, + note = {OCLC: 1235349370}, + publisher = {Butterworth-Heinemann Publications}, + edition = {Fourth edition} + +} diff --git a/docs/about.html b/docs/about.html index 1d1a33a..2dbcc80 100644 --- a/docs/about.html +++ b/docs/about.html @@ -2067,6 +2067,7 @@ code span.wa { color: #5e5e5e; font-style: italic; } /* Warning */ diff --git a/docs/index.html b/docs/index.html index f01b055..57f815f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2064,6 +2064,7 @@ code span.wa { color: #5e5e5e; font-style: italic; } /* Warning */ @@ -2206,24 +2207,6 @@ function init_posts_list() {
-

This code is just the setup the setup, using values scraped from various parts of the world wide web.

+

This code is just the setup, using values scraped from various parts of the world wide web.

# Tank https://www.amazon.com/Empire-Paintball-BASICS-Pressure-Compressed/dp/B07B6M48SR/
 V = (85 ± 5)u"inch^3"
@@ -2140,7 +2143,7 @@ Show code
 

This is the actual simulation. Maybe throw some references in and explain some equations.

The rocket equation is pretty sick:

-

\[T = \dot{m} \cdot v_\text{Exit} + A_\text{Nozzle} \cdot (P - P_\text{Ambient}) \] And thats about all you need to get to the moon.

+

\[T = \dot{m} \cdot v_\text{Exit} + A_\text{Nozzle} \cdot (P - P_\text{Ambient}) \] And thats about all you need to get to the moon(Curtis 2020).

let
 t = 0.0u"s"
@@ -2172,7 +2175,13 @@ Show code
 

+

Big conclusion about things.

+
+
+Curtis, Howard D. 2020. Orbital Mechanics for Engineering Students. Fourth edition. Butterworth-Heinemann Publications. +
+
@@ -2194,6 +2203,8 @@ Show code
+

References

+

Corrections

If you see mistakes or want to suggest changes, please create an issue on the source repository.

diff --git a/docs/posts/posts.json b/docs/posts/posts.json index 1d6d04e..7a86955 100644 --- a/docs/posts/posts.json +++ b/docs/posts/posts.json @@ -1,4 +1,24 @@ [ + { + "path": "posts/2021-04-01-air-propulsion-simulation/", + "title": "Air Propulsion Simulation", + "description": "Simulating the performace of an air propulsion system as an alternative to solid rocket motors.", + "author": [ + { + "name": "Anson Biggs", + "url": "https://ansonbiggs.com" + } + ], + "date": "2021-04-01", + "categories": [ + "Julia", + "Capstone" + ], + "contents": "\nBoilerplate intro about why all of this was done\n\n\nShow code\nusing Plots\nplotly()\ntheme(:ggplot2); # In true R spirit\n\nusing Unitful\nusing DataFrames\nusing Measurements\nusing Measurements: value, uncertainty\n\nThis code is just the setup, using values scraped from various parts of the world wide web.\n\n# Tank https://www.amazon.com/Empire-Paintball-BASICS-Pressure-Compressed/dp/B07B6M48SR/\nV = (85 ± 5)u\"inch^3\"\nP0 = (4200.0 ± 300)u\"psi\"\nWtank = (2.3 ± 0.2)u\"lb\"\nPmax = (250 ± 50)u\"psi\" # Max Pressure that can come out the nozzle\n\nWsolenoid = 1.5u\"kg\"\n\n# Params\nd_nozzle = ((1 // 18) ± 0.001)u\"inch\"\na_nozzle = (pi / 4) * d_nozzle^2\n\n# Universal Stuff\nP_amb = (1 ± 0.2)u\"atm\"\nγ = 1.4 ± 0.05\nR = 287.05u\"J/(kg * K)\"\nT = (300 ± 20)u\"K\"\n\nThis is the actual simulation. Maybe throw some references in and explain some equations.\nThe rocket equation is pretty sick:\n\\[T = \\dot{m} \\cdot v_\\text{Exit} + A_\\text{Nozzle} \\cdot (P - P_\\text{Ambient}) \\] And thats about all you need to get to the moon(Curtis 2020).\n\nlet\nt = 0.0u\"s\"\nP = P0 |> u\"Pa\"\nM = V * (P / (R * T)) |> u\"kg\"\nts = 1u\"ms\"\nglobal df = DataFrame(Thrust=(0 ± 0)u\"N\", Pressure=P0, Time=0.0u\"s\", Mass=M)\n while M > 0.005u\"kg\"\n # while t < 30u\"s\"\n # Calculate what is leaving tank\n P = minimum([P, Pmax])\n ve = sqrt((2 * γ / (γ - 1)) * R * T * (1 - P_amb / P)^((γ - 1) / γ)) |> u\"m/s\"\n ρ = P / (R * T) |> u\"kg/m^3\"\n ṁ = ρ * a_nozzle * ve |> u\"kg/s\"\n \n Thrust = ṁ * ve + a_nozzle * (P - P_amb) |> u\"N\"\n \n # Calculate what is still in the tank\n M = M - ṁ * ts |> u\"kg\"\n P = (M * R * T) / V |> u\"Pa\"\n t = t + ts\n \n df_step = DataFrame(Thrust=Thrust, Pressure=P, Time=t, Mass=M)\n append!(df, df_step)\n end\nend\n\nHeres the results plotted. Notice the massive error once the tank starts running low.\n\n\n\nBig conclusion about things.\n\n\n\nCurtis, Howard D. 2020. Orbital Mechanics for Engineering Students. Fourth edition. Butterworth-Heinemann Publications.\n\n\n\n\n", + "preview": "posts/2021-04-01-air-propulsion-simulation/air-propulsion-simulation_files/figure-html5/unnamed-chunk-4-J1.png", + "last_modified": "2021-04-01T23:23:11-07:00", + "input_file": {} + }, { "path": "posts/welcome/", "title": "Welcome to Anson's Projects", @@ -15,25 +35,5 @@ "preview": {}, "last_modified": "2021-04-01T20:38:44-07:00", "input_file": {} - }, - { - "path": "posts/2021-04-01-air-propulsion-simulation/", - "title": "Air Propulsion Simulation", - "description": "Simulating the performace of an air propulsion system as an alternative to solid rocket motors.", - "author": [ - { - "name": "Anson Biggs", - "url": "https://ansonbiggs.com" - } - ], - "date": "2021-04-01", - "categories": [ - "Julia", - "Capstone" - ], - "contents": "\nBoilerplate intro about why all of this was done\n\n\nShow code\nusing Plots\nplotly()\ntheme(:ggplot2); # In true R spirit\n\nusing Unitful\nusing DataFrames\nusing Measurements\nusing Measurements: value, uncertainty\n\nThis code is just the setup the setup, using values scraped from various parts of the world wide web.\n\n# Tank https://www.amazon.com/Empire-Paintball-BASICS-Pressure-Compressed/dp/B07B6M48SR/\nV = (85 ± 5)u\"inch^3\"\nP0 = (4200.0 ± 300)u\"psi\"\nWtank = (2.3 ± 0.2)u\"lb\"\nPmax = (250 ± 50)u\"psi\" # Max Pressure that can come out the nozzle\n\nWsolenoid = 1.5u\"kg\"\n\n# Params\nd_nozzle = ((1 // 18) ± 0.001)u\"inch\"\na_nozzle = (pi / 4) * d_nozzle^2\n\n# Universal Stuff\nP_amb = (1 ± 0.2)u\"atm\"\nγ = 1.4 ± 0.05\nR = 287.05u\"J/(kg * K)\"\nT = (300 ± 20)u\"K\"\n\nThis is the actual simulation. Maybe throw some references in and explain some equations.\nThe rocket equation is pretty sick:\n\\[T = \\dot{m} \\cdot v_\\text{Exit} + A_\\text{Nozzle} \\cdot (P - P_\\text{Ambient}) \\] And thats about all you need to get to the moon.\n\nlet\nt = 0.0u\"s\"\nP = P0 |> u\"Pa\"\nM = V * (P / (R * T)) |> u\"kg\"\nts = 1u\"ms\"\nglobal df = DataFrame(Thrust=(0 ± 0)u\"N\", Pressure=P0, Time=0.0u\"s\", Mass=M)\n while M > 0.005u\"kg\"\n # while t < 30u\"s\"\n # Calculate what is leaving tank\n P = minimum([P, Pmax])\n ve = sqrt((2 * γ / (γ - 1)) * R * T * (1 - P_amb / P)^((γ - 1) / γ)) |> u\"m/s\"\n ρ = P / (R * T) |> u\"kg/m^3\"\n ṁ = ρ * a_nozzle * ve |> u\"kg/s\"\n \n Thrust = ṁ * ve + a_nozzle * (P - P_amb) |> u\"N\"\n \n # Calculate what is still in the tank\n M = M - ṁ * ts |> u\"kg\"\n P = (M * R * T) / V |> u\"Pa\"\n t = t + ts\n \n df_step = DataFrame(Thrust=Thrust, Pressure=P, Time=t, Mass=M)\n append!(df, df_step)\n end\nend\n\nHeres the results plotted. Notice the massive error once the tank starts running low.\n\n\n\n\n\n\n", - "preview": "posts/2021-04-01-air-propulsion-simulation/air-propulsion-simulation_files/figure-html5/unnamed-chunk-4-J1.png", - "last_modified": "2021-04-01T22:49:43-07:00", - "input_file": "air-propulsion-simulation.utf8.md" } ] diff --git a/docs/posts/welcome/index.html b/docs/posts/welcome/index.html index 7d2c400..56d87e6 100644 --- a/docs/posts/welcome/index.html +++ b/docs/posts/welcome/index.html @@ -2076,6 +2076,7 @@ document.addEventListener('DOMContentLoaded', function() { diff --git a/docs/search.json b/docs/search.json index 0f86e8e..8836f21 100644 --- a/docs/search.json +++ b/docs/search.json @@ -6,14 +6,14 @@ "description": "Some additional details about the blog", "author": [], "contents": "\n\n\n\n", - "last_modified": "2021-04-01T20:38:45-07:00" + "last_modified": "2021-04-01T23:24:45-07:00" }, { "path": "index.html", "title": "Anson's Projects", "author": [], "contents": "\n\n\n\n", - "last_modified": "2021-04-01T20:40:59-07:00" + "last_modified": "2021-04-01T23:24:45-07:00" } ], "collections": ["posts/posts.json"]