Haven't updated in awhile

This commit is contained in:
Connor
2021-12-13 22:23:31 -07:00
parent 48535e732f
commit a39dea7377
152 changed files with 4735 additions and 182 deletions

View File

@@ -19,17 +19,16 @@ function easy_cost(m::Union{Mission, Mission_Guess}, C3::Float64, v∞::Float64)
norm_mass = (m.start_mass - prop(m)[7]) / m.start_mass
norm_C3 = ( m.launch_v∞ m.launch_v∞ ) / C3
norm_v∞ = norm(m.phases[end].v∞_in) / v∞
return norm_mass + norm_C3# + norm_v∞
return 3norm_mass + norm_C3# + norm_v∞
end
# Using some fairly realistic parameters now
sc = Sc("mySat", 200., 3200., 0.00025, 1, 1.0)
fuel = 3300.
max_c3 = 200.
max_v∞ = 500.
voyager_launch = DateTime(1977,9,5)
launch_window = voyager_launch - Year(2), voyager_launch + Year(2)
latest_arrival = voyager_launch + Year(25)
ideal_launch = DateTime(2024,1,1)
launch_window = ideal_launch - Day(365), ideal_launch + Day(365)
latest_arrival = ideal_launch + Year(18)
println("Max thrust at full bore: $(fuel/(mfr(sc)*Thesis.year)) years")
println("Max mission length: $((latest_arrival - launch_window[1]).value/(1000Thesis.year)) years")
@@ -42,7 +41,7 @@ Thesis.mbh(fbs) = mbh(fbs,
max_v∞,
latest_arrival,
easy_cost,
search_patience=20_000,
search_patience=10_000,
drill_patience=200,
verbose=true)
@@ -56,7 +55,7 @@ end
log(_::Nothing, _::Vector{Mission}, _::Vector{Body}) = println("No Mission Found...")
planets = [Earth, Jupiter, Saturn, Uranus, Neptune]
planets = [Earth, Venus, Mars, Saturn]
best, archive = mbh(planets)
log(best, archive, planets)