Skip to content

Commit

Permalink
Update test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
MasanoriKanamaru authored and hyrodium committed Oct 14, 2023
1 parent ff21e30 commit 54e9192
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions test/TPM_Didymos.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
##= Ephemerides =##
P = SPICE.convrt(AsteroidThermoPhysicalModels.DIDYMOS[:P], "hours", "seconds") # Rotation period of Didymos
et_begin = SPICE.utc2et("2027-02-18T00:00:00") # Start time of TPM
et_end = et_begin + 10P # End time of TPM
et_end = et_begin + 7P # End time of TPM
step = P / 72 # Time step of TPM
et_range = et_begin : step : et_end
@show length(et_range)
Expand Down Expand Up @@ -112,9 +112,9 @@
println(thermo_params)

##= Setting of TPM =##
tpm1 = AsteroidThermoPhysicalModels.SingleTPM(shape1, thermo_params, true, true)
tpm2 = AsteroidThermoPhysicalModels.SingleTPM(shape2, thermo_params, true, true)
btpm = AsteroidThermoPhysicalModels.BinaryTPM(tpm1, tpm2, true, true)
stpm1 = AsteroidThermoPhysicalModels.SingleTPM(shape1, thermo_params; SELF_SHADOWING=true, SELF_HEATING=true)
stpm2 = AsteroidThermoPhysicalModels.SingleTPM(shape2, thermo_params; SELF_SHADOWING=true, SELF_HEATING=true)
btpm = AsteroidThermoPhysicalModels.BinaryTPM(stpm1, stpm2; MUTUAL_SHADOWING=true, MUTUAL_HEATING=true)

AsteroidThermoPhysicalModels.init_temperature!(btpm, 200.)

Expand Down
8 changes: 4 additions & 4 deletions test/TPM_Ryugu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
end

##= Thermal properties =##
P = SPICE.convrt(7.63262, "hours", "seconds")
k = 0.1
ρ = 1270.0
P = SPICE.convrt(7.63262, "hours", "seconds")
k = 0.1
ρ = 1270.0
Cₚ = 600.0

l = AsteroidThermoPhysicalModels.thermal_skin_depth(P, k, ρ, Cₚ)
Expand All @@ -95,7 +95,7 @@
println(thermo_params)

##= Setting of TPM =##
stpm = AsteroidThermoPhysicalModels.SingleTPM(shape, thermo_params, true, true)
stpm = AsteroidThermoPhysicalModels.SingleTPM(shape, thermo_params; SELF_SHADOWING=true, SELF_HEATING=true)
AsteroidThermoPhysicalModels.init_temperature!(stpm, 200.)

# Run TPM and save the result
Expand Down
2 changes: 1 addition & 1 deletion test/heat_conduction_1D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
println(thermo_params)

##= Setting of TPM =##
stpm = AsteroidThermoPhysicalModels.SingleTPM(shape, thermo_params, false, false)
stpm = AsteroidThermoPhysicalModels.SingleTPM(shape, thermo_params; SELF_SHADOWING=false, SELF_HEATING=false)

##= Initial temperature =##
for n in 1:size(stpm.temperature, 1)
Expand Down
2 changes: 1 addition & 1 deletion test/non-uniform_thermoparams.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
)

##= Setting of TPM =##
stpm = AsteroidThermoPhysicalModels.SingleTPM(shape, thermo_params, true, true)
stpm = AsteroidThermoPhysicalModels.SingleTPM(shape, thermo_params; SELF_SHADOWING=true, SELF_HEATING=true)
AsteroidThermoPhysicalModels.init_temperature!(stpm, 200.)

##= Run TPM and save the result =##
Expand Down

0 comments on commit 54e9192

Please sign in to comment.