From 54e919266de1b2793e937da67a1b51cc25768eca Mon Sep 17 00:00:00 2001 From: kanamaru-masanori Date: Fri, 18 Aug 2023 15:13:09 +0900 Subject: [PATCH] Update test scripts --- test/TPM_Didymos.jl | 8 ++++---- test/TPM_Ryugu.jl | 8 ++++---- test/heat_conduction_1D.jl | 2 +- test/non-uniform_thermoparams.jl | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/TPM_Didymos.jl b/test/TPM_Didymos.jl index 8b4c68ab..29bd5377 100644 --- a/test/TPM_Didymos.jl +++ b/test/TPM_Didymos.jl @@ -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) @@ -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.) diff --git a/test/TPM_Ryugu.jl b/test/TPM_Ryugu.jl index 6e1b469a..4f194813 100644 --- a/test/TPM_Ryugu.jl +++ b/test/TPM_Ryugu.jl @@ -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ₚ) @@ -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 diff --git a/test/heat_conduction_1D.jl b/test/heat_conduction_1D.jl index 83c65ccd..d56b4614 100644 --- a/test/heat_conduction_1D.jl +++ b/test/heat_conduction_1D.jl @@ -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) diff --git a/test/non-uniform_thermoparams.jl b/test/non-uniform_thermoparams.jl index cf41ebb8..a332bea2 100644 --- a/test/non-uniform_thermoparams.jl +++ b/test/non-uniform_thermoparams.jl @@ -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 =##