-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathElementaryProcessesInProteinFolding-author.nb
More file actions
2579 lines (2444 loc) · 116 KB
/
ElementaryProcessesInProteinFolding-author.nb
File metadata and controls
2579 lines (2444 loc) · 116 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
(* Content-type: application/mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 6.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 145, 7]
NotebookDataLength[ 115841, 2570]
NotebookOptionsPosition[ 111728, 2445]
NotebookOutlinePosition[ 113372, 2497]
CellTagsIndexPosition[ 113036, 2485]
WindowFrame->Normal*)
(* Beginning of Notebook Content *)
Notebook[{
Cell[CellGroupData[{
Cell["Elementary Processes in Protein Folding", "DemoTitle",
CellChangeTimes->{
3.35696210375764*^9, {3.4101245983338957`*^9, 3.4101246050229883`*^9}, {
3.410131811968322*^9, 3.410131824697701*^9}}],
Cell[CellGroupData[{
Cell["", "InitializationSection"],
Cell[BoxData[
RowBox[{"initvars", "=",
RowBox[{"(",
RowBox[{
RowBox[{"c", "=",
RowBox[{"Darker", "[", "Gray", "]"}]}], ";",
RowBox[{"o", "=", "Red"}], ";",
RowBox[{"n", "=", "Blue"}], ";",
RowBox[{"h", "=", "Yellow"}], ";",
RowBox[{"r1", "=", "Purple"}], ";",
RowBox[{"r2", "=",
RowBox[{"Lighter", "[", "Purple", "]"}]}], ";",
RowBox[{"g", "=", "Gray"}], ";", "\[IndentingNewLine]",
RowBox[{"\[Alpha]", "=",
RowBox[{"30", "\[Degree]"}]}], ";",
RowBox[{"\[Beta]", "=",
RowBox[{"109.5", "\[Degree]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"rp", "=", "1.33"}], ";",
RowBox[{"rcc", "=", "1.54"}], ";",
RowBox[{"rcn", "=", "1.46"}], ";",
RowBox[{"rch", "=", "1.09"}], ";",
RowBox[{"rco", "=", "1.24"}], ";",
RowBox[{"rnh", "=", "1.01"}], ";", "\n",
RowBox[{"x0", "=", "0"}], ";",
RowBox[{"y0", "=", "0"}], ";",
RowBox[{"z0", "=", "0"}], ";", "\[IndentingNewLine]",
RowBox[{"x1", "=", "x0"}], ";",
RowBox[{"y1", "=",
RowBox[{"y0", "+", "rco"}]}], ";",
RowBox[{"z1", "=", "z0"}], ";", "\[IndentingNewLine]",
RowBox[{"x2", "=",
RowBox[{"x0", "+",
RowBox[{"rp", " ",
RowBox[{"Cos", "[", "\[Alpha]", "]"}]}]}]}], ";",
RowBox[{"y2", "=",
RowBox[{"y0", "-",
RowBox[{"rp", " ",
RowBox[{"Sin", "[", "\[Alpha]", "]"}]}]}]}], ";",
RowBox[{"z2", "=", "z0"}], ";", "\[IndentingNewLine]",
RowBox[{"x3", "=", "x2"}], ";",
RowBox[{"y3", "=",
RowBox[{"y2", "-", "rch"}]}], ";",
RowBox[{"z3", "=", "z0"}], ";", "\[IndentingNewLine]",
RowBox[{"x4", "=",
RowBox[{"x0", "-",
RowBox[{"rcc", " ",
RowBox[{"Cos", "[", "\[Alpha]", "]"}]}]}]}], ";",
RowBox[{"y4", "=",
RowBox[{"y0", "-",
RowBox[{"rcc", " ",
RowBox[{"Sin", "[", "\[Alpha]", "]"}]}]}]}], ";",
RowBox[{"z4", "=", "z0"}], ";",
RowBox[{"x5", "=",
RowBox[{"x2", "+",
RowBox[{"rcn", " ",
RowBox[{"Cos", "[", "\[Alpha]", "]"}]}]}]}], ";",
RowBox[{"y5", "=",
RowBox[{"y2", "+",
RowBox[{"rcn", " ",
RowBox[{"Sin", "[", "\[Alpha]", "]"}]}]}]}], ";",
RowBox[{"z5", "=", "z0"}], ";"}], ")"}]}]], "Input",
CellChangeTimes->{
3.35696210375764*^9, {3.409781959262014*^9, 3.409781962529833*^9}, {
3.409782010755262*^9, 3.40978211987636*^9}, {3.409782197018022*^9,
3.4097822445533657`*^9}, {3.409785159991399*^9, 3.4097851708050528`*^9}, {
3.4098428921552477`*^9, 3.4098429352746696`*^9}, {3.4098432823651867`*^9,
3.409843294952207*^9}, {3.409844812743864*^9, 3.409844814836122*^9}, {
3.410051786611268*^9, 3.4100517894923983`*^9}, {3.410052029403986*^9,
3.410052038292284*^9}, {3.4100532932592173`*^9, 3.4100533043841753`*^9}, {
3.410095504257881*^9, 3.410095635581766*^9}, 3.410095671426309*^9, {
3.410095724284376*^9, 3.410095736512671*^9}, {3.410096043608346*^9,
3.4100960922335052`*^9}, {3.4101086337570753`*^9,
3.4101086480166197`*^9}, {3.410133344274706*^9, 3.4101333566559277`*^9}, {
3.410175534795568*^9, 3.410175582936563*^9}, 3.410292035727669*^9, {
3.410311459185182*^9, 3.410311459918469*^9}, 3.410311490023322*^9,
3.410371115239855*^9, {3.410379441108562*^9, 3.4103794433627863`*^9},
3.410396292328125*^9, 3.4103965065*^9, {3.410396771171875*^9,
3.41039678203125*^9}},
CellID->1470005039],
Cell[BoxData[
RowBox[{
RowBox[{"tetra1", "[", "\[Psi]_", "]"}], ":=",
RowBox[{"Module", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"\[Psi]1", "=", "\[Psi]"}], ",", "xp1", ",", "yp1", ",", "zp1",
",", "xh1", ",", "yh1", ",", "zh1", ",", "xr1", ",", "yr1", ",",
"zr1"}], "}"}], ",",
RowBox[{
RowBox[{"xp1", "=",
RowBox[{"x4", "-", "1.17"}]}], ";",
RowBox[{"yp1", "=",
RowBox[{"y4", "+", "1.00"}]}], ";",
RowBox[{"zp1", "=", "z4"}], ";",
RowBox[{"xh1", "=",
RowBox[{
FractionBox["rch", "rcc"],
RowBox[{"(",
RowBox[{"x4", "-", ".86"}], ")"}]}]}], ";",
RowBox[{"yh1", "=",
RowBox[{
FractionBox["rch", "rcc"],
RowBox[{"(",
RowBox[{"y4", "-", ".22"}], ")"}]}]}], ";",
RowBox[{"zh1", "=",
RowBox[{
FractionBox["rch", "rcc"],
RowBox[{"(",
RowBox[{"z4", "+", "1.26"}], ")"}]}]}], ";",
RowBox[{"xr1", "=",
RowBox[{"x4", "-", ".86"}]}], ";",
RowBox[{"yr1", "=",
RowBox[{"y4", "-", ".22"}]}], ";",
RowBox[{"zr1", "=",
RowBox[{"z4", "-", "1.26"}]}], ";",
RowBox[{"Graphics3D", "[",
RowBox[{
RowBox[{"Rotate", "[",
RowBox[{
RowBox[{"{",
RowBox[{"c", ",",
RowBox[{"Sphere", "[",
RowBox[{
RowBox[{"{",
RowBox[{"x4", ",", "y4", ",", "z4"}], "}"}], ",", ".4"}], "]"}],
",", "r1", ",",
RowBox[{"Sphere", "[",
RowBox[{
RowBox[{"{",
RowBox[{"xr1", ",", "yr1", ",", "zr1"}], "}"}], ",", ".5"}],
"]"}], ",", "h", ",",
RowBox[{"Sphere", "[",
RowBox[{
RowBox[{"{",
RowBox[{"xh1", ",", "yh1", ",", "zh1"}], "}"}], ",", ".3"}],
"]"}], ",", "g", ",",
RowBox[{"Thickness", "[", ".02", "]"}], ",",
RowBox[{"Line", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"x4", ",", "y4", ",", "z4"}], "}"}], ",",
RowBox[{"{",
RowBox[{"xr1", ",", "yr1", ",", "zr1"}], "}"}]}], "}"}], "]"}],
",",
RowBox[{"Line", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"x4", ",", "y4", ",", "z4"}], "}"}], ",",
RowBox[{"{",
RowBox[{"xh1", ",", "yh1", ",", "zh1"}], "}"}]}], "}"}], "]"}],
",",
RowBox[{"Line", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"x4", ",", "y4", ",", "z4"}], "}"}], ",",
RowBox[{"{",
RowBox[{"xp1", ",", "yp1", ",", "zp1"}], "}"}]}], "}"}], "]"}],
",", "\[IndentingNewLine]",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{
"\"\<\[InvisiblePrefixScriptBase]C\>\"", ",", "24", ",", "Bold",
",", "Black"}], "]"}], ",",
RowBox[{"{",
RowBox[{"x4", ",", "y4", ",", "z4"}], "}"}]}], "]"}], ",",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{"\"\<H\>\"", ",", "24", ",", "Bold", ",", "Black"}],
"]"}], ",",
RowBox[{"{",
RowBox[{"xh1", ",", "yh1", ",", "zh1"}], "}"}]}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{
"\"\<\[InvisiblePrefixScriptBase]\!\(\*SubscriptBox[\(R\), \
\(1\)]\)\>\"", ",", "32", ",", "Bold", ",", "Black"}], "]"}], ",",
RowBox[{"{",
RowBox[{"xr1", ",", "yr1", ",", "zr1"}], "}"}]}], "]"}], ",",
"Green", ",",
RowBox[{"Cylinder", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"2", "xp1"}], "-", "x4"}], ",",
RowBox[{
RowBox[{"2", "yp1"}], "-", "y4"}], ",",
RowBox[{
RowBox[{"2", "zp1"}], "-", "z4"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{".5",
RowBox[{"(",
RowBox[{"xp1", "+", "x4"}], ")"}]}], ",",
RowBox[{".5",
RowBox[{"(",
RowBox[{"yp1", "+", "y4"}], ")"}]}], ",",
RowBox[{".5",
RowBox[{"(",
RowBox[{"zp1", "+", "z4"}], ")"}]}]}], "}"}]}], "}"}], ",",
".4"}], "]"}]}], "}"}], ",", "\[Psi]1", ",",
RowBox[{"{",
RowBox[{"x4", ",", "y4", ",", "z4"}], "}"}], ",",
RowBox[{"{",
RowBox[{"x0", ",", "y0", ",", "z0"}], "}"}]}], "]"}], ",",
RowBox[{"Boxed", "\[Rule]", "False"}]}], "\[IndentingNewLine]",
"]"}]}]}], "]"}]}]], "Input",
CellChangeTimes->{
3.35696210375764*^9, {3.410291190213777*^9, 3.4102911971684847`*^9}, {
3.410297512624722*^9, 3.410297696380164*^9}, {3.4102978079604883`*^9,
3.410297830271393*^9}, {3.4102983195179653`*^9, 3.41029833992395*^9}, {
3.410299696858762*^9, 3.4102998596270847`*^9}, {3.410302306916868*^9,
3.41030236068891*^9}, {3.410302417759454*^9, 3.410302432133657*^9}, {
3.410302481597658*^9, 3.41030248815362*^9}, {3.41030264944807*^9,
3.410302651559971*^9}, 3.4103030304826097`*^9, {3.4103031151221323`*^9,
3.4103031246004868`*^9}, {3.4103033324227057`*^9,
3.4103033579475393`*^9}, {3.410303449151773*^9, 3.410303606577902*^9}, {
3.410312324200438*^9, 3.410312335322929*^9}, 3.410312396731173*^9, {
3.4103128080215073`*^9, 3.410312826877056*^9}, {3.410312947223029*^9,
3.410312970149329*^9}, {3.410313632369173*^9, 3.410313648438024*^9}, {
3.410315085253729*^9, 3.410315126071308*^9}, {3.41031554769129*^9,
3.4103156015197773`*^9}, {3.4103157268663054`*^9, 3.410315734873538*^9}, {
3.41031598454104*^9, 3.410315998875708*^9}, {3.410316167186757*^9,
3.410316226674698*^9}, {3.410316577018609*^9, 3.410316756432403*^9}, {
3.4103168278178787`*^9, 3.4103168562489*^9}, {3.4103169410192537`*^9,
3.4103169796648283`*^9}, {3.4103509631482773`*^9, 3.4103510500181007`*^9},
3.410351683065275*^9, {3.410351737956131*^9, 3.410351753113319*^9}, {
3.410351799962317*^9, 3.410351803377514*^9}, {3.410354601888139*^9,
3.41035465787956*^9}, {3.410354697102312*^9, 3.4103547570289583`*^9}, {
3.4103550498364677`*^9, 3.4103550748592176`*^9}, {3.4103555867080383`*^9,
3.4103556124328012`*^9}, {3.410355679722775*^9, 3.410355687480256*^9}, {
3.41035598720537*^9, 3.410356030076289*^9}, {3.410356098184375*^9,
3.4103561150210247`*^9}, {3.4103564071327133`*^9, 3.410356418400997*^9}, {
3.410356657210598*^9, 3.410356684975587*^9}, {3.410356933932831*^9,
3.410356978232719*^9}, {3.410357081150467*^9, 3.410357095260412*^9}, {
3.410357680156913*^9, 3.410357691450786*^9}, {3.410357873330954*^9,
3.4103578909373493`*^9}, {3.410357950681425*^9, 3.4103579834966183`*^9},
3.410363925110011*^9, 3.410363988776723*^9, {3.4103658020617*^9,
3.410365831267705*^9}, {3.4103658943233557`*^9, 3.410365900504156*^9}, {
3.410365956168942*^9, 3.41036596141572*^9}, 3.410366370033551*^9,
3.410366546446183*^9, {3.4103666001546183`*^9, 3.410366605889456*^9}, {
3.410367249830367*^9, 3.410367256709386*^9}, {3.410368022517352*^9,
3.410368030334258*^9}, {3.410368190741351*^9, 3.410368232987398*^9}, {
3.410368293754629*^9, 3.410368347032835*^9}, {3.4103683936583967`*^9,
3.41036840060884*^9}, {3.410368712070994*^9, 3.4103687168812447`*^9}, {
3.410368757881863*^9, 3.410368763017362*^9}, {3.410378217570032*^9,
3.410378251873281*^9}, {3.4103785970485477`*^9, 3.410378612685453*^9}, {
3.410396214515625*^9, 3.41039624621875*^9}, {3.58593435519468*^9,
3.585934391463887*^9}},
CellID->1510957599],
Cell[BoxData[
RowBox[{
RowBox[{"tetra2", "[", "\[Phi]_", "]"}], ":=",
RowBox[{"Module", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"\[Phi]1", "=", "\[Phi]"}], ",", "xp2", ",", "yp2", ",", "zp2",
",", "xh2", ",", "yh2", ",", "zh2", ",", "xr2", ",", "yr2", ",",
"zr2"}], "}"}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"xp2", "=",
RowBox[{"x5", "+", "1.17"}]}], ";",
RowBox[{"yp2", "=",
RowBox[{"y5", "-", "1.00"}]}], ";",
RowBox[{"zp2", "=", "z5"}], ";",
RowBox[{"xh2", "=",
RowBox[{
FractionBox["rch", "rcc"],
RowBox[{"(",
RowBox[{"x5", "+", ".86"}], ")"}]}]}], ";",
RowBox[{"yh2", "=",
RowBox[{
FractionBox["rch", "rcc"],
RowBox[{"(",
RowBox[{"y5", "+", ".22"}], ")"}]}]}], ";",
RowBox[{"zh2", "=",
RowBox[{
FractionBox["rch", "rcc"],
RowBox[{"(",
RowBox[{"z5", "-", "1.26"}], ")"}]}]}], ";",
RowBox[{"xr2", "=",
RowBox[{"x5", "+", ".86"}]}], ";",
RowBox[{"yr2", "=",
RowBox[{"y5", "+", ".22"}]}], ";",
RowBox[{"zr2", "=",
RowBox[{"z5", "+", "1.26"}]}], ";",
RowBox[{"Graphics3D", "[",
RowBox[{
RowBox[{"Rotate", "[",
RowBox[{
RowBox[{"{",
RowBox[{"c", ",",
RowBox[{"Sphere", "[",
RowBox[{
RowBox[{"{",
RowBox[{"x5", ",", "y5", ",", "z5"}], "}"}], ",", ".4"}], "]"}],
",", "r2", ",",
RowBox[{"Sphere", "[",
RowBox[{
RowBox[{"{",
RowBox[{"xr2", ",", "yr2", ",", "zr2"}], "}"}], ",", ".5"}],
"]"}], ",", "h", ",",
RowBox[{"Sphere", "[",
RowBox[{
RowBox[{"{",
RowBox[{"xh2", ",", "yh2", ",", "zh2"}], "}"}], ",", ".3"}],
"]"}], ",", "g", ",",
RowBox[{"Thickness", "[", ".02", "]"}], ",",
RowBox[{"Line", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"x5", ",", "y5", ",", "z5"}], "}"}], ",",
RowBox[{"{",
RowBox[{"xr2", ",", "yr2", ",", "zr2"}], "}"}]}], "}"}], "]"}],
",",
RowBox[{"Line", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"x5", ",", "y5", ",", "z5"}], "}"}], ",",
RowBox[{"{",
RowBox[{"xh2", ",", "yh2", ",", "zh2"}], "}"}]}], "}"}], "]"}],
",",
RowBox[{"Line", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"x5", ",", "y5", ",", "z5"}], "}"}], ",",
RowBox[{"{",
RowBox[{"xp2", ",", "yp2", ",", "zp2"}], "}"}]}], "}"}], "]"}],
",", "\[IndentingNewLine]",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{
"\"\<\[InvisiblePrefixScriptBase]C\>\"", ",", "24", ",", "Bold",
",", "Black"}], "]"}], ",",
RowBox[{"{",
RowBox[{"x5", ",", "y5", ",", "z5"}], "}"}]}], "]"}], ",",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{"\"\<H\>\"", ",", "24", ",", "Bold", ",", "Black"}],
"]"}], ",",
RowBox[{"{",
RowBox[{"xh2", ",", "yh2", ",", "zh2"}], "}"}]}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{
"\"\<\[InvisiblePrefixScriptBase]\!\(\*SubscriptBox[\(R\), \
\(2\)]\)\>\"", ",", "32", ",", "Bold", ",", "Black"}], "]"}], ",",
RowBox[{"{",
RowBox[{"xr2", ",", "yr2", ",", "zr2"}], "}"}]}], "]"}], ",",
"Green", ",",
RowBox[{"Cylinder", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"2", "xp2"}], "-", "x5"}], ",",
RowBox[{
RowBox[{"2", "yp2"}], "-", "y5"}], ",",
RowBox[{
RowBox[{"2", "zp2"}], "-", "z5"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{".5",
RowBox[{"(",
RowBox[{"xp2", "+", "x5"}], ")"}]}], ",",
RowBox[{".5",
RowBox[{"(",
RowBox[{"yp2", "+", "y5"}], ")"}]}], ",",
RowBox[{".5",
RowBox[{"(",
RowBox[{"zp2", "+", "z5"}], ")"}]}]}], "}"}]}], "}"}], ",",
".4"}], "]"}]}], "}"}], ",", "\[Phi]1", ",",
RowBox[{"{",
RowBox[{"x2", ",", "y2", ",", "z2"}], "}"}], ",",
RowBox[{"{",
RowBox[{"x5", ",", "y5", ",", "z5"}], "}"}]}], "]"}], ",",
RowBox[{"Boxed", "\[Rule]", "False"}]}], "\[IndentingNewLine]",
"]"}]}]}], "]"}]}]], "Input",
CellChangeTimes->{
3.35696210375764*^9, {3.410291190213777*^9, 3.4102911971684847`*^9}, {
3.4102912495958652`*^9, 3.410291262755254*^9}, 3.410291294343856*^9, {
3.4102913434873743`*^9, 3.41029139219932*^9}, {3.410291436738902*^9,
3.4102914525681963`*^9}, {3.410291588978078*^9, 3.410291605399712*^9}, {
3.410291646816235*^9, 3.410291651629776*^9}, {3.410297078328627*^9,
3.410297088183873*^9}, {3.410297165156884*^9, 3.410297261294134*^9}, {
3.4102973225178003`*^9, 3.410297398283945*^9}, {3.4102977695485*^9,
3.410297788883068*^9}, {3.4102981019227037`*^9, 3.4102981221444683`*^9}, {
3.410299929290957*^9, 3.410300120379011*^9}, 3.410302907064623*^9, {
3.4103039856782923`*^9, 3.410304074527688*^9}, {3.410304126295845*^9,
3.410304181065134*^9}, {3.410304681021913*^9, 3.410304685555771*^9}, {
3.410313738674452*^9, 3.4103137582266417`*^9}, {3.410314187388421*^9,
3.410314222306554*^9}, {3.410314463403297*^9, 3.410314472443531*^9}, {
3.410314669901165*^9, 3.41031467766542*^9}, {3.410315152241735*^9,
3.4103151830639668`*^9}, {3.410315261684126*^9, 3.4103153268750362`*^9}, {
3.410315384996499*^9, 3.410315400226499*^9}, {3.41031579075457*^9,
3.410315800489296*^9}, {3.410315850396456*^9, 3.4103158731939898`*^9}, {
3.410315931848283*^9, 3.410315977720409*^9}, {3.410316352762397*^9,
3.41031636405079*^9}, {3.410350641366197*^9, 3.4103506777523327`*^9},
3.4103507208008327`*^9, {3.4103508036007013`*^9, 3.410350919207697*^9}, {
3.410351070620969*^9, 3.410351192770105*^9}, {3.410351902401173*^9,
3.410351934622899*^9}, {3.4103519696010733`*^9, 3.4103519893614264`*^9}, {
3.410358673429072*^9, 3.410358684905864*^9}, {3.410358717018847*^9,
3.410358742454462*^9}, {3.4103587727965117`*^9, 3.410358937450884*^9}, {
3.410361816282378*^9, 3.4103618460464783`*^9}, {3.4103618849502783`*^9,
3.4103619138700743`*^9}, {3.410361993815456*^9, 3.410361998365876*^9}, {
3.410362044062752*^9, 3.410362048390188*^9}, 3.4103621816640472`*^9, {
3.4103623726418247`*^9, 3.410362423637628*^9}, 3.410362583383135*^9, {
3.4103627081898193`*^9, 3.410362714948588*^9}, 3.410362966564897*^9, {
3.41036307941525*^9, 3.410363095236725*^9}, {3.410363205279072*^9,
3.410363255164323*^9}, 3.410363909423596*^9, {3.410367970024914*^9,
3.4103680096599083`*^9}, 3.410371495904366*^9, {3.410372031933605*^9,
3.410372052258244*^9}, {3.410372085131136*^9, 3.4103720923056498`*^9}, {
3.41037213357216*^9, 3.410372139130411*^9}, {3.410372423212018*^9,
3.41037244912959*^9}, {3.410372494524274*^9, 3.410372503403324*^9}, {
3.410372657469017*^9, 3.410372701577417*^9}, {3.410372827626442*^9,
3.410372834358616*^9}, {3.410373097470931*^9, 3.410373139685134*^9}, {
3.410373202086822*^9, 3.410373209805037*^9}, {3.410373460051064*^9,
3.4103734661252737`*^9}, {3.410373516262998*^9, 3.4103735219979753`*^9},
3.410373557750929*^9, {3.4103736245757227`*^9, 3.410373631683301*^9},
3.41037370148778*^9, {3.410373751008472*^9, 3.4103737743890057`*^9}, {
3.410378288153536*^9, 3.4103783095597553`*^9}, {3.410378683661441*^9,
3.410378689702578*^9}, 3.410396390765625*^9, {3.410396421484375*^9,
3.410396433*^9}, {3.4105434954270144`*^9, 3.4105435094669857`*^9}, {
3.585934308536429*^9, 3.585934321685664*^9}, 3.585934402288272*^9},
CellID->1182338211],
Cell[BoxData[
RowBox[{
RowBox[{"backbone", "=",
RowBox[{"Graphics3D", "[",
RowBox[{
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{"c", ",",
RowBox[{"Sphere", "[",
RowBox[{
RowBox[{"{",
RowBox[{"x0", ",", "y0", ",", "z0"}], "}"}], ",", ".4"}], "]"}],
",", "\[IndentingNewLine]", "g", ",", "\[IndentingNewLine]",
RowBox[{"Thickness", "[", ".02", "]"}], ",",
RowBox[{"Line", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"x0", ",", "y0", ",", "z0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"x1", ",", "y1", ",", "z1"}], "}"}]}], "}"}], "]"}], ",",
"\[IndentingNewLine]", "o", ",",
RowBox[{"Sphere", "[",
RowBox[{
RowBox[{"{",
RowBox[{"x1", ",", "y1", ",", "z1"}], "}"}], ",", ".4"}], "]"}],
",", "Black", ",",
RowBox[{"Thickness", "[", ".04", "]"}], ",",
RowBox[{"Line", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"x0", ",", "y0", ",", "z0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"x2", ",", "y2", ",", "z2"}], "}"}]}], "}"}], "]"}], ",",
"\[IndentingNewLine]", "n", ",", "\[IndentingNewLine]",
RowBox[{"Sphere", "[",
RowBox[{
RowBox[{"{",
RowBox[{"x2", ",", "y2", ",", "z2"}], "}"}], ",", ".4"}], "]"}],
",", "\[IndentingNewLine]", "g", ",", "\[IndentingNewLine]",
RowBox[{"Thickness", "[", ".02", "]"}], ",",
RowBox[{"Line", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"x2", ",", "y2", ",", "z2"}], "}"}], ",",
RowBox[{"{",
RowBox[{"x3", ",", "y3", ",", "z3"}], "}"}]}], "}"}], "]"}], ",",
"\[IndentingNewLine]", "h", ",", "\[IndentingNewLine]",
RowBox[{"Sphere", "[",
RowBox[{
RowBox[{"{",
RowBox[{"x3", ",", "y3", ",", "z3"}], "}"}], ",", ".3"}], "]"}],
",", "\[IndentingNewLine]", "g", ",", "\[IndentingNewLine]",
RowBox[{"Thickness", "[", ".02", "]"}], ",",
RowBox[{"Line", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"x0", ",", "y0", ",", "z0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"x4", ",", "y4", ",", "z4"}], "}"}]}], "}"}], "]"}], ",",
"\[IndentingNewLine]", "c", ",", "\[IndentingNewLine]",
RowBox[{"Sphere", "[",
RowBox[{
RowBox[{"{",
RowBox[{"x4", ",", "y4", ",", "z4"}], "}"}], ",", ".4"}], "]"}],
",", "\[IndentingNewLine]", "g", ",", "\[IndentingNewLine]",
RowBox[{"Line", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"x2", ",", "y2", ",", "z2"}], "}"}], ",",
RowBox[{"{",
RowBox[{"x5", ",", "y5", ",", "z5"}], "}"}]}], "}"}], "]"}], ",",
"\[IndentingNewLine]", "c", ",", "\[IndentingNewLine]",
RowBox[{"Sphere", "[",
RowBox[{
RowBox[{"{",
RowBox[{"x5", ",", "y5", ",", "z5"}], "}"}], ",", ".4"}], "]"}],
",", "\[IndentingNewLine]",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{"\"\<\[Psi]\>\"", ",", "36", ",", "Bold", ",", "Black"}],
"]"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"(",
RowBox[{"x0", "+", "x4"}], ")"}], "/", "2"}], ",",
RowBox[{
RowBox[{"(",
RowBox[{"y0", "+", "y4"}], ")"}], "/", "2"}], ",",
RowBox[{
RowBox[{"(",
RowBox[{"z0", "+", "z4"}], ")"}], "/", "2"}]}], "}"}]}], "]"}],
",",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{
"\"\<\[InvisiblePrefixScriptBase]\[Phi]\>\"", ",", "36", ",",
"Bold", ",", "Black"}], "]"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"(",
RowBox[{"x2", "+", "x5"}], ")"}], "/", "2"}], ",",
RowBox[{
RowBox[{"(",
RowBox[{"y2", "+", "y5"}], ")"}], "/", "2"}], ",",
RowBox[{
RowBox[{"(",
RowBox[{"z2", "+", "z5"}], ")"}], "/", "2"}]}], "}"}]}], "]"}],
",", "\[IndentingNewLine]",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{
"\"\<\[InvisiblePrefixScriptBase]C\>\"", ",", "24", ",", "Bold",
",", "Black"}], "]"}], ",",
RowBox[{"{",
RowBox[{"x0", ",", "y0", ",", "z0"}], "}"}]}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{
"\"\<\[InvisiblePrefixScriptBase]O\>\"", ",", "24", ",", "Bold",
",", "Black"}], "]"}], ",",
RowBox[{"{",
RowBox[{"x1", ",", "y1", ",", "z1"}], "}"}]}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{
"\"\<\[InvisiblePrefixScriptBase]N\>\"", ",", "24", ",", "Bold",
",", "Black"}], "]"}], ",",
RowBox[{"{",
RowBox[{"x2", ",", "y2", ",", "z2"}], "}"}]}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{
"\"\<\[InvisiblePrefixScriptBase]H\>\"", ",", "24", ",", "Bold",
",", "Black"}], "]"}], ",",
RowBox[{"{",
RowBox[{"x3", ",", "y3", ",", "z3"}], "}"}]}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{
"\"\<\[InvisiblePrefixScriptBase]C\>\"", ",", "24", ",", "Bold",
",", "Black"}], "]"}], ",",
RowBox[{"{",
RowBox[{"x4", ",", "y4", ",", "z4"}], "}"}]}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"Text", "[",
RowBox[{
RowBox[{"Style", "[",
RowBox[{
"\"\<\[InvisiblePrefixScriptBase]C\>\"", ",", "24", ",", "Bold",
",", "Black"}], "]"}], ",",
RowBox[{"{",
RowBox[{"x5", ",", "y5", ",", "z5"}], "}"}]}], "]"}]}],
"\[IndentingNewLine]", "}"}], ",",
RowBox[{"Boxed", "\[Rule]", "False"}], ",",
RowBox[{"ViewPoint", "\[Rule]", "Above"}]}], "]"}]}], ";"}]], "Input",
CellChangeTimes->{
3.35696210375764*^9, {3.41012470055711*^9, 3.410124704953176*^9}, {
3.4101247367447433`*^9, 3.4101247371958113`*^9}, {3.410124870032103*^9,
3.41012489443196*^9}, 3.410125001550399*^9, {3.410125110084345*^9,
3.41012514038352*^9}, 3.410125198427013*^9, {3.410125276993567*^9,
3.4101252901108427`*^9}, {3.410126493312763*^9, 3.410126518550033*^9}, {
3.410126605387678*^9, 3.410126665718832*^9}, {3.410126715498056*^9,
3.410126762367193*^9}, {3.4101268138970413`*^9, 3.410126886631147*^9},
3.4101271003996067`*^9, {3.410127140424881*^9, 3.4101271826259823`*^9}, {
3.410127735568852*^9, 3.4101278655353403`*^9}, {3.410127897652779*^9,
3.410127914417924*^9}, {3.410127969253952*^9, 3.410127972756975*^9}, {
3.410128004175777*^9, 3.410128012837775*^9}, {3.4101281379548798`*^9,
3.4101281550056133`*^9}, {3.410128187938736*^9, 3.4101282613053637`*^9}, {
3.410128368379382*^9, 3.410128523683168*^9}, {3.41012856860485*^9,
3.410128648097501*^9}, {3.410128727344205*^9, 3.410128733396545*^9}, {
3.4101292038224897`*^9, 3.410129242949656*^9}, {3.410129281528308*^9,
3.4101292971138363`*^9}, {3.410129439353531*^9, 3.4101294458378963`*^9}, {
3.4101749583680553`*^9, 3.4101750500967627`*^9}, {3.4101751368294067`*^9,
3.4101753752572937`*^9}, {3.4103066335700912`*^9,
3.4103067722992687`*^9}, {3.410310503011437*^9, 3.4103105133872557`*^9}, {
3.410310547565235*^9, 3.410310581906501*^9}, {3.410310643510171*^9,
3.410310753269761*^9}, {3.4103108133721037`*^9, 3.410310851605075*^9}, {
3.410310892114525*^9, 3.410310958284546*^9}, {3.410311226861437*^9,
3.410311245283016*^9}, {3.410311351621456*^9, 3.410311353754719*^9}, {
3.4103147591266937`*^9, 3.4103147653399563`*^9}, {3.410314812286326*^9,
3.410314817396747*^9}, {3.4103582064167624`*^9, 3.4103582805898943`*^9}, {
3.410358369259482*^9, 3.410358375631775*^9}, 3.410358476100917*^9,
3.410359102017147*^9, 3.410359136477819*^9, {3.410378812528019*^9,
3.410378834540846*^9}, {3.410378866261559*^9, 3.410378900153358*^9}, {
3.410378931073868*^9, 3.410378971658806*^9}, {3.4103793511000423`*^9,
3.410379353473198*^9}, 3.410387392627327*^9, {3.585934421283502*^9,
3.585934427773404*^9}, {3.6243134493333893`*^9, 3.6243135350814133`*^9},
3.6259237769868*^9, {3.625923820521132*^9, 3.625923822392928*^9}, {
3.625924090773679*^9, 3.62592410993478*^9}, {3.625924145379445*^9,
3.6259241512355022`*^9}, 3.625924242595707*^9, 3.625924286548594*^9,
3.625924347242476*^9, {3.625924404369501*^9, 3.62592440482407*^9}, {
3.6259244444547462`*^9, 3.625924444894609*^9}, {3.625924498080493*^9,
3.625924557405072*^9}, {3.62592468248558*^9, 3.6259246839075108`*^9}, {
3.625924772036076*^9, 3.625924774314439*^9}},
CellID->1045860403]
}, Open ]],
Cell[CellGroupData[{
Cell["", "ManipulateSection"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"Manipulate", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"initvars", ";", "\[IndentingNewLine]",
RowBox[{"Show", "[",
RowBox[{
RowBox[{"Graphics3D", "@",
RowBox[{"Sphere", "[",
RowBox[{
RowBox[{"{",
RowBox[{"x0", ",", "y0", ",", "z0"}], "}"}], ",", ".4"}], "]"}]}],
",", "backbone", ",",
RowBox[{"tetra1", "[",
RowBox[{"ang", "[",
RowBox[{"[", "1", "]"}], "]"}], "]"}], ",",
RowBox[{"tetra2", "[",
RowBox[{"ang", "[",
RowBox[{"[", "2", "]"}], "]"}], " ", "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"ImageSize", "\[Rule]",
RowBox[{"1.1",
RowBox[{"{",
RowBox[{"525", ",", "350"}], "}"}]}]}], ",",
RowBox[{"ViewAngle", "\[Rule]",
RowBox[{"Pi", "/", "16"}]}], ",",
RowBox[{"Boxed", "\[Rule]", "False"}], ",",
RowBox[{"PlotRange", "\[Rule]",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"-", "4"}], ",", "6"}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "4"}], ",", "2"}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "3"}], ",", "3"}], "}"}]}], "}"}]}]}], "]"}]}], ",",
"\[IndentingNewLine]",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"ang", ",",
RowBox[{"{",
RowBox[{
RowBox[{"45", "\[Degree]"}], ",",
RowBox[{"120", "\[Degree]"}]}], "}"}], ",",
"\"\<\[Phi], \[Psi]\>\""}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"0", "\[Degree]"}], ",",
RowBox[{"0", "\[Degree]"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"360", "\[Degree]"}], ",",
RowBox[{"360", "\[Degree]"}]}], "}"}]}], "}"}], ",",
RowBox[{"SaveDefinitions", "\[Rule]", "True"}]}], "]"}]], "Input",
CellChangeTimes->{
3.35696210375764*^9, {3.409783635140251*^9, 3.409783988822134*^9}, {
3.40978416411467*^9, 3.4097842313109913`*^9}, {3.409784430875092*^9,
3.409784440745234*^9}, {3.409784488446199*^9, 3.4097844997542267`*^9}, {
3.4097845431502457`*^9, 3.409784584319475*^9}, {3.409784964379663*^9,
3.4097850261539993`*^9}, 3.409785078835856*^9, {3.409785217794482*^9,
3.409785325309553*^9}, {3.409785362990638*^9, 3.409785376467453*^9}, {
3.4097854087495813`*^9, 3.4097854177642717`*^9}, {3.409785450469372*^9,
3.409785461293613*^9}, {3.409785517772525*^9, 3.409785569652598*^9}, {
3.4097856114654417`*^9, 3.409785704678041*^9}, {3.4097857491210403`*^9,
3.4097857749037123`*^9}, {3.409844044400032*^9, 3.409844088647944*^9}, {
3.409844129069886*^9, 3.409844154434638*^9}, {3.409844192296228*^9,
3.409844280256589*^9}, {3.4098443690020103`*^9, 3.409844421365818*^9}, {
3.4098444949688177`*^9, 3.409844519969017*^9}, {3.409844578281281*^9,
3.4098445815260687`*^9}, {3.4098446931320677`*^9, 3.409844699975546*^9}, {
3.409946435655224*^9, 3.4099465387875977`*^9}, {3.409946597623947*^9,
3.409946642861661*^9}, {3.4099466802629957`*^9, 3.4099467120958767`*^9}, {
3.4099467480293837`*^9, 3.40994675561265*^9}, {3.409946791122341*^9,
3.409946858015128*^9}, {3.409946974242786*^9, 3.409946997174419*^9}, {
3.4099471099712*^9, 3.4099471178537903`*^9}, {3.409947208208667*^9,
3.409947230778302*^9}, {3.409956379959277*^9, 3.409956389432523*^9}, {
3.409956579060691*^9, 3.409956580995672*^9}, {3.409957196460927*^9,
3.409957203001115*^9}, {3.409957246770659*^9, 3.409957271752509*^9}, {
3.409959688691074*^9, 3.409959740682115*^9}, {3.40995979846376*^9,
3.4099598101748037`*^9}, {3.409959927378628*^9, 3.409959946862713*^9}, {
3.4099601661575212`*^9, 3.4099602384438057`*^9}, 3.409960283552803*^9, {
3.409960338328117*^9, 3.4099603539936438`*^9}, {3.40996043515131*^9,
3.409960443371462*^9}, {3.4099605158680487`*^9, 3.409960558054582*^9}, {
3.409960637860519*^9, 3.409960738722103*^9}, {3.409961698323409*^9,
3.40996179739744*^9}, {3.409961845520361*^9, 3.409961864973524*^9}, {
3.4099619035227137`*^9, 3.4099619383598003`*^9}, {3.409961973458202*^9,
3.409962002998577*^9}, {3.409962083890604*^9, 3.409962108465521*^9},
3.4099632522010098`*^9, {3.410049488488874*^9, 3.4100494952489443`*^9}, {
3.41005068344379*^9, 3.410050784385166*^9}, {3.4100509702872972`*^9,
3.410050988315133*^9}, {3.410051108142839*^9, 3.4100511142742*^9}, {
3.4100511965915403`*^9, 3.4100512044861383`*^9}, {3.4100513263775*^9,
3.410051380524397*^9}, {3.410051524409589*^9, 3.4100515667085133`*^9}, {
3.4100520665853853`*^9, 3.410052072628769*^9}, {3.410052136857499*^9,
3.410052146989719*^9}, {3.410052237800354*^9, 3.41005224463826*^9}, {
3.4100525747290916`*^9, 3.410052647266725*^9}, {3.410053431365806*^9,
3.410053440844984*^9}, {3.410053485173956*^9, 3.4100534925994987`*^9}, {
3.410053669236887*^9, 3.410053873490103*^9}, {3.410097511429838*^9,
3.410097545259453*^9}, {3.410098868521455*^9, 3.4100989695458384`*^9}, {
3.410099911087946*^9, 3.41009993341931*^9}, {3.410099966310644*^9,
3.4100999766127853`*^9}, 3.41010007056417*^9, 3.410292093851811*^9, {
3.410292193411278*^9, 3.410292303722288*^9}, {3.410292467631649*^9,
3.41029249081828*^9}, {3.410292595180543*^9, 3.4102925956544*^9}, {
3.410303710054948*^9, 3.4103037245865297`*^9}, {3.410303755662299*^9,
3.410303802394621*^9}, {3.410304198583901*^9, 3.410304235959351*^9}, {
3.410304281186059*^9, 3.4103042932475653`*^9}, {3.410305106329006*^9,
3.410305149110043*^9}, {3.410305246459195*^9, 3.410305367979001*^9}, {
3.410305457945339*^9, 3.41030547586471*^9}, {3.410305883717586*^9,
3.4103059232112103`*^9}, {3.410305964685779*^9, 3.410306003419956*^9}, {
3.410306065670065*^9, 3.41030613763689*^9}, {3.410306167846157*^9,
3.410306174530793*^9}, {3.410306244606346*^9, 3.4103062667411423`*^9},
3.410306316669989*^9, {3.410306477204608*^9, 3.4103064775940123`*^9}, {
3.41031349836594*^9, 3.4103135058027*^9}, {3.410358099917325*^9,
3.4103581059052343`*^9}, {3.410379172164785*^9, 3.4103792748853188`*^9},
3.410379305279724*^9, {3.410379695472342*^9, 3.410379699244899*^9}, {
3.41037974186583*^9, 3.410379747080412*^9}, {3.410379779041482*^9,
3.410379834238103*^9}, {3.410379868592304*^9, 3.410379933853929*^9}, {
3.410379966263362*^9, 3.4103799887009773`*^9}, {3.410380077456094*^9,
3.410380077748951*^9}, {3.410380109545196*^9, 3.4103801492966833`*^9}, {
3.410380181047579*^9, 3.410380248907137*^9}, {3.4103802929936*^9,
3.410380318462963*^9}, {3.410395474682802*^9, 3.4103955032611103`*^9}, {
3.410396364359375*^9, 3.41039636509375*^9}, {3.4103967884375*^9,
3.41039679321875*^9}, {3.6243133943011637`*^9, 3.624313435249703*^9}, {
3.6243135623528643`*^9, 3.62431370206715*^9}, {3.624313734493752*^9,
3.624313734725299*^9}, {3.624313784013403*^9, 3.624313814285625*^9}, {
3.624313849961295*^9, 3.624313871862914*^9}, {3.6259234987090197`*^9,
3.6259235087491627`*^9}, 3.625923597667108*^9, 3.625923631052765*^9, {
3.625923696103073*^9, 3.625923715751546*^9}}],
Cell[BoxData[
TagBox[
StyleBox[
DynamicModuleBox[{$CellContext`ang$$ = {45 Degree, 120 Degree},
Typeset`show$$ = True, Typeset`bookmarkList$$ = {},
Typeset`bookmarkMode$$ = "Menu", Typeset`animator$$, Typeset`animvar$$ =
1, Typeset`name$$ = "\"untitled\"", Typeset`specs$$ = {{{
Hold[$CellContext`ang$$], {45 Degree, 120 Degree}, "\[Phi], \[Psi]"}, {
0, 0}, {360 Degree, 360 Degree}}}, Typeset`size$$ = {
578., {190., 195.}}, Typeset`update$$ = 0, Typeset`initDone$$,
Typeset`skipInitDone$$ = False, $CellContext`ang$4586$$ = {0, 0}},
DynamicBox[Manipulate`ManipulateBoxes[
1, StandardForm,
"Variables" :> {$CellContext`ang$$ = {45 Degree, 120 Degree}},
"ControllerVariables" :> {
Hold[$CellContext`ang$$, $CellContext`ang$4586$$, {0, 0}]},
"OtherVariables" :> {
Typeset`show$$, Typeset`bookmarkList$$, Typeset`bookmarkMode$$,
Typeset`animator$$, Typeset`animvar$$, Typeset`name$$,
Typeset`specs$$, Typeset`size$$, Typeset`update$$, Typeset`initDone$$,
Typeset`skipInitDone$$}, "Body" :> ($CellContext`initvars; Show[
Graphics3D[
Sphere[{$CellContext`x0, $CellContext`y0, $CellContext`z0},
0.4]], $CellContext`backbone,
$CellContext`tetra1[
Part[$CellContext`ang$$, 1]],
$CellContext`tetra2[
Part[$CellContext`ang$$, 2]], ImageSize -> 1.1 {525, 350},
ViewAngle -> Pi/16, Boxed -> False,
PlotRange -> {{-4, 6}, {-4, 2}, {-3, 3}}]),
"Specifications" :> {{{$CellContext`ang$$, {45 Degree, 120 Degree},
"\[Phi], \[Psi]"}, {0, 0}, {360 Degree, 360 Degree}}},
"Options" :> {}, "DefaultOptions" :> {ControllerLinking -> True}],
ImageSizeCache->{727., {217., 222.}},
SingleEvaluation->True],
Deinitialization:>None,
DynamicModuleValues:>{},
Initialization:>({$CellContext`initvars = Null, $CellContext`x0 =
0, $CellContext`y0 = 0, $CellContext`z0 = 0, $CellContext`backbone =
Graphics3D[{
RGBColor[
0.33333333333333337`, 0.33333333333333337`, 0.33333333333333337`],
Sphere[{0, 0, 0}, 0.4],
GrayLevel[0.5],
Thickness[0.02],
Line[{{0, 0, 0}, {0, 1.24, 0}}],
RGBColor[1, 0, 0],
Sphere[{0, 1.24, 0}, 0.4],
GrayLevel[0],
Thickness[0.04],
Line[{{0, 0, 0}, {1.1518137870333034`, -0.665, 0}}],
RGBColor[0, 0, 1],
Sphere[{1.1518137870333034`, -0.665, 0}, 0.4],
GrayLevel[0.5],
Thickness[0.02],
Line[{{1.1518137870333034`, -0.665, 0}, {
1.1518137870333034`, -1.7550000000000001`, 0}}],
RGBColor[1, 1, 0],
Sphere[{1.1518137870333034`, -1.7550000000000001`, 0}, 0.3],
GrayLevel[0.5],
Thickness[0.02],
Line[{{0, 0, 0}, {-1.3336791218280355`, -0.77, 0}}],
RGBColor[
0.33333333333333337`, 0.33333333333333337`, 0.33333333333333337`],
Sphere[{-1.3336791218280355`, -0.77, 0}, 0.4],
GrayLevel[0.5],
Line[{{1.1518137870333034`, -0.665, 0}, {
2.4162108765585835`, 0.06499999999999995, 0}}],
RGBColor[
0.33333333333333337`, 0.33333333333333337`, 0.33333333333333337`],
Sphere[{2.4162108765585835`, 0.06499999999999995, 0}, 0.4],
Text[
Style["\[Psi]", 36, Bold,
GrayLevel[0]], {-0.6668395609140177, -0.385, 0}],
Text[
Style["\[InvisiblePrefixScriptBase]\[Phi]", 36, Bold,
GrayLevel[0]], {1.7840123317959433`, -0.30000000000000004`, 0}],
Text[
Style["\[InvisiblePrefixScriptBase]C", 24, Bold,
GrayLevel[0]], {0, 0, 0}],
Text[
Style["\[InvisiblePrefixScriptBase]O", 24, Bold,
GrayLevel[0]], {0, 1.24, 0}],
Text[
Style["\[InvisiblePrefixScriptBase]N", 24, Bold,
GrayLevel[0]], {1.1518137870333034`, -0.665, 0}],
Text[
Style["\[InvisiblePrefixScriptBase]H", 24, Bold,
GrayLevel[0]], {1.1518137870333034`, -1.7550000000000001`, 0}],
Text[
Style["\[InvisiblePrefixScriptBase]C", 24, Bold,
GrayLevel[0]], {-1.3336791218280355`, -0.77, 0}],
Text[
Style["\[InvisiblePrefixScriptBase]C", 24, Bold,
GrayLevel[0]], {2.4162108765585835`, 0.06499999999999995, 0}]},
Boxed -> False, ViewPoint -> Above], $CellContext`tetra1[
Pattern[$CellContext`\[Phi],
Blank[]]] :=
Module[{$CellContext`\[Phi]1 = $CellContext`\[Phi], $CellContext`xp1, \
$CellContext`yp1, $CellContext`zp1, $CellContext`xh1, $CellContext`yh1, \
$CellContext`zh1, $CellContext`xr1, $CellContext`yr1, $CellContext`zr1}, \
$CellContext`xp1 = $CellContext`x4 - 1.17; $CellContext`yp1 = $CellContext`y4 +
1.; $CellContext`zp1 = $CellContext`z4; $CellContext`xh1 = \
($CellContext`rch/$CellContext`rcc) ($CellContext`x4 -
0.86); $CellContext`yh1 = ($CellContext`rch/$CellContext`rcc) \
($CellContext`y4 -
0.22); $CellContext`zh1 = ($CellContext`rch/$CellContext`rcc) \
($CellContext`z4 + 1.26); $CellContext`xr1 = $CellContext`x4 -
0.86; $CellContext`yr1 = $CellContext`y4 -
0.22; $CellContext`zr1 = $CellContext`z4 - 1.26; Graphics3D[
Rotate[{$CellContext`c,
Sphere[{$CellContext`x4, $CellContext`y4, $CellContext`z4},
0.4], $CellContext`r1,
Sphere[{$CellContext`xr1, $CellContext`yr1, $CellContext`zr1},
0.5], $CellContext`h,
Sphere[{$CellContext`xh1, $CellContext`yh1, $CellContext`zh1},
0.3], $CellContext`g,
Thickness[0.02],
Line[{{$CellContext`x4, $CellContext`y4, $CellContext`z4}, \
{$CellContext`xr1, $CellContext`yr1, $CellContext`zr1}}],
Line[{{$CellContext`x4, $CellContext`y4, $CellContext`z4}, \
{$CellContext`xh1, $CellContext`yh1, $CellContext`zh1}}],
Line[{{$CellContext`x4, $CellContext`y4, $CellContext`z4}, \
{$CellContext`xp1, $CellContext`yp1, $CellContext`zp1}}],
Text[
Style[
"\[InvisiblePrefixScriptBase]C", 24, Bold,
Black], {$CellContext`x4, $CellContext`y4, $CellContext`z4}],
Text[
Style[
"H", 24, Bold,
Black], {$CellContext`xh1, $CellContext`yh1, \
$CellContext`zh1}],
Text[
Style[
"\[InvisiblePrefixScriptBase]\!\(\*SubscriptBox[\(R\), \
\(1\)]\)", 32, Bold,
Black], {$CellContext`xr1, $CellContext`yr1, \
$CellContext`zr1}], Green,
Cylinder[{{
2 $CellContext`xp1 - $CellContext`x4,
2 $CellContext`yp1 - $CellContext`y4,
2 $CellContext`zp1 - $CellContext`z4}, {
0.5 ($CellContext`xp1 + $CellContext`x4),
0.5 ($CellContext`yp1 + $CellContext`y4),
0.5 ($CellContext`zp1 + $CellContext`z4)}},
0.4]}, $CellContext`\[Phi]1, {$CellContext`x4, $CellContext`y4, \
$CellContext`z4}, {$CellContext`x0, $CellContext`y0, $CellContext`z0}], Boxed ->
False]], $CellContext`xp1 = -2.5036791218280356`, $CellContext`yp1 =
0.22999999999999998`, $CellContext`zp1 =
0, $CellContext`xh1 = -1.552668988826337, $CellContext`yh1 = \
-0.7007142857142857, $CellContext`zh1 =
0.891818181818182, $CellContext`xr1 = -2.1936791218280356`, \
$CellContext`yr1 = -0.99, $CellContext`zr1 = -1.26, $CellContext`x4 = \
-1.3336791218280355`, $CellContext`y4 = -0.77, $CellContext`z4 =
0, $CellContext`rch = 1.09, $CellContext`rcc = 1.54, $CellContext`c =
RGBColor[
0.33333333333333337`, 0.33333333333333337`,
0.33333333333333337`], $CellContext`r1 =
RGBColor[0.5, 0, 0.5], $CellContext`h =
RGBColor[1, 1, 0], $CellContext`g = GrayLevel[0.5], $CellContext`tetra2[