-
Notifications
You must be signed in to change notification settings - Fork 0
/
ForceProfiles_J32toJ12_BFieldScan.nb
2345 lines (2315 loc) · 105 KB
/
ForceProfiles_J32toJ12_BFieldScan.nb
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
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 12.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLength[ 105468, 2337]
NotebookOptionsPosition[ 103309, 2291]
NotebookOutlinePosition[ 103684, 2307]
CellTagsIndexPosition[ 103641, 2304]
WindowFrame->Normal*)
(* Beginning of Notebook Content *)
Notebook[{
Cell[BoxData[{
RowBox[{"Off", "[",
RowBox[{"ClebschGordan", "::", "tri"}], "]"}], "\[IndentingNewLine]",
RowBox[{"Off", "[",
RowBox[{"ClebschGordan", "::", "phy"}], "]"}]}], "Input",
CellChangeTimes->{{3.770118149078825*^9, 3.770118155653201*^9}, {
3.7701183368705664`*^9, 3.770118340836793*^9}, 3.770496982548729*^9},
CellLabel->"In[1]:=",ExpressionUUID->"001fc810-2899-4f59-aa75-3bbb6da51534"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{
RowBox[{"(*",
RowBox[{
RowBox[{
"We", " ", "work", " ", "in", " ", "natural", " ", "units", " ", "where",
" ", "k"}], ",", " ", "\[HBar]", ",", " ",
SubscriptBox["\[Mu]", "B"], ",", " ",
RowBox[{
"and", " ", "\[CapitalGamma]", " ", "are", " ", "1.", " ", "SI", " ",
"base", " ", "units", " ", "are", " ", "defined", " ",
RowBox[{"per", ":"}]}]}], "*)"}],
RowBox[{
RowBox[{"Solve", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"k", "\[Equal]",
FractionBox["1", "m"]}], ",",
RowBox[{"\[CapitalGamma]", "\[Equal]",
FractionBox["1", "s"]}], ",",
RowBox[{"\[HBar]", "\[Equal]",
RowBox[{
FractionBox["132521403",
RowBox[{
"400000000000000000000000000000000000000000", " ", "\[Pi]"}]], "kg",
" ",
RowBox[{
SuperscriptBox["m", "2"], "/", "s"}]}]}], ",",
RowBox[{"\[Mu]B", "\[Equal]",
RowBox[{"\[Mu]BinmsqA", " ",
SuperscriptBox["m", "2"], "A"}]}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"m", ",", "s", ",", "A", ",", "kg"}], "}"}]}], "]"}], "[",
RowBox[{"[", "1", "]"}], "]"}]}]], "Input",
CellLabel->"In[3]:=",ExpressionUUID->"dabc2d83-824a-44bc-966b-2f5a898d5555"],
Cell[BoxData[
RowBox[{"{",
RowBox[{
RowBox[{"m", "\[Rule]",
FractionBox["1", "k"]}], ",",
RowBox[{"s", "\[Rule]",
FractionBox["1", "\[CapitalGamma]"]}], ",",
RowBox[{"A", "\[Rule]",
FractionBox[
RowBox[{
SuperscriptBox["k", "2"], " ", "\[Mu]B"}], "\[Mu]BinmsqA"]}], ",",
RowBox[{"kg", "\[Rule]",
FractionBox[
RowBox[{"400000000000000000000000000000000000000000", " ",
SuperscriptBox["k", "2"], " ", "\[Pi]", " ", "\[HBar]"}],
RowBox[{"132521403", " ", "\[CapitalGamma]"}]]}]}], "}"}]], "Output",
CellChangeTimes->{{3.776447132400014*^9, 3.7764471563233824`*^9},
3.7764471886502314`*^9, 3.776447260450338*^9, 3.776447670911815*^9, {
3.7764493624335647`*^9, 3.7764493740992317`*^9}, 3.776514352210908*^9,
3.7766842999563627`*^9, 3.77668446022453*^9, 3.776770853956969*^9,
3.7767709013266783`*^9, 3.7767710312901115`*^9, 3.776771335512512*^9,
3.776772043049981*^9, 3.776783090055834*^9, 3.7771991387910795`*^9,
3.777376033247864*^9, 3.7773765760189085`*^9, 3.7773766403355875`*^9,
3.7776310805552654`*^9, 3.7780829915547695`*^9, 3.7780830321340904`*^9,
3.77825353884005*^9, 3.7943507121559553`*^9, 3.794421735525144*^9,
3.794422017063792*^9, {3.794422159599103*^9, 3.7944221700016804`*^9},
3.7944388068091464`*^9, 3.794484167736964*^9, 3.794493589895338*^9,
3.794493634506778*^9, 3.7945128312101464`*^9, 3.7945930931953363`*^9,
3.794593125843043*^9, 3.7946135837186813`*^9, 3.7946148398922424`*^9,
3.794616179102091*^9, 3.79461844159186*^9, {3.794675042965169*^9,
3.7946750546418366`*^9}, 3.7947430847802267`*^9, 3.794743333853959*^9,
3.79476610507912*^9, 3.7948321771314216`*^9, 3.794838519922949*^9,
3.795021448712452*^9, 3.795023933488643*^9, 3.8012602409076405`*^9, {
3.801260775818613*^9, 3.8012608021613503`*^9}, 3.8012610510402517`*^9,
3.8012613484868836`*^9, 3.801268818905613*^9, 3.801279063491284*^9,
3.801347948153969*^9, 3.8014816438381824`*^9, 3.801481696115418*^9,
3.801481812484581*^9, 3.802165235730942*^9, 3.802197946315115*^9, {
3.802199178867878*^9, 3.8021991971732235`*^9}, {3.8022009607473383`*^9,
3.802200972316984*^9}, 3.802202773924471*^9, 3.802208228352439*^9, {
3.8022098191380463`*^9, 3.8022098307668085`*^9}, 3.8022114241378174`*^9,
3.8022115181140165`*^9, 3.8022124637717276`*^9, 3.802214374118145*^9,
3.802214545475809*^9, 3.802216200115312*^9, 3.8022178693362474`*^9,
3.8022179856771183`*^9, 3.8022205408262243`*^9, 3.8022294250264688`*^9,
3.802229539168619*^9, 3.802229904500452*^9, 3.802231224279044*^9,
3.802233164884615*^9, 3.802265483586422*^9, 3.8022655567553735`*^9,
3.802265680150366*^9, 3.80226721861307*^9, 3.802267439437136*^9,
3.802268075624484*^9, 3.802268144273672*^9, 3.8022687049037333`*^9,
3.8022690673141193`*^9, 3.8022693800958853`*^9, 3.802269675529043*^9,
3.8022705990393877`*^9, 3.802271130833397*^9, 3.802271707216095*^9,
3.802271897963234*^9, {3.8022719497568893`*^9, 3.8022719866482196`*^9},
3.8022720684944973`*^9, 3.802272713594162*^9, 3.802273191494532*^9,
3.8022732259293747`*^9, 3.8022772858702097`*^9, 3.8022775078844633`*^9,
3.8022780074457593`*^9, 3.802278190298307*^9, 3.8022783042145557`*^9,
3.802279157335497*^9, 3.8022792996312785`*^9, 3.802279579883129*^9,
3.802279775029383*^9, 3.802279974763618*^9, 3.8022800529524918`*^9,
3.802280219453908*^9, 3.8022802961002655`*^9, {3.802280380120332*^9,
3.8022803926901016`*^9}, 3.802280721384803*^9, 3.802280849035226*^9, {
3.8022810562170873`*^9, 3.8022810647604218`*^9}, 3.802281473879985*^9,
3.802283522559945*^9, 3.8022865037406807`*^9, 3.8022870625172253`*^9,
3.80229306390548*^9, 3.80229968517578*^9, 3.802300534208085*^9,
3.8023048561581907`*^9, 3.80230569636627*^9, 3.8023071950479307`*^9,
3.8023073161095943`*^9, 3.802307672351227*^9, 3.8023090505355096`*^9,
3.8023108989502974`*^9, 3.802313245379893*^9, 3.802313745140424*^9,
3.802352007288274*^9, 3.802352790044566*^9, 3.802353349761168*^9,
3.802358619739875*^9, 3.802359034416911*^9, 3.802367294411106*^9,
3.802434636680495*^9, 3.8024449634653482`*^9, 3.802465121618992*^9,
3.802525928723258*^9, 3.803007084370628*^9, 3.8031440446967936`*^9},
CellLabel->"Out[3]=",ExpressionUUID->"130d715d-4fed-4e37-a62f-28103b9b40f7"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{
RowBox[{"k", "=",
RowBox[{"\[HBar]", "=",
RowBox[{"\[Mu]B", "=",
RowBox[{"\[CapitalGamma]", "=", "1"}]}]}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"h", "=",
RowBox[{"2", "\[Pi]", " ", "\[HBar]"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"toSpherical", "=",
RowBox[{"(", GridBox[{
{
RowBox[{"1", "/",
SqrtBox["2"]}],
RowBox[{
RowBox[{"-", "\[ImaginaryI]"}], "/",
SqrtBox["2"]}], "0"},
{"0", "0", "1"},
{
RowBox[{
RowBox[{"-", "1"}], "/",
SqrtBox["2"]}],
RowBox[{
RowBox[{"-", "\[ImaginaryI]"}], "/",
SqrtBox["2"]}], "0"}
}], ")"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{
SubscriptBox["\[CurlyEpsilon]b",
RowBox[{"-", "1"}]], ":=",
FractionBox[
RowBox[{
SubscriptBox["e", "1"], "-",
RowBox[{"\[ImaginaryI]", " ",
SubscriptBox["e", "2"]}]}],
SqrtBox["2"]]}], ";",
RowBox[{
SubscriptBox["\[CurlyEpsilon]b", "0"], ":=",
SubscriptBox["e", "3"]}], ";",
RowBox[{
SubscriptBox["\[CurlyEpsilon]b",
RowBox[{"+", "1"}]], ":=",
RowBox[{"-",
FractionBox[
RowBox[{
SubscriptBox["e", "1"], "+",
RowBox[{"\[ImaginaryI]", " ",
SubscriptBox["e", "2"]}]}],
SqrtBox["2"]]}]}], ";"}],
RowBox[{"(*",
RowBox[{"define", " ", "spherical", " ", "basis"}], "*)"}],
"\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{
RowBox[{"Fpval", "=", "1"}], ";", " ",
RowBox[{"(*",
RowBox[{
RowBox[{
"angular", " ", "momentum", " ", "of", " ", "the", " ", "excited", " ",
"state"}], ";", " ",
RowBox[{"units", " ", "\[HBar]"}]}], "*)"}], "\[IndentingNewLine]",
RowBox[{"Fval", "=", "1"}], ";"}],
RowBox[{"(*",
RowBox[{
RowBox[{
"angular", " ", "momentum", " ", "of", " ", "the", " ", "ground", " ",
"state"}], ";", " ",
RowBox[{"units", " ", "\[HBar]"}]}], "*)"}],
"*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"B", "[", "r_", "]"}], ":=",
RowBox[{"\[Beta]",
FractionBox[
RowBox[{"\[HBar]", " ", "\[CapitalGamma]"}], "\[Mu]B"],
RowBox[{"toSpherical", ".",
RowBox[{"{",
RowBox[{"0", ",", "1", ",", "0"}], "}"}]}]}]}],
RowBox[{"(*",
RowBox[{
RowBox[{"magnetic", " ", "field"}], ";", " ",
RowBox[{"units", " ", "\[HBar]", " ",
RowBox[{"\[CapitalGamma]", "/",
SubscriptBox["\[Mu]", "B"]}]}]}], "*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"g", "[", "\"\<F\>\"", "]"}], "=", "0.85"}], ";"}],
RowBox[{"(*",
RowBox[{"g", " ", "factor", " ", "of", " ", "ground", " ", "state"}],
"*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"g", "[", "\"\<F'\>\"", "]"}], "=", "0"}], ";"}],
RowBox[{"(*",
RowBox[{"g", " ", "factor", " ", "of", " ", "excited", " ", "state"}],
"*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"\[Lambda]", "=",
RowBox[{"2",
RowBox[{"\[Pi]", "/", "k"}]}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"ef", "=",
FractionBox[
RowBox[{
SqrtBox[
RowBox[{"1", "+",
RowBox[{"2", " ", "Fpval"}]}]], " ",
SqrtBox["s0"], " ", "\[CapitalGamma]", " ", "\[HBar]"}],
RowBox[{
SqrtBox["2"], " ", "rme"}]]}],
RowBox[{"(*",
RowBox[{"electric", " ", "field", " ", "strength"}], " ",
"*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
SubscriptBox["e", "i_"], ":=",
RowBox[{"UnitVector", "[",
RowBox[{"3", ",", "i"}], "]"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{
SubscriptBox["\[Theta]", "i_"], ":=", "0"}], ";"}], "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{
RowBox[{
RowBox[{"\[CurlyEpsilon]", "[", "r_", "]"}], ":=", " ",
RowBox[{"ef", " ",
RowBox[{"toSpherical", ".",
RowBox[{"(",
RowBox[{
RowBox[{"-", "\[ImaginaryI]"}],
RowBox[{"(",
FractionBox[
RowBox[{
RowBox[{
SubscriptBox["e", "1"],
SuperscriptBox["\[ExponentialE]",
RowBox[{"\[ImaginaryI]", " ", "k", " ",
RowBox[{"r", "[",
RowBox[{"[", "3", "]"}], "]"}]}]]}], "-",
RowBox[{
SubscriptBox["e", "1"],
SuperscriptBox["\[ExponentialE]",
RowBox[{
RowBox[{"-", "\[ImaginaryI]"}], " ", "k", " ",
RowBox[{"r", "[",
RowBox[{"[", "3", "]"}], "]"}]}]]}]}],
RowBox[{"2", "\[ImaginaryI]"}]], ")"}]}], ")"}]}]}]}], ";"}],
RowBox[{"(*",
RowBox[{
"polarization", " ", "of", " ", "the", " ", "laser", " ", "field"}],
"*)"}], "*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"\[Phi]", "=",
RowBox[{"\[Pi]", "/", "8"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{
RowBox[{
RowBox[{"\[CurlyEpsilon]", "[", "r_", "]"}], ":=",
RowBox[{"toSpherical", ".",
RowBox[{"(",
RowBox[{"ef", "*",
SqrtBox["2"], "*",
RowBox[{"(",
RowBox[{
RowBox[{
RowBox[{"Cos", "[",
RowBox[{
RowBox[{"k", " ",
RowBox[{"r", "[",
RowBox[{"[", "3", "]"}], "]"}]}], "-",
RowBox[{"\[Phi]", "/", "2"}]}], "]"}],
RowBox[{"(",
FractionBox[
RowBox[{
SubscriptBox["e", "1"], "-",
RowBox[{"\[ImaginaryI]", " ",
SubscriptBox["e", "2"]}]}], "2"], ")"}]}], "-",
RowBox[{
RowBox[{"Cos", "[",
RowBox[{
RowBox[{"k", " ",
RowBox[{"r", "[",
RowBox[{"[", "3", "]"}], "]"}]}], "+",
RowBox[{"\[Phi]", "/", "2"}]}], "]"}],
RowBox[{"(",
RowBox[{"-",
FractionBox[
RowBox[{
SubscriptBox["e", "1"], "+",
RowBox[{"\[ImaginaryI]", " ",
SubscriptBox["e", "2"]}]}], "2"]}], ")"}]}]}], ")"}]}],
")"}]}]}], ";"}], "*)"}], "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{
RowBox[{
RowBox[{"e", "[", "r_", "]"}], ":=",
RowBox[{"ef", "*",
SqrtBox["2"], "*",
RowBox[{"(",
RowBox[{
RowBox[{
SubscriptBox["e", "1"],
RowBox[{"Sin", "[",
RowBox[{"k", " ",
RowBox[{"r", "[",
RowBox[{"[", "3", "]"}], "]"}]}], "]"}]}], "-",
RowBox[{
SubscriptBox["e", "2"],
RowBox[{"Cos", "[",
RowBox[{"k", " ",
RowBox[{"r", "[",
RowBox[{"[", "3", "]"}], "]"}]}], "]"}]}]}], ")"}]}]}], ";"}],
"*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"e", "[", "r_", "]"}], ":=",
RowBox[{"ef", "*",
SqrtBox["2"], "*",
RowBox[{"(",
RowBox[{
RowBox[{
RowBox[{"Cos", "[",
RowBox[{"k", " ",
RowBox[{"r", "[",
RowBox[{"[", "3", "]"}], "]"}]}], "]"}],
SubscriptBox["\[CurlyEpsilon]b",
RowBox[{"-", "1"}]]}], "-",
RowBox[{
RowBox[{"Cos", "[",
RowBox[{"k", " ",
RowBox[{"r", "[",
RowBox[{"[", "3", "]"}], "]"}]}], "]"}],
SubscriptBox["\[CurlyEpsilon]b",
RowBox[{"+", "1"}]]}]}], ")"}]}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"\[CurlyEpsilon]", "[", "r_", "]"}], ":=",
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"e", "[", "r", "]"}], ".",
SubscriptBox["\[CurlyEpsilon]b",
RowBox[{"-", "1"}]]}], ",",
RowBox[{
RowBox[{"e", "[", "r", "]"}], ".",
SubscriptBox["\[CurlyEpsilon]b", "0"]}], ",",
RowBox[{
RowBox[{"e", "[", "r", "]"}], ".",
SubscriptBox["\[CurlyEpsilon]b",
RowBox[{"+", "1"}]]}]}], "}"}]}], "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{
RowBox[{
RowBox[{"\[CurlyEpsilon]", "[", "r_", "]"}], ":=",
RowBox[{"toSpherical", ".",
RowBox[{"(",
RowBox[{"ef", "*",
SqrtBox["2"], "*",
RowBox[{"(",
RowBox[{
RowBox[{
SubscriptBox["e", "1"],
RowBox[{"Sin", "[",
RowBox[{"k", " ",
RowBox[{"r", "[",
RowBox[{"[", "3", "]"}], "]"}]}], "]"}]}], "-",
RowBox[{
SubscriptBox["e", "2"],
RowBox[{"Cos", "[",
RowBox[{"k", " ",
RowBox[{"r", "[",
RowBox[{"[", "3", "]"}], "]"}]}], "]"}]}]}], ")"}]}], ")"}]}]}],
";"}], "*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"rme", "=", "1"}], ";"}],
RowBox[{"(*",
RowBox[{
RowBox[{"Reduced", " ", "dipole", " ", "matrix", " ", "element"}], ";",
" ",
RowBox[{"set", " ", "to", " ", "1", " ", "as", " ",
RowBox[{"it", "'"}], "s", " ", "the", " ", "same", " ", "for", " ",
"all", " ", "involved", " ", "transitions"}]}], "*)"}]}]}], "Input",
CellChangeTimes->{{3.7701180426627383`*^9, 3.7701180576685967`*^9},
3.770118129385699*^9, 3.7701212542847557`*^9, {3.7701255677797165`*^9,
3.770125571153909*^9}, 3.770126875811531*^9, {3.770126968705845*^9,
3.7701270021357565`*^9}, {3.7701271139071493`*^9,
3.7701271369634686`*^9}, {3.7701271827390866`*^9, 3.770127188642424*^9}, {
3.7701272352350893`*^9, 3.7701273313305855`*^9}, {3.77012739189205*^9,
3.77012747966807*^9}, {3.77012752337957*^9, 3.770127539618499*^9}, {
3.7701275836670184`*^9, 3.7701275862421656`*^9}, {3.7701287449314384`*^9,
3.7701287472665725`*^9}, 3.7701291631563597`*^9, 3.7701294540359974`*^9, {
3.770132525364667*^9, 3.7701325271707706`*^9}, {3.770132741205013*^9,
3.7701327544027677`*^9}, {3.7701327870286336`*^9,
3.7701328530284085`*^9}, {3.770133261972799*^9, 3.770133263474885*^9},
3.770133301796077*^9, {3.7701333894600906`*^9, 3.7701334302124214`*^9}, {
3.7701334645643864`*^9, 3.770133506130764*^9}, {3.770133541171768*^9,
3.770133546755088*^9}, {3.770134093634367*^9, 3.770134099826721*^9}, {
3.7701341367248316`*^9, 3.7701341410910816`*^9}, {3.7701391407827826`*^9,
3.770139141021796*^9}, {3.7701391840782585`*^9, 3.7701391961729507`*^9}, {
3.770139403294797*^9, 3.7701394062569666`*^9}, {3.770139503150509*^9,
3.7701395157732306`*^9}, {3.770139547422041*^9, 3.7701395476770554`*^9}, {
3.77013958988647*^9, 3.7701396431985188`*^9}, {3.770139674238294*^9,
3.7701396860929728`*^9}, {3.77013972783836*^9, 3.7701397280613728`*^9},
3.7701402553515453`*^9, {3.770140986087341*^9, 3.770141016582085*^9}, {
3.7701410514320784`*^9, 3.7701410635437713`*^9}, {3.7701411100394306`*^9,
3.7701411456714687`*^9}, 3.7701421395027957`*^9, 3.770142237821745*^9, {
3.7701423287022734`*^9, 3.770142328844491*^9}, {3.770142729566832*^9,
3.770142730485545*^9}, 3.7701427628110757`*^9, {3.770142800136372*^9,
3.7701428481013465`*^9}, {3.7701429290410104`*^9, 3.770142951284346*^9}, {
3.770143003810012*^9, 3.770143006167142*^9}, {3.7701430989239683`*^9,
3.77014310035511*^9}, {3.770144506522935*^9, 3.7701445088943744`*^9},
3.7702221534070168`*^9, 3.770222629767962*^9, {3.7703740678882504`*^9,
3.7703741474217987`*^9}, {3.7703741984627185`*^9,
3.7703742112784514`*^9}, {3.7703744420306497`*^9,
3.7703745097735243`*^9}, {3.770374545869589*^9, 3.770374559069344*^9}, {
3.7703746054849987`*^9, 3.770374669735674*^9}, {3.770374745533009*^9,
3.7703747660131807`*^9}, {3.770374802093244*^9, 3.770374903581049*^9}, {
3.770375010830183*^9, 3.7703750145573964`*^9}, {3.7703750599339914`*^9,
3.7703750779970245`*^9}, {3.770375118781358*^9, 3.7703751992609606`*^9}, {
3.7703752534540606`*^9, 3.7703753542218237`*^9}, {3.770375391709968*^9,
3.7703755446637163`*^9}, {3.7703758383825164`*^9,
3.7703758477740536`*^9}, {3.770376809695072*^9, 3.7703769136940207`*^9}, {
3.7703770344789295`*^9, 3.7703770491177664`*^9}, {3.770377252319389*^9,
3.770377255149551*^9}, {3.7703775938549232`*^9, 3.7703776114219284`*^9}, {
3.770384853056126*^9, 3.7703849555819902`*^9}, {3.770385087120514*^9,
3.7703850967990675`*^9}, {3.770385127002795*^9, 3.77038512814186*^9}, {
3.7703853847525377`*^9, 3.7703853868626585`*^9}, {3.7703860028318896`*^9,
3.7703860047339983`*^9}, {3.7703861048797264`*^9,
3.7703861087499475`*^9}, {3.770386447715336*^9, 3.770386489567729*^9}, {
3.770387622720542*^9, 3.770387627167796*^9}, 3.7703876734984465`*^9, {
3.7703877057592916`*^9, 3.7703878693906507`*^9}, {3.770388268803496*^9,
3.7703882703505845`*^9}, {3.7703883377764406`*^9, 3.7703883851031475`*^9},
3.7710927219739885`*^9, {3.7710932432898064`*^9, 3.7710932603247805`*^9}, {
3.771093658789572*^9, 3.7710936828849497`*^9}, {3.771094984520523*^9,
3.7710949867266493`*^9}, 3.7710951984407587`*^9, {3.771095233333754*^9,
3.7710952362379203`*^9}, {3.771095498679931*^9, 3.771095499126957*^9}, {
3.771095647240428*^9, 3.7710956803753233`*^9}, {3.771146065232444*^9,
3.771146077519147*^9}, 3.7711461162893643`*^9, {3.7711525364881363`*^9,
3.7711525748713317`*^9}, {3.7713299983053713`*^9,
3.7713300072168818`*^9}, {3.7713307309992795`*^9, 3.771330744112029*^9},
3.7713310146745048`*^9, 3.7713311633300076`*^9, {3.7713320306906176`*^9,
3.7713320307526207`*^9}, 3.7713403879706264`*^9, 3.771669011468956*^9, {
3.771673325213688*^9, 3.7716733786837463`*^9}, 3.7716734249093904`*^9,
3.7717681334285975`*^9, {3.7717790738883553`*^9, 3.7717790816327987`*^9}, {
3.7717794290086675`*^9, 3.771779847921628*^9}, {3.7717799096501584`*^9,
3.7717799162405357`*^9}, {3.771780140515363*^9, 3.771780148097797*^9}, {
3.7764432870120707`*^9, 3.776443300449839*^9}, {3.776443518809328*^9,
3.776443522719552*^9}, {3.7764469432341948`*^9, 3.7764469659624944`*^9}, {
3.776447052767459*^9, 3.7764471291838303`*^9}, 3.776449248418043*^9,
3.776770812671607*^9, {3.776770994384001*^9, 3.7767710241787047`*^9}, {
3.7944215087872963`*^9, 3.794421510476818*^9}, 3.7944217190571404`*^9, {
3.801347284589698*^9, 3.801347341833778*^9}, 3.801347430437454*^9, {
3.8018281848268213`*^9, 3.801828198195368*^9}, {3.801923973801439*^9,
3.801923975323788*^9}, 3.8019272172795115`*^9, {3.8022009295201397`*^9,
3.8022009298542147`*^9}, {3.8022027467963343`*^9, 3.8022027706624837`*^9},
3.8022036009659004`*^9, {3.802208223613336*^9, 3.8022082247610216`*^9}, {
3.8022098126809387`*^9, 3.802209812742879*^9}, {3.8022112624368906`*^9,
3.8022112694565935`*^9}, {3.8022114489861083`*^9,
3.8022114576077914`*^9}, {3.802211493929578*^9, 3.8022115041336927`*^9},
3.8022124390439873`*^9, {3.8022143610514936`*^9, 3.802214361189337*^9}, {
3.8022161842620993`*^9, 3.8022161843321266`*^9}, {3.8022178600500526`*^9,
3.8022178659457636`*^9}, {3.8022203724825735`*^9,
3.8022203781687646`*^9}, {3.802220442398139*^9, 3.8022204465060887`*^9}, {
3.8022204964071164`*^9, 3.802220536874797*^9}, {3.802234208635751*^9,
3.8022342126997766`*^9}, {3.802265345313989*^9, 3.802265395383771*^9}, {
3.8022672598336897`*^9, 3.8022673046227765`*^9}, {3.8022674641373215`*^9,
3.8022674655166287`*^9}, {3.802267788565359*^9, 3.8022680947492743`*^9}, {
3.802272700569067*^9, 3.802272707143772*^9}, {3.8022796493101587`*^9,
3.8022796590824976`*^9}, {3.8022796945081215`*^9, 3.802279771466605*^9},
3.802293022683442*^9, 3.8023005217814665`*^9, 3.8023056791797657`*^9, {
3.8024346175557857`*^9, 3.802434631820653*^9}, 3.8025259247867217`*^9, {
3.8030030003940268`*^9, 3.8030030010379333`*^9}},
CellLabel->"In[4]:=",ExpressionUUID->"21bd2bcb-8396-4af7-b847-2698c811bcd2"],
Cell[BoxData[
FractionBox[
RowBox[{
SqrtBox[
RowBox[{"1", "+",
RowBox[{"2", " ", "Fpval"}]}]], " ",
SqrtBox["s0"]}],
RowBox[{
SqrtBox["2"], " ", "rme"}]]], "Output",
CellChangeTimes->{
3.8013479482119803`*^9, 3.8014816438911943`*^9, 3.8014816963154645`*^9,
3.8014818126116095`*^9, 3.8021652357479496`*^9, 3.802197946378433*^9,
3.8021991972567587`*^9, {3.8022009608248453`*^9, 3.8022009723951716`*^9},
3.802202774002488*^9, 3.802208228453575*^9, {3.80220981921461*^9,
3.802209830849859*^9}, 3.8022114242325106`*^9, {3.802211505056751*^9,
3.8022115182016125`*^9}, 3.802212463889008*^9, 3.802214374209409*^9,
3.8022145455136375`*^9, 3.8022162002121735`*^9, 3.8022178694183297`*^9,
3.8022179857579966`*^9, {3.802220537485057*^9, 3.8022205410095043`*^9},
3.8022294251024275`*^9, 3.802229539241576*^9, 3.802229904574562*^9,
3.802231224359686*^9, 3.802233164950611*^9, 3.802265483634431*^9,
3.802265556811267*^9, 3.802265680207595*^9, 3.802267218683927*^9,
3.8022674395171475`*^9, 3.8022679241619573`*^9, 3.8022679583041353`*^9, {
3.8022680367662096`*^9, 3.802268095118357*^9}, 3.8022681443474717`*^9,
3.8022687063147535`*^9, 3.802269067353652*^9, 3.8022693801558647`*^9,
3.802269675586647*^9, 3.8022705990913987`*^9, 3.8022711308874083`*^9,
3.8022717072761087`*^9, 3.8022718980032434`*^9, {3.8022719497978973`*^9,
3.802271986706233*^9}, 3.8022720685361567`*^9, 3.802272713664672*^9,
3.802273191559636*^9, 3.8022732259952354`*^9, 3.802277286044677*^9,
3.80227750793432*^9, 3.80227800751589*^9, 3.8022781903702335`*^9,
3.8022783042747765`*^9, 3.8022791574056425`*^9, 3.8022792996922846`*^9,
3.802279579934084*^9, 3.802279775094077*^9, 3.8022799748202443`*^9,
3.8022800529961147`*^9, 3.80228021951342*^9, 3.8022802961635113`*^9, {
3.8022803801800256`*^9, 3.8022803927558117`*^9}, 3.8022807214339056`*^9,
3.8022808490914755`*^9, {3.802281056268688*^9, 3.8022810648171387`*^9},
3.802281473934085*^9, 3.8022835226302357`*^9, 3.802286503808546*^9,
3.802287062578513*^9, 3.8022930639690657`*^9, 3.802299685226719*^9,
3.8023005342717896`*^9, 3.802304856237368*^9, 3.802305696459997*^9,
3.802307195128254*^9, 3.8023073162019634`*^9, 3.8023076724036546`*^9,
3.8023090506092854`*^9, 3.802310899009707*^9, 3.8023132454577*^9,
3.8023137452082157`*^9, 3.802352007371997*^9, 3.8023527901146727`*^9,
3.8023533503904867`*^9, 3.8023586205554523`*^9, 3.8023590344847965`*^9,
3.802362526784691*^9, 3.8023672944913254`*^9, 3.8024346367579803`*^9,
3.8024449636118364`*^9, 3.802465121691221*^9, 3.802525928819311*^9,
3.803007084585909*^9, 3.803144044773573*^9},
CellLabel->"Out[12]=",ExpressionUUID->"536cdfb6-96b5-4915-83e7-dae48028ec91"]
}, Open ]],
Cell[CellGroupData[{
Cell["Equations", "Subsubsection",
CellChangeTimes->{{3.7701329614446096`*^9, 3.770132967986984*^9},
3.7701332656670103`*^9, 3.7701333062583323`*^9, {3.794350716502695*^9,
3.7943507171048307`*^9}, {3.802268706803322*^9, 3.8022687092241507`*^9}, {
3.8023586216070333`*^9,
3.8023586224189324`*^9}},ExpressionUUID->"a19f06cb-1c6a-4e9f-b28d-\
8edb977a815f"],
Cell[BoxData[
RowBox[{
RowBox[{"generateOBEs", "[",
RowBox[{"{",
RowBox[{"fval_", ",", "fpval_"}], "}"}], "]"}], ":=",
RowBox[{"Module", "[",
RowBox[{
RowBox[{"{",
RowBox[{"vars", ",", "OBEs", ",", "feqn", ",", "ICs"}], "}"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"Fval", "=", "fval"}], ";", "\[IndentingNewLine]",
RowBox[{"Fpval", "=", "fpval"}], ";", "\[IndentingNewLine]",
RowBox[{"qs", "=",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1"}], ",", "0", ",", "1"}], "}"}]}], ";",
RowBox[{"(*",
RowBox[{
"polarizations", " ", "in", " ", "the", " ", "spherical", " ",
"basis"}], "*)"}], "\[IndentingNewLine]",
RowBox[{"fsubs", "=",
RowBox[{"{",
RowBox[{
RowBox[{"\"\<F\>\"", "\[Rule]", "Fval"}], ",",
RowBox[{"\"\<F'\>\"", "\[Rule]", "Fpval"}]}], "}"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"r", "=",
RowBox[{
FractionBox["1", "k"],
RowBox[{"{",
RowBox[{"x", ",", "y", ",", "z"}], "}"}]}]}], ";",
RowBox[{"(*",
RowBox[{
RowBox[{"position", ";", " ", "x"}], ",", "y", ",",
RowBox[{"z", " ", "are", " ", "in", " ", "units", " ", "of", " ",
RowBox[{"1", "/", "k"}]}]}], "*)"}], "\[IndentingNewLine]",
RowBox[{"ms", "=",
RowBox[{"Table", "[",
RowBox[{"i", ",",
RowBox[{"{",
RowBox[{"i", ",",
RowBox[{"-", "Fval"}], ",", "Fval"}], "}"}]}], "]"}]}], ";",
RowBox[{"(*",
RowBox[{
"z", " ", "projections", " ", "of", " ", "angular", " ", "momentum",
" ", "in", " ", "the", " ", "ground", " ", "state"}], "*)"}],
"\[IndentingNewLine]",
RowBox[{"ns", "=",
RowBox[{"Table", "[",
RowBox[{"i", ",",
RowBox[{"{",
RowBox[{"i", ",",
RowBox[{"-", "Fpval"}], ",", "Fpval"}], "}"}]}], "]"}]}], ";",
RowBox[{"(*",
RowBox[{
"z", " ", "projections", " ", "of", " ", "angular", " ", "momentum",
" ", "in", " ", "the", " ", "excited", " ", "state"}], "*)"}],
"\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{"Relevant", " ", "functions"}], "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
SubscriptBox["B", "q_"], "[", "r_", "]"}], ":=",
RowBox[{
RowBox[{"B", "[", "r", "]"}], "[",
RowBox[{"[",
RowBox[{"q", "+", "2"}], "]"}], "]"}]}], ";",
RowBox[{"(*",
RowBox[{
"magnetic", " ", "field", " ", "in", " ", "the", " ", "spherical", " ",
"basis"}], "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
SubscriptBox["\[CurlyEpsilon]", "q_"], "[", "r_", "]"}], ":=",
RowBox[{
RowBox[{"\[CurlyEpsilon]", "[", "r", "]"}], "[",
RowBox[{"[",
RowBox[{"q", "+", "2"}], "]"}], "]"}]}], ";",
RowBox[{"(*",
RowBox[{
"electric", " ", "field", " ", "in", " ", "the", " ", "spherical", " ",
"basis"}], "*)"}], "\[IndentingNewLine]",
RowBox[{
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{"m_", ",", "n_"}], "}"}],RowBox[{"{",
RowBox[{"i_", ",", "j_"}], "}"}]},
"Subsuperscript"], ":=",
RowBox[{"\[Sigma]", "[",
RowBox[{"i", ",", "j", ",", "m", ",", "n", ",", "t"}], "]"}]}], ";",
RowBox[{"(*",
RowBox[{
"pretty", " ", "print", " ", "for", " ", "expectation", " ", "values",
" ", "of", " ", "spin", " ", "operators"}], "*)"}],
"\[IndentingNewLine]",
RowBox[{
TemplateBox[{"\[CapitalGamma]",RowBox[{"{",
RowBox[{"m_", ",", "n_"}], "}"}],"q_"},
"Subsuperscript"], ":=",
RowBox[{"\[CapitalGamma]",
RowBox[{"(",
RowBox[{
RowBox[{"2", "Fpval"}], "+", "1"}], ")"}],
SuperscriptBox[
RowBox[{"(",
RowBox[{"-", "1"}], ")"}],
RowBox[{"m", "-", "n"}]],
RowBox[{"ThreeJSymbol", "[",
RowBox[{
RowBox[{"{",
RowBox[{"Fval", ",",
RowBox[{"-", "m"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",",
RowBox[{"-", "q"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"Fpval", ",",
RowBox[{"m", "+", "q"}]}], "}"}]}], "]"}],
RowBox[{"ThreeJSymbol", "[",
RowBox[{
RowBox[{"{",
RowBox[{"Fval", ",",
RowBox[{"-", "n"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",",
RowBox[{"-", "q"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"Fpval", ",",
RowBox[{"n", "+", "q"}]}], "}"}]}], "]"}]}]}], ";",
RowBox[{"(*",
RowBox[{"relaxation", " ", "rate"}], "*)"}], "\[IndentingNewLine]",
RowBox[{
TemplateBox[{"\[CapitalOmega]","n_","q_"},
"Subsuperscript"], ":=",
RowBox[{
FractionBox["\[ImaginaryI]",
RowBox[{"2", "\[HBar]"}]],
RowBox[{
SubscriptBox["\[CurlyEpsilon]",
RowBox[{"-", "q"}]], "[", "r", "]"}],
SuperscriptBox[
RowBox[{"(",
RowBox[{"-", "1"}], ")"}],
RowBox[{"Fval", "-", "n"}]],
RowBox[{"ThreeJSymbol", "[",
RowBox[{
RowBox[{"{",
RowBox[{"Fval", ",",
RowBox[{"-", "n"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",",
RowBox[{"-", "q"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"Fpval", ",",
RowBox[{"n", "+", "q"}]}], "}"}]}], "]"}], "rme"}]}], ";",
RowBox[{"(*",
RowBox[{"Rabi", " ", "frequency"}], "*)"}], "\[IndentingNewLine]",
RowBox[{
TemplateBox[{"\[Beta]",RowBox[{"{",
RowBox[{"m_", ",", "n_"}], "}"}],RowBox[{"{",
RowBox[{"i_", ",", "j_"}], "}"}]},
"Subsuperscript"], ":=",
RowBox[{
FractionBox["1", "2"],
RowBox[{"Sum", "[",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"-",
RowBox[{
SubscriptBox["B", "q"], "[", "r", "]"}]}],
RowBox[{"(",
RowBox[{
RowBox[{
RowBox[{"Conjugate", "[",
TemplateBox[{"\[Mu]",RowBox[{"n", "-", "q"}],RowBox[{"{",
RowBox[{"q", ",", "j"}], "}"}]},
"Subsuperscript"], "]"}],
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{"m", ",",
RowBox[{"n", "-", "q"}]}], "}"}],RowBox[{"{",
RowBox[{"i", ",", "j"}], "}"}]},
"Subsuperscript"]}], "-",
RowBox[{
RowBox[{"Conjugate", "[",
TemplateBox[{"\[Mu]","m",RowBox[{"{",
RowBox[{"q", ",", "i"}], "}"}]},
"Subsuperscript"], "]"}],
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{
RowBox[{"m", "+", "q"}], ",", "n"}], "}"}],RowBox[{"{",
RowBox[{"i", ",", "j"}], "}"}]},
"Subsuperscript"]}]}], ")"}]}], "+",
RowBox[{
RowBox[{"Conjugate", "[",
RowBox[{
SubscriptBox["B", "q"], "[", "r", "]"}], "]"}],
RowBox[{"(",
RowBox[{
RowBox[{
TemplateBox[{"\[Mu]","n",RowBox[{"{",
RowBox[{"q", ",", "j"}], "}"}]},
"Subsuperscript"],
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{"m", ",",
RowBox[{"n", "+", "q"}]}], "}"}],RowBox[{"{",
RowBox[{"i", ",", "j"}], "}"}]},
"Subsuperscript"]}], "-",
RowBox[{
TemplateBox[{"\[Mu]",RowBox[{"m", "-", "q"}],RowBox[{"{",
RowBox[{"q", ",", "i"}], "}"}]},
"Subsuperscript"],
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{
RowBox[{"m", "-", "q"}], ",", "n"}], "}"}],RowBox[{"{",
RowBox[{"i", ",", "j"}], "}"}]},
"Subsuperscript"]}]}], ")"}]}]}], ",",
RowBox[{"{",
RowBox[{"q", ",", "qs"}], "}"}]}], "]"}]}]}], ";",
RowBox[{"(*",
RowBox[{"Zeeman", " ", "interaction", " ", "term"}], "*)"}],
"\[IndentingNewLine]",
RowBox[{
TemplateBox[{"\[Mu]","n_",RowBox[{"{",
RowBox[{"q_", ",", "j_"}], "}"}]},
"Subsuperscript"], ":=",
RowBox[{
RowBox[{"-",
FractionBox["\[ImaginaryI]", "\[HBar]"]}],
RowBox[{"g", "[", "j", "]"}],
RowBox[{"(",
RowBox[{
RowBox[{"(",
RowBox[{"\[Mu]B",
SuperscriptBox[
RowBox[{"(",
RowBox[{"-", "1"}], ")"}],
RowBox[{"j", "-", "n"}]],
SuperscriptBox[
RowBox[{"(",
RowBox[{"-", "1"}], ")"}], "q"],
SqrtBox[
RowBox[{"j",
RowBox[{"(",
RowBox[{"j", "+", "1"}], ")"}],
RowBox[{"(",
RowBox[{
RowBox[{"2", "j"}], "+", "1"}], ")"}]}]],
RowBox[{"ThreeJSymbol", "[",
RowBox[{
RowBox[{"{",
RowBox[{"j", ",",
RowBox[{"-", "n"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",",
RowBox[{"-", "q"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"j", ",",
RowBox[{"n", "+", "q"}]}], "}"}]}], "]"}]}], ")"}], "/.",
"fsubs"}], ")"}]}]}], ";",
RowBox[{"(*",
RowBox[{"magnetic", " ", "dipole", " ", "moment"}], "*)"}],
"\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{"Bloch", " ", "equations"}], "*)"}], "\[IndentingNewLine]",
RowBox[{
TemplateBox[{"D\[Sigma]",RowBox[{"{",
RowBox[{"m_", ",", "n_"}], "}"}],RowBox[{"{",
RowBox[{"\"F\"", ",", "\"F\""}], "}"}]},
"Subsuperscript"], ":=",
RowBox[{
RowBox[{"Sum", "[",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"-",
RowBox[{"Conjugate", "[",
TemplateBox[{"\[CapitalOmega]","n","q"},
"Subsuperscript"], "]"}]}],
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{"m", ",",
RowBox[{"n", "+", "q"}]}], "}"}],RowBox[{"{",
RowBox[{"\"F\"", ",", "\"F'\""}], "}"}]},
"Subsuperscript"]}], "-",
RowBox[{
TemplateBox[{"\[CapitalOmega]","m","q"},
"Subsuperscript"], " ",
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{
RowBox[{"m", "+", "q"}], ",", "n"}], "}"}],RowBox[{"{",
RowBox[{"\"F'\"", ",", "\"F\""}], "}"}]},
"Subsuperscript"]}], "+",
RowBox[{
TemplateBox[{"\[CapitalGamma]",RowBox[{"{",
RowBox[{"m", ",", "n"}], "}"}],"q"},
"Subsuperscript"],
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{
RowBox[{"m", "+", "q"}], ",",
RowBox[{"n", "+", "q"}]}], "}"}],RowBox[{"{",
RowBox[{"\"F'\"", ",", "\"F'\""}], "}"}]},
"Subsuperscript"]}]}], ",",
RowBox[{"{",
RowBox[{"q", ",", "qs"}], "}"}]}], "]"}], "+",
TemplateBox[{"\[Beta]",RowBox[{"{",
RowBox[{"m", ",", "n"}], "}"}],RowBox[{"{",
RowBox[{"\"F\"", ",", "\"F\""}], "}"}]},
"Subsuperscript"]}]}], ";", "\[IndentingNewLine]",
RowBox[{
TemplateBox[{"D\[Sigma]",RowBox[{"{",
RowBox[{"m_", ",", "n_"}], "}"}],RowBox[{"{",
RowBox[{"\"F'\"", ",", "\"F'\""}], "}"}]},
"Subsuperscript"], ":=",
RowBox[{
RowBox[{"Sum", "[",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"Conjugate", "[",
TemplateBox[{"\[CapitalOmega]",RowBox[{"m", "-", "q"}],"q"},
"Subsuperscript"], "]"}],
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{
RowBox[{"m", "-", "q"}], ",", "n"}], "}"}],RowBox[{"{",
RowBox[{"\"F\"", ",", "\"F'\""}], "}"}]},
"Subsuperscript"]}], "+",
RowBox[{
TemplateBox[{"\[CapitalOmega]",RowBox[{"n", "-", "q"}],"q"},
"Subsuperscript"], " ",
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{"m", ",",
RowBox[{"n", "-", "q"}]}], "}"}],RowBox[{"{",
RowBox[{"\"F'\"", ",", "\"F\""}], "}"}]},
"Subsuperscript"]}]}], ",",
RowBox[{"{",
RowBox[{"q", ",", "qs"}], "}"}]}], "]"}], "-",
RowBox[{"\[CapitalGamma]",
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{"m", ",", "n"}], "}"}],RowBox[{"{",
RowBox[{"\"F'\"", ",", "\"F'\""}], "}"}]},
"Subsuperscript"]}], "+",
TemplateBox[{"\[Beta]",RowBox[{"{",
RowBox[{"m", ",", "n"}], "}"}],RowBox[{"{",
RowBox[{"\"F'\"", ",", "\"F'\""}], "}"}]},
"Subsuperscript"]}]}], ";", "\[IndentingNewLine]",
RowBox[{
TemplateBox[{"D\[Sigma]",RowBox[{"{",
RowBox[{"m_", ",", "n_"}], "}"}],RowBox[{"{",
RowBox[{"\"F\"", ",", "\"F'\""}], "}"}]},
"Subsuperscript"], ":=",
RowBox[{
RowBox[{"Sum", "[",
RowBox[{
RowBox[{
RowBox[{
TemplateBox[{"\[CapitalOmega]",RowBox[{"n", "-", "q"}],"q"},
"Subsuperscript"],
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{"m", ",",
RowBox[{"n", "-", "q"}]}], "}"}],RowBox[{"{",
RowBox[{"\"F\"", ",", "\"F\""}], "}"}]},
"Subsuperscript"]}], "-",
RowBox[{
TemplateBox[{"\[CapitalOmega]","m","q"},
"Subsuperscript"], " ",
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{
RowBox[{"m", "+", "q"}], ",", "n"}], "}"}],RowBox[{"{",
RowBox[{"\"F'\"", ",", "\"F'\""}], "}"}]},
"Subsuperscript"]}]}], ",",
RowBox[{"{",
RowBox[{"q", ",", "qs"}], "}"}]}], "]"}], "+",
RowBox[{
RowBox[{"(",
RowBox[{
RowBox[{"\[ImaginaryI]", " ", "\[CapitalDelta]"}], " ", "-", " ",
RowBox[{"\[CapitalGamma]", "/", "2"}]}], ")"}],
TemplateBox[{"\[Sigma]",RowBox[{"{",
RowBox[{"m", ",", "n"}], "}"}],RowBox[{"{",
RowBox[{"\"F\"", ",", "\"F'\""}], "}"}]},
"Subsuperscript"]}], "+",
TemplateBox[{"\[Beta]",RowBox[{"{",
RowBox[{"m", ",", "n"}], "}"}],RowBox[{"{",
RowBox[{"\"F\"", ",", "\"F'\""}], "}"}]},
"Subsuperscript"]}]}], ";", "\[IndentingNewLine]",
RowBox[{
RowBox[{"SimplifyOBEs1", "[", "q_", "]"}], ":=",
RowBox[{"Simplify", "[",
RowBox[{
RowBox[{"ComplexExpand", "[", "q", "]"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"\[HBar]", ">", "0"}], ",",
RowBox[{
SubscriptBox["\[Mu]", "B"], ">", "0"}], ",",
RowBox[{
RowBox[{"g", "[", "F_", "]"}], "\[GreaterEqual]", "0"}], ",",
RowBox[{"rme", ">", "0"}], ",",
RowBox[{
RowBox[{"\[Sigma]", "[",
RowBox[{
"a_", ",", "b_", ",", "c_", ",", "d_", ",", "e_", ",", "f_"}],
"]"}], "\[Element]", "Reals"}], ",",
RowBox[{"\[CapitalDelta]", "\[Element]", "Reals"}], ",",
RowBox[{"\[CapitalGamma]", ">", "0"}], ",",
RowBox[{"x", "\[Element]", "Reals"}], ",",
RowBox[{"y", "\[Element]", "Reals"}], ",",
RowBox[{"z", "\[Element]", "Reals"}], ",",
RowBox[{"A", ">", "0"}], ",",
RowBox[{"s0", ">", "0"}]}], "}"}]}], "]"}]}], ";",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"SimplifyOBEs2", "[", "q_", "]"}], ":=",
RowBox[{"ApplySides", "[",
RowBox[{"SimplifyOBEs1", ",", "q"}], "]"}]}], ";",
RowBox[{"(*",
RowBox[{
RowBox[{"Simplify", " ", "the", " ", "Bloch", " ", "equations"}], ",",
" ",
RowBox[{
"making", " ", "plausible", " ", "assumptions", " ", "about", " ",
"the", " ", "variables"}]}], "*)"}], "\[IndentingNewLine]",