Repository navigation
Expand file tree
/
Copy pathentity.schema.json
More file actions
2936 lines (2936 loc) · 103 KB
/
Copy pathentity.schema.json
File metadata and controls
2936 lines (2936 loc) · 103 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://entity-toolkit.github.io/schema/entity.schema.json",
"title": "entity",
"description": "Entity simulation input file",
"$comment": "GENERATOR CONVENTION -- this schema is the single source of truth for `input.template.toml`. Standard keywords carry the machine-checkable part (type/enum/minimum/maximum/items/prefixItems/minItems/maxItems/pattern/default/required/deprecated). The `x-entity` object carries the parts JSON Schema cannot express, all verbatim from the template comments: `type` = the literal `@type:` annotation (use it for the comment line whenever present, else derive from the standard keywords); `default` = the literal `@default:` annotation (use it whenever present, else format the standard `default`); `notes` = ordered `@note:` lines; `examples` = ordered `@example:` lines; `enum` = an illustrative, NON-exhaustive value list that must not be validated as a real `enum`; `deprecated` = the `@deprecated:` text. `x-entity.inferred` on an object lists quantities the code derives rather than reads; they are NOT valid input keys (so they are absent from `properties` and rejected by `additionalProperties: false`) and should be emitted as an `@inferred:` comment block after that table's own keys and before its sub-tables. Property order in `properties` is the emission order. Objects with `additionalProperties: true` are free-form. `$ref` is used once, for `$defs/colormap`.",
"type": "object",
"additionalProperties": false,
"required": [
"simulation",
"grid",
"scales",
"particles"
],
"$defs": {
"colormap": {
"type": "string",
"pattern": "(?i)^(cmr\\.)?(viridis|inferno|plasma|cool2warm|gray|RdBu_r|dusk|cosmic|freeze|apple|gothic|sunburst|voltage|ocean|fusion|prinsenvlag)$",
"x-entity": {
"type": "string",
"enum": [
"viridis",
"inferno",
"plasma",
"cool2warm",
"gray",
"RdBu_r",
"and the CMasher maps (BSD-3, https://cmasher.readthedocs.io): \"dusk\", \"cosmic\", \"freeze\", \"apple\", \"gothic\", \"sunburst\", \"voltage\", \"ocean\", \"fusion\", \"prinsenvlag\" (an optional \"cmr.\" prefix is ok)"
]
}
}
},
"properties": {
"simulation": {
"description": "Global simulation parameters",
"type": "object",
"additionalProperties": false,
"required": [
"name",
"engine",
"runtime"
],
"properties": {
"name": {
"description": "Name of the simulation",
"type": "string",
"x-entity": {
"type": "string",
"notes": [
"The name is used for the output files"
]
}
},
"engine": {
"description": "Simulation engine to use",
"anyOf": [
{
"enum": [
"SRPIC",
"GRPIC"
]
},
{
"type": "string",
"pattern": "(?i)^(SRPIC|GRPIC)$"
}
],
"x-entity": {
"type": "string"
}
},
"runtime": {
"description": "Max runtime in physical (code) units",
"type": "number",
"exclusiveMinimum": 0.0,
"x-entity": {
"type": "float [> 0]",
"examples": [
"1e5"
]
}
},
"domain": {
"description": "Parameters specific to domain decomposition",
"type": "object",
"additionalProperties": false,
"properties": {
"number": {
"description": "Number of domains",
"type": "integer",
"minimum": 1,
"x-entity": {
"type": "int",
"default": "1 [no MPI]; MPI_SIZE [MPI]"
}
},
"decomposition": {
"description": "Decomposition of the domain (for MPI) in each of the directions",
"type": "array",
"minItems": 1,
"maxItems": 3,
"items": {
"type": "integer"
},
"default": [
-1,
-1,
-1
],
"x-entity": {
"type": "array<int> [size 1 :->: 3]",
"notes": [
"-1 means the code will determine the decomposition in the specific direction automatically",
"Automatic detection is either done by inference from # of MPI tasks, or by balancing the grid size on each domain"
],
"examples": [
"[2, 2, 2] (total of 8 domains)"
]
}
},
"load_balance": {
"description": "Diffusion-style dynamic load balancing. Domain boundaries between MPI neighbors are nudged to equalize the active-particle count per rank. All inter-rank traffic uses only the existing nearest-neighbor field/particle communication paths.",
"type": "object",
"additionalProperties": false,
"properties": {
"enable": {
"description": "Enable dynamic load balancing",
"type": "boolean",
"default": false,
"x-entity": {
"type": "bool"
}
},
"interval": {
"description": "Run the rebalancer every `interval` timesteps (0 disables)",
"type": "integer",
"minimum": 0,
"default": 0,
"x-entity": {
"type": "int"
}
},
"dimensions": {
"description": "Dimensions along which load is redistributed (1 = x1, 2 = x2, 3 = x3)",
"type": "array",
"minItems": 1,
"maxItems": 3,
"uniqueItems": true,
"items": {
"type": "integer",
"enum": [
1,
2,
3
]
},
"default": [
1
],
"x-entity": {
"type": "array<int> [subset of {1, 2, 3}]"
}
},
"tolerance": {
"description": "Skip rebalancing along a dim when (max - min) / mean of the per-slice particle count is below this fraction",
"type": "number",
"minimum": 0.0,
"default": 0.1,
"x-entity": {
"type": "float"
}
},
"max_shift": {
"description": "Maximum cell-shift per interior boundary per event; clamped at compile time to N_GHOSTS so the migrating field strip is already cached in the rank's ghost zone.",
"type": "integer",
"minimum": 0,
"x-entity": {
"type": "int",
"default": "N_GHOSTS"
}
}
}
}
}
}
}
},
"grid": {
"description": "Parameters specific to grid geometry",
"type": "object",
"additionalProperties": false,
"required": [
"resolution",
"extent",
"metric",
"boundaries"
],
"x-entity": {
"inferred": [
{
"name": "dim",
"brief": "Dimensionality of the grid",
"type": "short",
"enum": [
1,
2,
3
],
"from": "`grid.resolution`"
}
]
},
"properties": {
"resolution": {
"description": "Spatial resolution of the grid",
"type": "array",
"minItems": 1,
"maxItems": 3,
"items": {
"type": "integer",
"minimum": 1
},
"x-entity": {
"type": "array<uint> [size 1 :->: 3]",
"notes": [
"Dimensionality is inferred from the size of this array"
],
"examples": [
"[1024, 1024, 1024]"
]
}
},
"extent": {
"description": "Physical extent of the grid",
"type": "array",
"minItems": 1,
"maxItems": 3,
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"prefixItems": [
{
"type": "number"
},
{
"type": "number"
}
]
},
"x-entity": {
"type": "array<tuple<float>> [size 1 :->: 3]",
"notes": [
"For spherical geometry, only specify `[[rmin, rmax]]`, other values are set automatically",
"For cartesian geometry, cell aspect ratio has to be 1: `dx=dy=dz`"
],
"examples": [
"[[0.0, 1.0], [-1.0, 1.0]]"
]
}
},
"metric": {
"description": "Metric-related parameters",
"type": "object",
"additionalProperties": false,
"required": [
"metric"
],
"x-entity": {
"inferred": [
{
"name": "coord",
"brief": "Coordinate system on the grid",
"type": "string",
"enum": [
"cartesian",
"spherical",
"qspherical"
],
"from": "`grid.metric.metric`"
},
{
"name": "ks_rh",
"brief": "Size of the horizon for GR Kerr Schild",
"type": "float",
"from": "`grid.metric.ks_a`"
},
{
"name": "params",
"brief": "A map of all metric-specific parameters together (for easy access)",
"type": "map<string, float>",
"from": "`grid.metric`"
}
]
},
"properties": {
"metric": {
"description": "Metric on the grid",
"anyOf": [
{
"enum": [
"Minkowski",
"Spherical",
"QSpherical",
"Kerr_Schild",
"QKerr_Schild",
"Kerr_Schild_0"
]
},
{
"type": "string",
"pattern": "(?i)^(Minkowski|Spherical|QSpherical|Kerr_Schild|QKerr_Schild|Kerr_Schild_0)$"
}
],
"x-entity": {
"type": "string"
}
},
"qsph_r0": {
"description": "`r0` paramter for the QSpherical metric `x1 = log(r-r0)`",
"type": "number",
"default": 0.0,
"x-entity": {
"type": "float [-inf -> rmin]",
"notes": [
"Negative values produce almost uniform grid in r"
]
}
},
"qsph_h": {
"description": "`h` paramter for the QSpherical metric `th = x2 + 2*h x2 (pi-2*x2)*(pi-x2)/pi^2`",
"type": "number",
"minimum": -1.0,
"maximum": 1.0,
"default": 0.0,
"x-entity": {
"type": "float [-1 :->: 1]"
}
},
"ks_a": {
"description": "Spin parameter for the Kerr Schild metric",
"type": "number",
"minimum": 0.0,
"maximum": 1.0,
"default": 0.0,
"x-entity": {
"type": "float [0 :-> 1]"
}
}
}
},
"boundaries": {
"description": "Boundary-condition related parameters",
"type": "object",
"additionalProperties": false,
"required": [
"fields",
"particles"
],
"properties": {
"fields": {
"description": "Boundary conditions for fields",
"type": "array",
"minItems": 1,
"maxItems": 3,
"items": {
"type": "array",
"minItems": 1,
"maxItems": 2,
"items": {
"anyOf": [
{
"enum": [
"PERIODIC",
"MATCH",
"FIXED",
"ATMOSPHERE",
"CUSTOM",
"HORIZON",
"CONDUCTOR"
]
},
{
"type": "string",
"pattern": "(?i)^(PERIODIC|MATCH|FIXED|ATMOSPHERE|CUSTOM|HORIZON|CONDUCTOR)$"
}
]
}
},
"x-entity": {
"type": "array<tuple<string>> [size 1 :->: 3]",
"notes": [
"When periodic in any of the directions, you should only set one value: [..., [\"PERIODIC\"], ...]",
"In spherical, bondaries in theta/phi are set automatically (only specify bc @ `[rmin, rmax]`): [[\"ATMOSPHERE\", \"MATCH\"]]",
"In GR, the horizon boundary is set automatically (only specify bc @ rmax): [[\"MATCH\"]]"
],
"examples": [
"[[\"CUSTOM\", \"MATCH\"]] (for 2D spherical `[[rmin, rmax]]`)"
]
}
},
"particles": {
"description": "Boundary conditions for particles",
"type": "array",
"minItems": 1,
"maxItems": 3,
"items": {
"type": "array",
"minItems": 1,
"maxItems": 2,
"items": {
"anyOf": [
{
"enum": [
"PERIODIC",
"ABSORB",
"ATMOSPHERE",
"CUSTOM",
"REFLECT",
"HORIZON"
]
},
{
"type": "string",
"pattern": "(?i)^(PERIODIC|ABSORB|ATMOSPHERE|CUSTOM|REFLECT|HORIZON)$"
}
]
}
},
"x-entity": {
"type": "array<tuple<string>> [size 1 :->: 3]",
"notes": [
"When periodic in any of the directions, you should only set one value [..., [\"PERIODIC\"], ...]",
"In spherical, bondaries in theta/phi are set automatically (only specify bc @ `[rmin, rmax]`) [[\"ATMOSPHERE\", \"ABSORB\"]]",
"In GR, the horizon boundary is set automatically (only specify bc @ `rmax`): [[\"ABSORB\"]]"
],
"examples": [
"[[\"PERIODIC\"], [\"PERIODIC\"]]"
]
}
},
"match": {
"description": "Parameters specific to MATCH boundary conditions",
"type": "object",
"additionalProperties": false,
"properties": {
"ds": {
"description": "Size of the matching layer in each direction for fields in physical (code) units",
"anyOf": [
{
"type": "number",
"exclusiveMinimum": 0.0
},
{
"type": "array",
"minItems": 1,
"maxItems": 3,
"items": {
"type": "array",
"maxItems": 2,
"items": {
"type": "number"
}
}
}
],
"x-entity": {
"type": "float | array<tuple<float>>",
"default": "1% of the domain size (in shortest dimension)",
"notes": [
"In spherical, this is the size of the layer in `r` from the outer wall"
],
"examples": [
"`ds = 1.5` (will set the same for all directions)",
"`ds = [[1.5], [2.0, 1.0], [1.1]]` (will duplicate 1.5 for +/- `x1` and 1.1 for +/- `x3`)",
"`ds = [[], [1.5], []]` (will only set for x2)"
]
}
}
}
},
"absorb": {
"description": "Parameters specific to ABSORB boundary conditions",
"type": "object",
"additionalProperties": false,
"properties": {
"ds": {
"description": "Size of the absorption layer for particles in physical (code) units",
"type": "number",
"exclusiveMinimum": 0.0,
"x-entity": {
"type": "float",
"default": "1% of the domain size (in shortest dimension)",
"notes": [
"In spherical, this is the size of the layer in `r` from the outer wall",
"In cartesian, this is the same for all dimensions where applicable"
]
}
}
}
},
"atmosphere": {
"description": "Parameters specific to ATMOSPHERE boundary conditions",
"type": "object",
"additionalProperties": false,
"x-entity": {
"inferred": [
{
"name": "g",
"brief": "Acceleration due to imposed gravity",
"type": "float",
"from": "`grid.boundaries.atmosphere.temperature`, `grid.boundaries.atmosphere.height`",
"value": "`temperature / height`"
}
]
},
"properties": {
"temperature": {
"description": "Temperature of the atmosphere in units of `m0 c^2`",
"type": "number",
"minimum": 0.0,
"x-entity": {
"type": "float",
"notes": [
"[required] if `ATMOSPHERE` is one of the boundaries"
]
}
},
"density": {
"description": "Peak number density of the atmosphere at base in units of `n0`",
"type": "number",
"minimum": 0.0,
"x-entity": {
"type": "float"
}
},
"height": {
"description": "Pressure scale-height in physical units",
"type": "number",
"exclusiveMinimum": 0.0,
"x-entity": {
"type": "float"
}
},
"species": {
"description": "Species indices of particles that populate the atmosphere",
"type": "array",
"minItems": 2,
"maxItems": 2,
"prefixItems": [
{
"type": "integer",
"minimum": 1
},
{
"type": "integer",
"minimum": 1
}
],
"x-entity": {
"type": "array<int> [size 2]"
}
},
"ds": {
"description": "Distance from the edge to which the gravity is imposed in physical units",
"type": "number",
"minimum": 0.0,
"default": 0.0,
"x-entity": {
"type": "float",
"notes": [
"0.0 means no limit"
]
}
}
}
}
}
}
}
},
"scales": {
"description": "Fiducial scales that fix the code unit system",
"type": "object",
"additionalProperties": false,
"required": [
"larmor0",
"skindepth0"
],
"x-entity": {
"inferred": [
{
"name": "dx0",
"brief": "fiducial minimum size of the cell",
"type": "float",
"from": "`grid`"
},
{
"name": "V0",
"brief": "fiducial elementary volume",
"type": "float",
"from": "`grid`"
},
{
"name": "n0",
"brief": "Fiducial number density",
"type": "float",
"from": "`particles.ppc0`, `grid`",
"value": "`ppc0 / V0`"
},
{
"name": "q0",
"brief": "Fiducial elementary charge",
"type": "float",
"from": "`scales.skindepth0`, `scales.n0`",
"value": "`1 / (n0 * skindepth0^2)`"
},
{
"name": "sigma0",
"brief": "Fiducial magnetization parameter",
"type": "float",
"from": "`scales.larmor0`, `scales.skindepth0`",
"value": "`(skindepth0 / larmor0)^2`"
},
{
"name": "B0",
"brief": "Fiducial magnetic field",
"type": "float",
"from": "`scales.larmor0`",
"value": "`1 / larmor0`"
},
{
"name": "omegaB0",
"brief": "Fiducial cyclotron frequency",
"type": "float",
"from": "`scales.larmor0`",
"value": "`1 / larmor0`"
}
]
},
"properties": {
"larmor0": {
"description": "Fiducial larmor radius",
"type": "number",
"exclusiveMinimum": 0.0,
"x-entity": {
"type": "float [> 0.0]"
}
},
"skindepth0": {
"description": "Fiducial plasma skin depth",
"type": "number",
"exclusiveMinimum": 0.0,
"x-entity": {
"type": "float [> 0.0]"
}
}
}
},
"radiation": {
"description": "Radiative drag and photon emission parameters",
"type": "object",
"additionalProperties": false,
"properties": {
"drag": {
"description": "Radiation reaction (drag) parameters",
"type": "object",
"additionalProperties": false,
"properties": {
"synchrotron": {
"description": "Synchrotron drag parameters",
"type": "object",
"additionalProperties": false,
"properties": {
"gamma_rad": {
"description": "Radiation reaction limit gamma-factor for synchrotron",
"type": "number",
"exclusiveMinimum": 0.0,
"default": 1.0,
"x-entity": {
"type": "float [> 0.0]",
"notes": [
"[required] if one of the species has `radiative_drag = \"synchrotron\"`"
]
}
}
}
},
"compton": {
"description": "Compton drag parameters",
"type": "object",
"additionalProperties": false,
"properties": {
"gamma_rad": {
"description": "Radiation reaction limit gamma-factor for Compton drag",
"type": "number",
"exclusiveMinimum": 0.0,
"default": 1.0,
"x-entity": {
"type": "float [> 0.0]",
"notes": [
"[required] if one of the species has `radiative_drag = \"compton\"`"
]
}
}
}
}
}
},
"emission": {
"description": "Photon emission parameters",
"type": "object",
"additionalProperties": false,
"properties": {
"synchrotron": {
"description": "Synchrotron emission parameters",
"type": "object",
"additionalProperties": false,
"required": [
"photon_species"
],
"x-entity": {
"inferred": [
{
"name": "nominal_probability",
"brief": "Nominal probability of the emission for a particle with `gamma * beta = 1`, charge-to-mass = `q0 / m0`",
"type": "float",
"from": "`.gamma_qed`, `.photon_weight`, `...drag.synchrotron.gamma_rad`, `scales.omegaB0`, `algorithms.timestep.dt`",
"value": "`0.1 * omegaB0 * dt * (gamma_qed / gamma_rad)^2 / photon_weight`"
},
{
"name": "nominal_photon_energy",
"brief": "Nominal energy of the emitted photon for a particle with `gamma * beta = 1`, mass = `m0`",
"type": "float",
"from": "`.gamma_qed`",
"value": "`(1 / gamma_qed)^2`"
}
]
},
"properties": {
"gamma_qed": {
"description": "Gamma-factor of a particle emitting synchrotron photons at energy `m0 c^2` in fiducial magnetic field `B0`",
"type": "number",
"exclusiveMinimum": 1.0,
"default": 10.0,
"x-entity": {
"type": "float [> 1.0]"
}
},
"photon_energy_min": {
"description": "Minimum photon energy for synchrotron emission (units of `m0 c^2`)",
"type": "number",
"exclusiveMinimum": 0.0,
"default": 0.001,
"x-entity": {
"type": "float [> 0.0]",
"default": "1e-3"
}
},
"photon_weight": {
"description": "Weights for the emitted synchrotron photons",
"type": "number",
"exclusiveMinimum": 0.0,
"default": 1.0,
"x-entity": {
"type": "float [> 0.0]"
}
},
"photon_species": {
"description": "Index of species for the emitted photon",
"type": "integer",
"minimum": 1,
"x-entity": {
"type": "ushort [> 0]"
}
}
}
},
"compton": {
"description": "Inverse Compton emission parameters",
"type": "object",
"additionalProperties": false,
"required": [
"photon_species"
],
"x-entity": {
"inferred": [
{
"name": "nominal_probability",
"brief": "Nominal probability of the emission for a particle with `gamma * beta = 1`, charge-to-mass = `q0 / m0`",
"type": "float",
"from": "`.gamma_qed`, `.photon_weight`, `...drag.compton.gamma_rad`, `scales.omegaB0`, `algorithms.timestep.dt`",
"value": "`0.1 * omegaB0 * dt * (gamma_qed / gamma_rad)^2 / photon_weight`"
},
{
"name": "nominal_photon_energy",
"brief": "Nominal energy of the emitted photon for a particle with `gamma * beta = 1`, mass = `m0`",
"type": "float",
"from": "`.gamma_qed`",
"value": "`(1 / gamma_qed)^2`"
}
]
},
"properties": {
"gamma_qed": {
"description": "Gamma-factor of a particle emitting inverse Compton photons at energy `m0 c^2` in fiducial magnetic field `B0`",
"type": "number",
"exclusiveMinimum": 1.0,
"default": 10.0,
"x-entity": {
"type": "float [> 1.0]"
}
},
"photon_energy_min": {
"description": "Minimum photon energy for inverse Compton emission (units of `m0 c^2`)",
"type": "number",
"exclusiveMinimum": 0.0,
"default": 0.001,
"x-entity": {
"type": "float [> 0.0]",
"default": "1e-3"
}
},
"photon_weight": {
"description": "Weights for the emitted inverse Compton photons",
"type": "number",
"exclusiveMinimum": 0.0,
"default": 1.0,
"x-entity": {
"type": "float [> 0.0]"
}
},
"photon_species": {
"description": "Index of species for the emitted photon",
"type": "integer",
"minimum": 1,
"x-entity": {
"type": "ushort [> 0]"
}
}
}
}
}
}
}
},
"algorithms": {
"description": "Algorithm and solver tuning",
"type": "object",
"additionalProperties": false,
"properties": {
"current_filters": {
"description": "Number of current smoothing passes",
"type": "integer",
"minimum": 0,
"default": 0,
"x-entity": {
"type": "ushort [>= 0]"
}
},
"timestep": {
"description": "Timestep parameters",
"type": "object",
"additionalProperties": false,
"x-entity": {
"inferred": [
{
"name": "dt",
"brief": "timestep duration",
"type": "float",
"from": "`algorithms.timestep.CFL`, `scales.dx0`",
"value": "`CFL * dx0`"
}
]
},
"properties": {
"CFL": {
"description": "Courant-Friedrichs-Lewy number",
"type": "number",
"exclusiveMinimum": 0.0,
"maximum": 1.0,
"default": 0.95,
"x-entity": {
"type": "float [0.0 -> 1.0]",
"notes": [
"CFL number determines the timestep duration"
]
}
},
"correction": {
"description": "Correction factor for the speed of light used in field solver",
"type": "number",
"default": 1.0,
"x-entity": {
"type": "float"
}
}
}
},
"deposit": {
"description": "Current deposition parameters",
"type": "object",
"additionalProperties": false,
"x-entity": {
"inferred": [
{
"name": "order",
"brief": "order of the particle shape function",
"type": "ushort [0 -> 10]",
"from": "compile-time definition `shape_order`"
}
]
},
"properties": {
"enable": {
"description": "Enable the current deposition",
"type": "boolean",
"default": true,
"x-entity": {
"type": "bool"
}
},
"team_policy_team_size": {
"description": "Tiled-deposit work-group (team) size",
"type": "integer",
"minimum": 0,
"default": 0,
"deprecated": true,
"x-entity": {
"type": "uint [>= 0]",
"deprecated": "removed in 1.6+, use `tiled_deposit_team_size` instead"
}
},
"tiled_deposit_team_size": {
"description": "Tiled-deposit work-group (team) size",
"type": "integer",
"minimum": 0,
"default": 0,
"x-entity": {
"type": "uint [>= 0]",
"notes": [
"0 keeps Kokkos::AUTO (backend occupancy heuristic); a positive value overrides it, clamped to the backend/scratch maximum at launch. Only used in `tiled_deposit=ON` builds. Pick a multiple of the device subgroup width for best occupancy (see ideal_tile_size.py)"
]
}
}
}
},
"gr": {
"description": "GR pusher parameters",
"type": "object",
"additionalProperties": false,
"properties": {
"pusher_eps": {
"description": "Stepsize for numerical differentiation in GR pusher",
"type": "number",
"exclusiveMinimum": 0.0,
"default": 1e-06,
"x-entity": {
"type": "float [> 0.0]",
"default": "1e-6"
}
},
"pusher_niter": {
"description": "Number of iterations for the Newton-Raphson method in GR pusher",
"type": "integer",
"minimum": 1,
"default": 10,
"x-entity": {
"type": "ushort [> 0]"
}
}
}
},
"gca": {
"description": "Guiding-center approximation parameters",
"type": "object",
"additionalProperties": false,
"properties": {
"e_ovr_b_max": {
"description": "Maximum value for E/B allowed for GCA particles",
"type": "number",
"minimum": 0.0,
"maximum": 1.0,
"default": 0.9,
"x-entity": {
"type": "float [0.0 -> 1.0]"
}
},
"larmor_max": {
"description": "Maximum Larmor radius allowed for GCA particles (in physical units)",
"type": "number",
"minimum": 0.0,
"default": 0.0,
"x-entity": {
"type": "float",
"notes": [
"When `larmor_max` == 0, the limit is disabled"
]
}
}