Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ B_t96 = T96(param)(𝐫, ps)
B_t01 = T01(param)(𝐫, ps)
B_ts04 = TS04(param)(𝐫, ps)
B_ta16 = TA16(pdyn=2.0, symhc=-30.0, xind=0.8, byimf=2.0)(𝐫, ps) # symhc: corrected SYM-H, xind: Newell coupling index
B_ts07d = TS07D("2017_001_00_00.par")(𝐫, ps) # coefficients fitted for one 5-min epoch, from the TS07D archive

# Using `TsyIGRF` to combine IGRF14 model and Tsyganenko model, default TsyIGRF() == TsyIGRF(T89(iopt=3))
TsyIGRF()(𝐫, t)
Expand All @@ -49,6 +50,7 @@ Driven(T96, t -> (; pdyn = 2.0, dst = -10.0, byimf = 0.0, bzimf = -2.0)) # any
- [x] T01/T02: A model of the near magnetosphere with a dawn-dusk asymmetry
- [x] TS05/TS04: a dynamical empirical model of the inner storm-time magnetosphere
- [x] TA16: An empirical radial basis function (RBF) model of the magnetosphere parameterized by interplanetary and ground-based drivers
- [x] TS07D: a high-resolution data-based model with coefficients fitted per 5-min epoch
- [ ] TA15 model: A forecasting model of the magnetosphere driven by optimal solar-wind coupling functions
- Plasma model
- [ ] Tsyganenko and Mukai (2003): a simple analytical model of the central plasma sheet ion parameters (10 − 50 RE), based on Geotail data.
Expand Down
4 changes: 3 additions & 1 deletion benchmark/benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ models["T96"] = @benchmarkable T96($param)($r_gsm, $ps)
models["T01"] = @benchmarkable T01($param)($r_gsm, $ps)
models["TS04"] = @benchmarkable TS04($param)($r_gsm, $ps)
models["TA16"] = @benchmarkable TA16(pdyn = 2.0, symhc = -30.0, xind = 0.8, byimf = 2.0)($r_gsm, $ps)
const ts07d = TS07D(joinpath(pkgdir(TsyganenkoModels), "test", "ts07d_2017_001_00_00.par"))
models["TS07D"] = @benchmarkable $ts07d($r_gsm, $ps)

# ── Shared field components ────────────────────────────────────────────────────
components = SUITE["components"] = BenchmarkGroup()
Expand All @@ -34,7 +36,7 @@ components["birk_tot"] = @benchmarkable TsyganenkoModels.birk_tot($ps, $x, $y, $

# Tail: deformed current sheet (two modes)
const tail_state = (; dxshift1 = 4.0, dxshift2 = 0.0, d = 3.0, deltady = 2.0, g = 28.2)
components["deformed"] = @benchmarkable TsyganenkoModels.deformed($ps, $x, $y, $z, 9.0, $tail_state)
components["deformed"] = @benchmarkable TsyganenkoModels.deformed((x, y, z) -> TsyganenkoModels.unwarped(x, y, z, $tail_state), $ps, $x, $y, $z, 9.0, $tail_state.g)
components["tail_shield"] = @benchmarkable TsyganenkoModels.tail_shield(TsyganenkoModels.TAIL_A1, $x, $y, $z, 4.0)

# Dipole shielding
Expand Down
81 changes: 81 additions & 0 deletions data/TS07D_TAIL_PAR/tailamebhr1.par
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
13.25539804
255.3217538
-79.89706790
195.0019560
-347.6926018
0.3973046034
174.5316027
-23.35668432
428.5107065
-400.5955764
10.91783806
231.1235658
-64.87034621
451.0944052
-407.5943909
-0.1622864939
20.66583971
-4.106874805
-244.9537855
10.82528900
6.969519442
99.14809699
-35.75424066
-77.11980961
-114.8389102
2.838045646
-112.1078206
-0.4433978304
107.4992199
399.4372386
16.10195878
158.4046678
-74.12900346
-34.55378744
-207.0295882
22.75349480
-233.5493121
-63.84998082
4.779104523
20.77461950
49.20154366
139.3056306
-324.4424523
0.1490629538
21.35258296
-58.42712912
-158.3722924
-82.73035450
-0.3341216639
-23.70307931
-186.0731254
109.0391770
287.9703869
0.1046095319
11.61799927
-42.12650667
-48.03543730
-237.4279218
-0.1993909017E-01
-3.642779050
85.34232763
14.24194314
104.4439846
0.2660826013E-02
0.7942294559
4.770045828
-2.758556969
-23.90987296
-0.2520465807E-03
-0.1196121512
-44.13661853
0.2496181491
-0.4164982984
0.1511020603E-04
0.1041401758E-01
-0.1192315041
0.8089158143E-01
0.1021836245
0.3905866076E-01
0.6230692710E-01
Q= 0.0610
81 changes: 81 additions & 0 deletions data/TS07D_TAIL_PAR/tailamebhr2.par
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
1413.250347
3388.986757
-3209.156273
1453.189894
-2812.519798
1607.694575
5411.997496
-4048.293303
5763.317904
-6665.784469
2576.897249
8607.738810
-6391.771568
14749.11298
-12115.94957
1582.448621
5464.278466
-3982.413713
10525.51121
-7821.318422
1862.681642
5899.773770
-4629.551410
-11556.80966
-4910.266539
355.3506268
2561.050018
-1192.865402
-125.1672575
-5142.769670
-1178.009932
-5686.161661
3245.503342
1941.225718
12038.37331
482.7613468
3441.049646
-1552.962277
-718.5278467
-6907.875657
-1187.068679
-3333.315354
3125.830980
109.4077536
1220.357614
1116.497337
4142.211324
-2026.672127
2.138247571
530.8706281
241.7507168
-2232.936800
2007.092920
-4.288653843
-374.0412307
1610.945795
597.4109334
-978.1077288
0.9559599404
109.5464428
-679.2994761
106.0523856
1005.194380
-0.1126468710
-15.46511845
-213.4507825
-170.6503933
-805.1737415
0.5126621600E-02
-0.8188571651
226.4973178
81.15966318
386.0208285
0.7942566154E-03
1.008747946
-0.1039004631
0.8415142137E-01
0.9791085633E-01
0.3975123479E-01
0.6242141261E-01
Q= 0.0780
81 changes: 81 additions & 0 deletions data/TS07D_TAIL_PAR/tailamebhr3.par
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
2561.932600
6639.253742
-5619.538006
2106.965705
-5276.951152
3716.245708
13359.03475
-8923.118125
10533.53613
-14293.45731
5815.101290
22381.07333
-14074.84055
32335.30659
-27692.94504
4448.980831
17216.99977
-10788.01118
31294.44794
-21793.67842
5321.615127
18941.61758
-12814.91867
-28569.99406
-17099.33616
1855.759384
10759.12212
-5136.070414
-2484.659131
-16105.89050
-2614.872817
-18758.20973
7541.820300
5017.661232
37601.32630
1836.091848
13422.80658
-5493.858857
-1513.064830
-19158.24575
-5185.209330
-14665.34093
12908.99484
166.5050017
366.2175899
4360.651257
16175.24228
-7786.512178
21.33920771
4207.829478
785.3331105
-8253.487501
6963.923738
-10.89936917
-2212.570029
5409.724335
2128.850954
-3313.321114
2.007489643
599.6034890
-2769.368086
251.2069477
3175.623710
-0.2078567171
-73.99022951
-125.5725850
-470.7474776
-2459.158838
0.7708521717E-02
-10.04047953
386.1546517
218.8488833
1140.719560
0.1454835647E-02
7.405377840
-0.1037764722
0.8289173533E-01
0.9792480989E-01
0.3781082252E-01
0.6548732570E-01
Q= 0.0821
81 changes: 81 additions & 0 deletions data/TS07D_TAIL_PAR/tailamebhr4.par
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
1007.772729
5888.099069
-3973.767508
1956.082474
-4544.191741
1497.560875
12793.54815
-7000.144307
10375.63086
-13758.38190
2040.430518
20724.27070
-10177.61292
33633.23739
-27853.52345
879.8366650
11755.54062
-5005.020217
36842.11984
-19740.51455
1052.862248
10185.95498
-5391.129821
-29855.92571
-7588.764721
-50.47223937
10322.53311
-2309.880310
-2485.822262
-21795.94233
-2299.144186
-21662.58363
10855.33649
5318.922966
30622.10372
734.3952846
15304.21767
-5627.390706
-1808.514559
-16316.03841
-2439.048656
-12019.74265
10785.60416
254.5303220
1705.709709
2453.184802
12800.84334
-4914.221808
13.41491883
2640.498918
2787.236046
-6820.734791
4369.534647
-12.71855819
-1581.882978
4506.548208
1932.751530
-2858.809415
2.736241932
464.8436734
-2269.821481
160.0499888
3023.269179
-0.3246745441
-67.41897360
-639.3539647
-411.8486264
-2241.210983
0.1646797120E-01
-3.884378163
761.7182150
203.3498859
1043.233799
0.1833910158E-02
4.828327164
-0.1054748550
0.8332762730E-01
0.9563917472E-01
0.3958834221E-01
0.6476937287E-01
Q= 0.0876
Loading
Loading