mirror of
https://gitlab.com/lander-team/air-prop-simulation.git
synced 2025-07-23 06:31:37 +00:00
Data now gets printed to readme.md
This commit is contained in:
BIN
ThrustCurve.png
Normal file
BIN
ThrustCurve.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
8
readme.md
Normal file
8
readme.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Air Prop Thrust
|
||||
Total Impulse: 405.0 ± 39.0 N s
|
||||
|
||||

|
||||
|
||||
More Data:
|
||||
|
||||
<table class="data-frame"><thead><tr><th></th><th>variable</th><th>mean</th><th>min</th><th>median</th><th>max</th><th>nmissing</th><th>eltype</th></tr><tr><th></th><th>Symbol</th><th>Quantity</th><th>Quantity</th><th>Quantity</th><th>Quantity</th><th>Int64</th><th>DataType</th></tr></thead><tbody><p>4 rows × 7 columns</p><tr><th>1</th><td>Thrust</td><td>69.0±6.7 N</td><td>0.0±0.0 N</td><td>86.7±9.2 N</td><td>86.7±9.2 N</td><td>0</td><td>Quantity{Measurement{Float64}, 𝐋 𝐌 𝐓^-2, FreeUnits{(N,), 𝐋 𝐌 𝐓^-2, nothing}}</td></tr><tr><th>2</th><td>Pressure</td><td>1.21e7±2.0e6 Pa</td><td>620000.0±440000.0 Pa</td><td>1.12e7±2.8e6 Pa</td><td>2.9e7±2.1e6 Pa</td><td>0</td><td>Quantity{Measurement{Float64}, 𝐌 𝐋^-1 𝐓^-2, FreeUnits{(Pa,), 𝐌 𝐋^-1 𝐓^-2, nothing}}</td></tr><tr><th>3</th><td>Time</td><td>2.9325 s</td><td>0.0 s</td><td>2.9325 s</td><td>5.865 s</td><td>0</td><td>Quantity{Float64, 𝐓, FreeUnits{(s,), 𝐓, nothing}}</td></tr><tr><th>4</th><td>Mass</td><td>0.196±0.043 kg</td><td>0.01±0.0077 kg</td><td>0.181±0.054 kg</td><td>0.468±0.053 kg</td><td>0</td><td>Quantity{Measurement{Float64}, 𝐌, FreeUnits{(kg,), 𝐌, nothing}}</td></tr></tbody></table>
|
21
thrust.jl
21
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
|
||||
|
||||

|
||||
|
||||
More Data:
|
||||
|
||||
%s
|
||||
""" impulse table
|
||||
|
||||
write("readme.md", readme)
|
Reference in New Issue
Block a user