mirror of
https://gitlab.com/lander-team/air-prop-simulation.git
synced 2025-07-23 06:31:37 +00:00
made figure comparing solid vs air prop
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -137,7 +137,7 @@ celerybeat.pid
|
||||
|
||||
# Environments
|
||||
# .env
|
||||
*.csv
|
||||
*.
|
||||
.vscode
|
||||
|
||||
|
||||
|
28
AeroTech_F10.csv
Normal file
28
AeroTech_F10.csv
Normal file
@@ -0,0 +1,28 @@
|
||||
"Time (s)","Thrust (N)"
|
||||
0.01,16.81
|
||||
0.03,22.34
|
||||
0.11,22.23
|
||||
0.26,21.49
|
||||
0.37,20
|
||||
0.47,20.21
|
||||
0.67,18.09
|
||||
0.99,15.74
|
||||
1.31,13.4
|
||||
1.81,10.85
|
||||
2.49,10.21
|
||||
3.13,8.94
|
||||
3.6,8.83
|
||||
4.11,8.62
|
||||
4.95,8.62
|
||||
5.45,8.62
|
||||
5.58,8.51
|
||||
5.88,8.72
|
||||
6.22,8.51
|
||||
6.46,8.51
|
||||
6.6,7.77
|
||||
6.71,7.02
|
||||
6.79,5.64
|
||||
6.91,3.83
|
||||
6.95,2.23
|
||||
7,0.96
|
||||
7.05,0
|
|
22
AeroTech_G8ST.csv
Normal file
22
AeroTech_G8ST.csv
Normal file
@@ -0,0 +1,22 @@
|
||||
"Time (s)","Thrust (N)"
|
||||
0.024,0.3704
|
||||
0.066,0.8746
|
||||
0.138,4.5044
|
||||
0.246,6.6207
|
||||
0.426,6.7351
|
||||
1.218,7.3232
|
||||
2.082,7.423
|
||||
3.306,7.183
|
||||
5.322,6.8385
|
||||
6.978,6.7193
|
||||
8.632,6.5512
|
||||
10.144,6.4792
|
||||
12.088,6.4254
|
||||
15.472,6.3333
|
||||
17.632,6.1305
|
||||
19.108,6.0385
|
||||
19.511,5.9607
|
||||
19.804,4.4295
|
||||
19.867,1.6687
|
||||
19.937,0.3341
|
||||
19.964,0
|
|
20305
AirProp.csv
Normal file
20305
AirProp.csv
Normal file
File diff suppressed because it is too large
Load Diff
28
Estes_F15.csv
Normal file
28
Estes_F15.csv
Normal file
@@ -0,0 +1,28 @@
|
||||
"Time (s)","Thrust (N)"
|
||||
0,0
|
||||
0.148,7.638
|
||||
0.228,12.253
|
||||
0.294,16.391
|
||||
0.353,20.21
|
||||
0.382,22.756
|
||||
0.419,25.26
|
||||
0.477,23.074
|
||||
0.52,20.845
|
||||
0.593,19.093
|
||||
0.688,17.5
|
||||
0.855,16.225
|
||||
1.037,15.427
|
||||
1.205,14.948
|
||||
1.423,14.627
|
||||
1.452,15.741
|
||||
1.503,14.785
|
||||
1.736,14.623
|
||||
1.955,14.303
|
||||
2.21,14.141
|
||||
2.494,13.819
|
||||
2.763,13.338
|
||||
3.12,13.334
|
||||
3.382,13.013
|
||||
3.404,9.352
|
||||
3.418,4.895
|
||||
3.45,0
|
|
BIN
Presentation.png
Normal file
BIN
Presentation.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
ThrustCurve.png
BIN
ThrustCurve.png
Binary file not shown.
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
@@ -18,7 +18,7 @@ Pmax = (250 ± 50)u"psi" # Max Pressure that can come out the nozzle
|
||||
Wsolenoid = 1.5u"kg"
|
||||
|
||||
# Params
|
||||
d_nozzle = ((1 // 16) ± 0.001)u"inch"
|
||||
d_nozzle = ((1 // 18) ± 0.001)u"inch"
|
||||
a_nozzle = (pi / 4) * d_nozzle^2
|
||||
|
||||
# Universal Stuff
|
||||
@@ -75,6 +75,9 @@ plot(df.Time .|> ustrip, thrust_values,
|
||||
palette=:leonardo,
|
||||
)
|
||||
|
||||
out = DataFrame(Thrust=thrust_values, Uncertainty=thrust_uncertainties, Time=df.Time .|> u"s" .|> ustrip)
|
||||
CSV.write("AirProp.csv",out)
|
||||
|
||||
### Save data to readme.md
|
||||
|
||||
savefig("ThrustCurve.png")
|
||||
@@ -101,6 +104,5 @@ More Data:
|
||||
`readme auto generated`
|
||||
""" impulse final_time table
|
||||
|
||||
println(readme)
|
||||
|
||||
write("readme.md", readme)
|
||||
write("readme.md", readme);
|
23
prop_compare.jl
Normal file
23
prop_compare.jl
Normal file
@@ -0,0 +1,23 @@
|
||||
using CSV
|
||||
using DataFrames
|
||||
using Plots
|
||||
theme(:juno)
|
||||
|
||||
air = CSV.read("AirProp.csv", DataFrame)
|
||||
|
||||
f10 = CSV.read("AeroTech_F10.csv", DataFrame)
|
||||
f15 = CSV.read("Estes_F15.csv", DataFrame)
|
||||
g8 = CSV.read("AeroTech_G8ST.csv", DataFrame)
|
||||
|
||||
|
||||
plot(air.Time, air.Thrust, label="Air Propulsion", ribbon=(zeros(length(df.Time)), min.(15, air.Uncertainty)), fillalpha=.1, legend=:topleft)
|
||||
|
||||
for (d, l) in [(f10, "F10"), (f15, "F15"), (g8, "G8ST")]
|
||||
plot!(d[!,"Time (s)"], d[!, "Thrust (N)"], label=l)
|
||||
end
|
||||
|
||||
title!("Propulsion Comparison")
|
||||
xlabel!("Time (s)")
|
||||
ylabel!("Thrust (N)")
|
||||
|
||||
savefig("Presentation.png")
|
@@ -2,12 +2,12 @@
|
||||
|
||||
Total Impulse: 405.0 ± 40.0 N s
|
||||
|
||||
Burn TIme: 16.041999999996623 s
|
||||
Burn TIme: 20.30300000000183 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>25.3±2.5 N</td><td>0.0±0.0 N</td><td>26.7±5.9 N</td><td>26.7±5.9 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.39e7±3.6e6 Pa</td><td>300000.0±1.1e6 Pa</td><td>1.38e7±3.9e6 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>8.021 s</td><td>0.0 s</td><td>8.021 s</td><td>16.042 s</td><td>0</td><td>Quantity{Float64, 𝐓, FreeUnits{(s,), 𝐓, nothing}}</td></tr><tr><th>4</th><td>Mass</td><td>0.225±0.065 kg</td><td>0.005±0.018 kg</td><td>0.224±0.071 kg</td><td>0.468±0.053 kg</td><td>0</td><td>Quantity{Measurement{Float64}, 𝐌, FreeUnits{(kg,), 𝐌, nothing}}</td></tr></tbody></table>
|
||||
<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>20.0±2.0 N</td><td>0.0±0.0 N</td><td>21.1±4.7 N</td><td>21.1±4.7 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.39e7±3.6e6 Pa</td><td>300000.0±1.1e6 Pa</td><td>1.38e7±3.9e6 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>10.1515 s</td><td>0.0 s</td><td>10.1515 s</td><td>20.303 s</td><td>0</td><td>Quantity{Float64, 𝐓, FreeUnits{(s,), 𝐓, nothing}}</td></tr><tr><th>4</th><td>Mass</td><td>0.225±0.066 kg</td><td>0.005±0.018 kg</td><td>0.224±0.071 kg</td><td>0.468±0.053 kg</td><td>0</td><td>Quantity{Measurement{Float64}, 𝐌, FreeUnits{(kg,), 𝐌, nothing}}</td></tr></tbody></table>
|
||||
|
||||
`readme auto generated`
|
||||
|
43363
thrustdata.csv
Normal file
43363
thrustdata.csv
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user