diff --git a/ThrustCurve.png b/ThrustCurve.png new file mode 100644 index 0000000..ac42fec Binary files /dev/null and b/ThrustCurve.png differ diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..9531269 --- /dev/null +++ b/readme.md @@ -0,0 +1,8 @@ +# Air Prop Thrust +Total Impulse: 405.0 ± 39.0 N s + +![Thrust Over Time](ThrustCurve.png) + +More Data: + +

4 rows × 7 columns

variablemeanminmedianmaxnmissingeltype
SymbolQuantityQuantityQuantityQuantityInt64DataType
1Thrust69.0±6.7 N0.0±0.0 N86.7±9.2 N86.7±9.2 N0Quantity{Measurement{Float64}, 𝐋 𝐌 𝐓^-2, FreeUnits{(N,), 𝐋 𝐌 𝐓^-2, nothing}}
2Pressure1.21e7±2.0e6 Pa620000.0±440000.0 Pa1.12e7±2.8e6 Pa2.9e7±2.1e6 Pa0Quantity{Measurement{Float64}, 𝐌 𝐋^-1 𝐓^-2, FreeUnits{(Pa,), 𝐌 𝐋^-1 𝐓^-2, nothing}}
3Time2.9325 s0.0 s2.9325 s5.865 s0Quantity{Float64, 𝐓, FreeUnits{(s,), 𝐓, nothing}}
4Mass0.196±0.043 kg0.01±0.0077 kg0.181±0.054 kg0.468±0.053 kg0Quantity{Measurement{Float64}, 𝐌, FreeUnits{(kg,), 𝐌, nothing}}
diff --git a/thrust.jl b/thrust.jl index 5d44e9a..6e5e423 100644 --- a/thrust.jl +++ b/thrust.jl @@ -5,6 +5,7 @@ using UnitfulRecipes using Roots using CSV using Measurements +using Printf # Tank https://www.amazon.com/Empire-Paintball-BASICS-Pressure-Compressed/dp/B07B6M48SR/ @@ -64,5 +65,25 @@ print(describe(df)) plot(df.Time[1:150:end], df.Thrust[1:150:end], title = "Thrust Over Time") +### Save data to readme.md + savefig("ThrustCurve.png") +b = IOBuffer(); +t = TextDisplay(b); +display(t, "text/html", describe(df)); +table = String(take!(b)); # https://stackoverflow.com/a/60443621/8774114 + + +readme = Printf.@sprintf """ +# Air Prop Thrust +Total Impulse: %s + +![Thrust Over Time](ThrustCurve.png) + +More Data: + +%s +""" impulse table + +write("readme.md", readme) \ No newline at end of file