TRITONAppABC.html 166 KB
Newer Older
Batson Iii's avatar
Batson Iii committed
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

<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>TRITON Appendices &#8212; SCALE Manual 0.0.1 documentation</title>
    <link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <link rel="stylesheet" type="text/css" href="_static/css/custom.css" />
    <link rel="stylesheet" type="text/css" href="_static/custom.css" />
    <script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
    <script src="_static/jquery.js"></script>
    <script src="_static/underscore.js"></script>
    <script src="_static/doctools.js"></script>
    <script src="_static/language_data.js"></script>
    <script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="POLARIS - 2D Light Water Reactor Lattice Physics Module" href="Polaris.html" />
    <link rel="prev" title="TRITON: A Multipurpose Transport, Depletion, And Sensitivity and Uncertainty Analysis Module" href="TRITON.html" />
   
  <link rel="stylesheet" href="_static/custom.css" type="text/css" />
  
  
  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />

  </head><body>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          

          <div class="body" role="main">
            
  <div class="section" id="triton-appendices">
<span id="abc"></span><h1>TRITON Appendices<a class="headerlink" href="#triton-appendices" title="Permalink to this headline"></a></h1>
<div class="section" id="xsdrn-model-block-description">
<span id="a"></span><h2>XSDRN Model Block Description<a class="headerlink" href="#xsdrn-model-block-description" title="Permalink to this headline"></a></h2>
<p>The model data block for <em>T-XSDRN</em> and <em>T-DEPL-1D</em> calculations allows
specification of the 1D geometry model and various control parameters
used in the transport solution. The XSDRN <em>MODEL</em> block input is
arranged in blocks of data that are similar to the NEWT <em>MODEL</em> block
input described in Chapter 9.2. The XSDRN model input starts with an
optional 80-character title, followed by a <em>PARAMETER</em> block, and then
the following three data blocks in any order: the <em>GEOMETRY</em> data block,
the <em>MATERIAL</em> data block, and the optional <em>COLLAPSE</em> data block. If
the <em>PARAMETER</em>, <em>GEOMETRY</em>, and <em>MATERIAL</em> data block are not
specified, an error message is printed and the problem is terminated.
Sample input files for <em>T-XSDRN</em> and <em>T-DEPL-1D</em> calculations are
provided in TRITON sample problem 2 and sample problem 3, respectively,
in <a class="reference internal" href="TRITON.html#id1"><span class="std std-ref">TRITON: A Multipurpose Transport, Depletion, And Sensitivity and Uncertainty Analysis Module</span></a>.</p>
<div class="section" id="xsdrn-parameter-block">
<span id="a-1"></span><h3>XSDRN <em>PARAMETER</em> block<a class="headerlink" href="#xsdrn-parameter-block" title="Permalink to this headline"></a></h3>
<p><em>PARAMETER</em> Block keyword = parm, para, parameter, or parameters</p>
<p>Valid <em>PARAMETER</em> block specifications are described below. For each
keyword, allowable values are listed in parentheses, and the default is
listed in brackets. Input that can take an arbitrary integer value is
indicated by an IN; similarly, any parameter that can take an arbitrary
real/floating point value is indicated by RN as the allowable value.
SCALE read routines allow the input of integers for real numbers, and
vice versa, and the number will be converted accordingly. The order of
the parameters within the block is arbitrary and may be skipped if a
default value is desired for that parameter. If a parameter is listed
multiple times, the final specified value is used.</p>
<p><strong>bf</strong>=(RN) - Buckling factor, equal to twice the extrapolation
distance multiplier used to determine the zero point of the asymptotic
flux. [1.420892]</p>
<p><strong>collapse</strong>=(yes/no) - If collapse=yes is specified, a flux-weighted
collapse is performed by material number; cross sections for each
nuclide in each material in the problem are collapsed to a specified (or
default) group structure based on the average flux in that material. If
collapse=yes, TRITON will look for the <em>COLLAPSE</em> block; if not found,
TRITON will generate cross sections based on the original group
structure. [no]</p>
<p><strong>deltay</strong>=(RN) - The first transverse dimension in centimeters used
in a buckling correction to calculate</p>
<p>leakage normal to the principal calculation direction (i.e., the height
of a slab or a cylinder).</p>
<p><strong>deltaz</strong>=(RN) - The second transverse dimension in centimeters used
in a buckling correction (i.e., the width of a slab).</p>
<p><strong>difftreatment</strong>=(mg_1d_sigtr/mg_0d_diff/mg_0d_sigtr/1g_0d_sigtr) -
Diffusion treatment option for transverse leakage corrections. The
mg_1d_sigtr option uses zone-dependent transport cross-sections for the
transverse leakage correction. The mg_0d_diff option uses
flux-volume-weighted homogenized diffusion coefficients. The mg_0d_sigtr
option uses flux-volume weighted homogenized transport cross-sections.
The 1g_0d_sigtr option uses a one-group homogenized transport
cross-section. [1g_0d_sigtr]</p>
<p><strong>epsglobal</strong>=(RN) - Overall problem convergence criteria. [1.0e-6]</p>
<p><strong>epsouter</strong>=(RN) - Scalar flux convergence criteria. [1.0e-6]</p>
<p><strong>inners</strong>=(IN) - Maximum number of inner iterations in an energy
group. [20]</p>
<p><strong>outers</strong>=(IN) - Maximum number of outer iterations. [100]</p>
<p><strong>prtflux</strong>=(yes/no) - Flag indicating whether or not scalar flux
values are should be printed in problem output. [no]</p>
<p><strong>prtangflux</strong>=(yes/no) - Flag indicating whether or not angular flux
values should be printed in problem output. [no]</p>
<p><strong>prtbalnc</strong>=(yes/no) - Flag indicating whether or not fine-group
material balance tables should be printed in problem output. [no]</p>
<p><strong>prtmxsec</strong>=(yes/no/1d) - Flag indicating whether or not material
macroscopic cross sections should be printed in problem output. The 1D
option indicates that 2D scattering tables are not to be printed. [no]</p>
<p><strong>sn</strong>=(2/4/6/8/16/32) - Sn quadrature order for the transport
calculations.</p>
<p>XSDRN <em>GEOMETRY</em> block</p>
<p><em>GEOMETRY</em> Block keyword = geom, geometry</p>
<p>The <em>GEOMETRY</em> block is used to specify the geometry type (e.g., slab,
cylinder, or sphere), the boundary conditions, the 1D material mesh
(i.e., zone mesh), and the 1D spatial mesh used in the transport
calculation. The order of the parameters entered in the <em>GEOMETRY</em> block
is arbitrary and can be any of the following supported keyword
specifications or keyword array specifications.</p>
<p><strong>geom</strong>=(slab/cylinder/sphere) - Problem geometry. Keywords
geometry=, ige=, and cyl for cylinder are also allowed. [slab]</p>
<p><strong>leftbc</strong>=(vaccum/periodic/white/albedo/mirror) - Left-hand boundary
condition. Keywords ibl=, vac for vacuum, refl for mirror, and reflected
for mirror are also allowed. [mirror]</p>
<p><strong>rightbc</strong>=(vaccum/periodic/white/albedo/mirror) - Right-hand
boundary condition. Keywords ibr=, vac for vacuum, refl for mirror, and
reflected for mirror are also allowed. [mirror]</p>
<p><strong>left_albedo</strong> RN1 RN2 … RNN <strong>end left_albedo</strong> <strong>-</strong> The left-hand
boundary albedo values as a function of energy group. The left_albedo
array is ignored if leftbc= is vacuum, periodic, white, or mirror. If
the left_albedo array is omitted and leftbc=albedo, white boundary
conditions are used. If the number of entries in the left_albedo array
does not equal the number of energy groups in the cross-section library,
an error message is printed and the problem is terminated.</p>
<p><strong>right_albedo</strong> RN1 RN2 … RNN <strong>end right_albedo</strong> <strong>-</strong> The
right-hand boundary albedo values as a function of energy group. The
right_albedo array is ignored if rightbc= is vacuum, periodic, white, or
mirror. If the right_albedo array is omitted and rightbc=albedo, white
boundary conditions are used. If the number of entries in the
right_albedo array does not equal the number of energy groups in the
cross-section library, an error message is printed and the problem is
terminated.</p>
<p><strong>zoneids</strong> IN1 IN2 … INN <strong>end zoneids</strong> <strong>-</strong> Material composition
number by zone. The number of entries in the zoneids array defines the
number of zones for the problem. If the zoneids array is not defined, an
error message is printed and the problem is terminated.</p>
<p><strong>zonedimensions</strong> RN1 RN2 … RNN <strong>end zonedimensions</strong> <strong>-</strong> The
right-hand boundary for each zone is given in centimeters. Note that the
left-hand boundary of the first zone is 0.0 and must not be entered. If
the zonedimensions array is not defined or the number of entries does
not equal the number of entries in the zoneids array, then an error
message is printed and the problem is terminated.</p>
<p><strong>zoneintervals</strong> IN1 IN2 … INN <strong>end zoneintervals</strong> <strong>-</strong> Number of
spatial mesh of constant width per each problem zone. If specified, the
number of entries of the zonedimensions array must equal the number of
entries in the zoneids array. Otherwise, an error message is printed and
the problem is terminated.</p>
<p><strong>mesh</strong> RN1 RN2 … RNN <strong>end mesh</strong> <strong>-</strong> The right-hand boundary for
each spatial mesh in centimeters. The spatial mesh is the discretization
used in the transport calculation. Note that the left-hand boundary of
the first spatial mesh is 0.0 and must not be entered. The zone
boundaries in the zonedimensions array must be a subset of the spatial
mesh boundaries in the mesh array. Otherwise, an error message is
printed and the problem is terminated. The mesh array is optional and is
not used if the zoneintervals array is specified. If neither the
zoneintervals array nor the mesh array is specified, an error message is
printed and the problem is terminated.</p>
</div>
<div class="section" id="xsdrn-material-block">
<span id="a-2"></span><h3>XSDRN <em>MATERIAL</em> block<a class="headerlink" href="#xsdrn-material-block" title="Permalink to this headline"></a></h3>
<p><em>MATERIAL</em> Block keyword = matl, mat, material, materials</p>
<p>The <em>MATERIAL</em> block is used to specify the material numbers for each
material used in the calculation in the order of scattering cross
section to be used for each material. The format of the <em>MATERIAL</em> block
is identical to the NEWT <em>MATERIAL</em> block that is described in detail in
(<a class="reference internal" href="NEWT.html#id1"><span class="std std-ref">NEWT:  A New Transport Algorithm for Two-Dimensional Discrete-Ordinates Analysis in Non-Orthogonal Geometries</span></a>). Although source and description specifications are
allowed, these options are not used by XSDRN.</p>
<div class="section" id="xsdrn-collapse-block">
<span id="a-3"></span><h4>XSDRN <em>COLLAPSE</em> block<a class="headerlink" href="#xsdrn-collapse-block" title="Permalink to this headline"></a></h4>
<p><em>COLLAPSE</em> Block keyword = collapse, coll</p>
<p>The <em>COLLAPSE</em> block is used to define the energy group collapsing
operation to calculate broad group cross-section libraries using the
XSDRN flux solution. The format of the <em>COLLAPSE</em> block is identical to
the NEWT <em>COLLAPSE</em> block that is described in detail in <a class="reference internal" href="NEWT.html#id1"><span class="std std-ref">NEWT:  A New Transport Algorithm for Two-Dimensional Discrete-Ordinates Analysis in Non-Orthogonal Geometries</span></a>.</p>
</div>
</div>
</div>
<div class="section" id="data-structure-for-cross-section-database-file-xfile016">
<span id="b"></span><h2>Data Structure for Cross Section Database File xfile016<a class="headerlink" href="#data-structure-for-cross-section-database-file-xfile016" title="Permalink to this headline"></a></h2>
<p>When branch calculations are performed, TRITON archives collapsed
homogenized cross sections in an unformatted, direct-access FORTRAN file
called <em>xfile016</em>. The contents and format of this file are described in
this appendix.</p>
<p>TRITON uses a library of SCALE subroutines to read and write blocks of
data to direct-access FORTRAN files. The SCALE subroutine library allows
the blocks of data to have variable length, even though direct-access
FORTRAN files have a fixed record length. The data blocks can be
retrieved from the file at random, provided the block length and block
starting record position are known. The block length is expressed in
terms of 4-byte words. For example, a block of 3-group macroscopic cross
sections that contained the total, fission, capture, chi, and nubar
cross sections would have a block length of 15 (3 × 5), assuming that
the cross sections are stored in single precision 4-byte format.</p>
<p>The <em>xfile016</em> file supports 11 different block types. The first seven
block types appear only once in the file, each block type occupying one
of the first seven record positions. The remaining four block types,
types 8–11, are repeated for each branch, at each depletion step,
starting at the eighth record position.</p>
<p>Branch-specific blocks, i.e., block types 8–11, are written in the
following order, for N branch calculations over M depletion steps:</p>
<p>First (t=0) transport calculation, branch 0 (reference state)</p>
<p>First (t=0) transport calculation, branch 1</p>
<p>First (t=0) transport calculation, branch 2</p>
<p></p>
<p>First (t=0) transport calculation, branch N</p>
<p>Second transport calculation, branch 0 (reference state)</p>
<p>Second transport calculation, branch 1</p>
<p>Second transport calculation, branch 2</p>
<p></p>
<p>Second transport calculation, branch N</p>
<p></p>
<p></p>
<p></p>
<p>(M + 1)<sup>th</sup> transport calculation, branch 0 (reference state)</p>
<p>(M + 1)<sup>th</sup> transport calculation, branch 1</p>
<p>(M + 1)<sup>th</sup> transport calculation, branch 2</p>
<p></p>
<p>(M + 1)<sup>th</sup> transport calculation, branch N</p>
<p>Note that (M + 1) × (N + 1) sets are saved for M depletion steps and N
branches. For each set, block types 8 and 9 are always written, whereas
block types 10 and 11 are written only if pin data output was requested
(nx ≠ 0).</p>
<p class="centered">
<strong>Block Type 1: block length data</strong></p><p>Length: 13</p>
<p>Position: 1</p>
<p>Type: integer.</p>
<p>Data: datlen(13)</p>
<p>datlen(1) Length of block type 1 (this array), which is 13.</p>
<p>datlen(2) Number of blocks allocated for this file (1000). Currently not
used.</p>
<p>datlen(3) Length of FORTRAN record for this file (512).</p>
<p>datlen(4) Length of block type 2: general dimensioning data.</p>
<p>datlen(5) Length of block type 3: depletion data.</p>
<p>datlen(6) Length of block type 4: branching data.</p>
<p>datlen(7) Length of block type 5: branching data for advanced branch
block (not yet supported).</p>
<p>datlen(8) Length of block type 6: currently not used.</p>
<p>datlen(9) Length of block type 7: energy group boundaries.</p>
<p>datlen(10) Length of block type 8: cross sections and misc data.</p>
<p>datlen(11) Length of block type 9: corner discontinuity factors.</p>
<p>datlen(12) Length of block type 10: pin power factors.</p>
<p>datlen(13) Length of block type 11: groupwise form factors.</p>
<p class="centered">
<strong>Block Type 2: general dimensioning data</strong></p><p>Length: datlen(4)</p>
<p>Position: 2</p>
<p>Type: integer, unless specified otherwise</p>
<p>Data: brnchdepl, nobranch, nsets, igm, iftg, ndelay, nadf, ncdf, ipin,
nxpin, nypin, ivers, adftype, branchflag</p>
<p>brnchdepl Number of depletion steps + 1.</p>
<p>nobranch Number of branches.</p>
<p>nsets Number of cross-section sets on library (typically 1).</p>
<p>igm Number of energy groups in collapsed cross sections.</p>
<p>iftg First thermal energy group (max upscatter group).</p>
<p>ndelay Number of delayed neutron precursor groups (6).</p>
<p>nadf Number of assembly discontinuity factors (ADFs).</p>
<p>ncdf Number of corner discontinuity factors (CDFs).</p>
<p>ipin Flag for pin data (0 = no pin data, 1 = pin data included).</p>
<p>nxpin Number of pins in x-direction (0 if ipin = 0).</p>
<p>nypin Number of pins in y-direction (0 if ipin = 0).</p>
<p>ivers Format version number. This appendix describes version 5 of the
database structure.</p>
<p>adftype ADF type: (1= single-assembly, 2= reflector, 3= single-assembly
on arbitrary grid lines).</p>
<p>branchflag (logical) TRUE for simple BRANCH block format, FALSE for
advanced format.</p>
<p class="centered">
<strong>Block Type 3: depletion data</strong></p><p>Length: datlen(5)</p>
<p>Position: 3</p>
<p>Type: real</p>
<p>Data: burnup(brnchdepl), time(brnchdepl), power(brnchdepl), sysHMdens</p>
<p>burnup(brnchdepl) Burnup (GWd/MTHM) at each transport step.</p>
<p>time(brnchdepl) Cumulative cycle time (days) at each transport step.</p>
<p>power(brnchdepl) Specific power (MW/MTHM) at each transport step.</p>
<p>sysHMdens System heavy metal mass density (g/cm<sup>3</sup>).</p>
<p class="centered">
<strong>Block Type 4: branching data</strong></p><p>Length: datlen(6)</p>
<p>Position: 4</p>
<p>Type: integer, unless specified otherwise</p>
<p>Data: fuelused, modused, crused, fuelcount, modcount, crcount, crref,
tfref, tmref, mdref, sbref, fuelmix(fuelcount), modmix(modcount),
crinmix(crcount), croutmix(crcount), crstate(nobranch), tfuel(nobranch),
tmod(nobranch), dmod(nobranch), sboron(nobranch)</p>
<p>fuelused (logical) TRUE if fuel mixtures were specified for branches.</p>
<p>modused (logical) TRUE if moderator mixtures were specified for
branches.</p>
<p>crused (logical) TRUE if control rod mixtures were specified for
branches.</p>
<p>fuelcount Number of mixtures in fuel definition.</p>
<p>modcount Number of mixtures in moderator definition.</p>
<p>crcount Number of mixture pairs in control rod definition.</p>
<p>crref Reference control rod state (0/1).</p>
<p>tfref (real) Reference fuel temperature (K).</p>
<p>tmref (real) Reference moderator temperature (K).</p>
<p>mdref (real) Referenced moderator density (g/cm<sup>3</sup>).</p>
<p>sbref (real) Reference soluble boron concentration (ppm).</p>
<p>fuelmix(fuelcount) Mixtures defined as fuel.</p>
<p>modmix(modcount) Mixtures defined as moderator.</p>
<p>crinmix(crcount) Mixtures defined for the control-rod in state.</p>
<p>croutmix(crcount) Mixtures defined for the control-rod out state.</p>
<p>crstate(nobranch) Control rod state (0=withdrawn/1=inserted) for each
branch.</p>
<p>tfuel(nobranch) (real) Fuel temperature (K) for each branch.</p>
<p>tmod(nobranch) (real) Moderator temperature (K) for each branch.</p>
<p>dmod(nobranch) (real) Moderator density (g/cm<sup>3</sup>) for each branch.</p>
<p>sboron(nobranch) (real) Soluble boron concentration (ppm) for each
branch.</p>
<p class="centered">
<strong>Block Type 5: advanced branching data</strong></p><p>Length: datlen(7)</p>
<p>Position: 5</p>
<p>Type: integer</p>
<p>Data: Stores data for advanced branch block (not yet supported)</p>
<p class="centered">
<strong>Block Type 6: currently not used</strong></p><p class="centered">
<strong>Block Type 7: energy group boundary data</strong></p><p>Length: datlen(9)</p>
<p>Position: 7</p>
<p>Type: real</p>
<p>Data: ebnds(igm+1)</p>
<p>ebnds(igm+1) Energy group boundaries</p>
<p>Blocks 1–7 are written only once. Blocks 8 and 9 (plus 10 and 11 if pin
power data is output) are written for each branch case at each depletion
step.</p>
<p class="centered">
<strong>Block Type 8: cross-section data</strong></p><p>Length: datlen(10)</p>
<p>Position: 8 + ( igm + 3 ) [ i * ( nobranch + 1 ) + j ] ) , i = 0,…,
brnchdepl, j = 0,…, nobranch</p>
<p>Type: real</p>
<p>Data: {kinf(i), beta_eff(1:ndelay, i), lam_eff(1:ndelay, i) , y_i135(i),
y_xe135(i), y_pm149(i), id(i), nden(i), aden(i), [sigt(i,j), siga(i,j),
xemac(i,j), smmac(i,j), sigc(i,j), sigf(i,j), sign2n(i,j), sigtr(i,j),
nusigf(i,j), kappaf(i,j), nu(i,j), chi(i,j), diffcoef(i,j), flux(i,j),
sigselas(i,j), sig_xe(i,j), sig_sm (i,j), detfis(i,j), detflx(i,j),
invvel(i,j), sigtr2(i,j), sigtr(i,j), [(adf(i,j,k),
k=1,nadf),(0,k=nadf+1,12), (current(i,j,k), k=1,nadf),(0,k=nadf+1,12) ],
(sigs(i,j,k), k=1,igm), j=1,igm], i=1,nsets}</p>
<p>Data is saved for i = 1,nsets (number of homogenized regions):</p>
<p>kinf(i) k-infinity</p>
<p>beta_eff(1:ndelay,i) Approximate delayed neutron fractions.</p>
<p>lam_eff(1:ndelay,i) Approximate delayed neutron decay constants
(sec:sup:<cite>-1</cite>).</p>
<p>y_i135(i) Fission product yield for <sup>135</sup>I.</p>
<p>y_xe135(i) Fission product yield for <sup>135</sup>Xe.</p>
<p>y_pm149(i) Fission product yield for <sup>149</sup>Pm.</p>
<p>Data is saved for j = 1, igm (number of energy groups):</p>
<p>sigt(i,j) Total cross section (cm:sup:<cite>-1</cite>).</p>
<p>siga(i,j) Effective absorption cross section (cm:sup:<cite>-1</cite>).</p>
<p>xemac(i,j) Macroscopic <sup>135</sup>Xe cross section (cm:sup:<cite>-1</cite>)</p>
<p>smmac(i,j) Macroscopic <sup>149</sup>Sm cross section (cm:sup:<cite>-1</cite>).</p>
<p>sigc(i,j) Capture cross section (cm:sup:<cite>-1</cite>).</p>
<p>sigf(i,j) Fission cross section (cm:sup:<cite>-1</cite>).</p>
<p>sign2n(i,j) Effective n2n cross section (cm:sup:<cite>-1</cite>).</p>
<p>sigtr(i,j) Transport cross section (cm:sup:<cite>-1</cite>), determined by
outscatter approximation.</p>
<p>nusigf(i,j) Average total number of neutrons/fission × fission cross
section (cm:sup:<cite>-1</cite>).</p>
<p>kappaf(i,j) Energy released per capture × capture cross section +</p>
<blockquote>
<div><p>Energy released per fission × fission cross section (J/cm).</p>
</div></blockquote>
<p>nu(i,j) Average total number of neutrons released per fission (delayed +
prompt).</p>
<p>chi(i,j) Fission spectrum (delayed + prompt).</p>
<p>diffcoef(i,j) Diffusion coefficient (cm), 1 / ( 3 × sigtr(i,j) ).</p>
<p>flux(i,j) Average flux (n/cm:sup:<cite>2</cite>-sec).</p>
<p>sigselas(i,j) Total elastic scattering cross section (cm:sup:<cite>-1</cite>).</p>
<p>sig_xe(i,j) Microscopic cross section for <sup>135</sup>Xe (barns).</p>
<p>sig_sm (i,j) Microscopic cross section for <sup>149</sup>Sm (barns).</p>
<p>detfis(i,j) Microscopic <sup>235</sup>U cross section at detector location
(barns).</p>
<p>detflx(i,j) Average flux in detector mixture (n/cm:sup:<cite>2</cite>-sec).</p>
<p>invvel(i,j) Inverse neutron velocity (sec/cm).</p>
<p>sigtr2(i,j) Transport cross section (cm:sup:<cite>-1</cite>), determined by
inscatter approximation.</p>
<p>sigtr(i,j) Transport cross section (cm:sup:<cite>-1</cite>), determined by
outscatter approximation.</p>
<p>adf(1:nadf,i,j) Assembly discontinuity factors for up to 12 faces.</p>
<p>current(1:nadf,i,j) Net current for up to 12 faces (n/cm:sup:<cite>2</cite>-sec),
adftype = 3 only.</p>
<p>sigs(i,j,k), k=1,igm Macroscopic scattering cross section, j k
(cm:sup:<cite>-1</cite>).</p>
<p>End of data saved for j = 1, igm</p>
<p>End of data saved for i = 1,nsets</p>
<p class="centered">
<strong>Block Type 9: corner discontinuity factors</strong></p><p>Length: datlen(11)</p>
<p>Position: 9 + ( igm + 3 ) [ i * ( nobranch + 1 ) + j ] ) , i = 0,…,
brnchdepl, j = 0,…, nobranch</p>
<p>Type: real</p>
<p>Data: (( cdf(i,j), i=1,ncdf), j=1,igm)</p>
<p>Data is saved for i = 1,ncdf (number of “corner” discontinuity factors):</p>
<p>Data is saved for j = 1, igm (number of energy groups):</p>
<p>cdf(i,j) Corner discontinuity factors</p>
<p>End of data saved for j = 1, igm</p>
<p>End of data saved for i = 1,ncdf</p>
<p class="centered">
<strong>Block Type 10: pin power peaking factors</strong></p><p>Length: datlen(12)</p>
<p>Position: 10 + ( igm + 3 ) [ i * ( nobranch + 1 ) + j ] ) , i = 0,…,
brnchdepl, j = 0,…, nobranch</p>
<p>Type: double precision</p>
<p>Data: (( ppf(i,j), i=1,nx), j=1,ny)</p>
<p>Data is saved for j = 1, ny (number of pins in y direction):</p>
<p>Data is saved for i = 1,nx (number of pins in x direction):</p>
<p>ppf(i,j) Pin power (peaking) factors</p>
<p>End of data saved for i = 1, nx</p>
<p>End of data saved for j = 1, ny</p>
<p class="centered">
<strong>Block Type 11: group form factors</strong></p><p>Length: datlen(13)</p>
<p>Position: 10 + k + ( igm + 3 ) [ i * ( nobranch + 1 ) + j ] ) ,</p>
<p>k = 1,…, igm, i = 0,…, brnchdepl, j = 0,…, nobranch</p>
<p>Type: double precision</p>
<p>Data: (( gff(i,j), i=1,nx), j=1,ny)</p>
<p>Data is saved for j = 1,ny (number of pins in y direction):</p>
<p>Data is saved for j = 1, nx (number of pins in x direction):</p>
<p>gff(i,j,k) Groupwise form factors</p>
<p>End of data saved for i = 1, nx</p>
<p>End of data saved for j = 1, ny</p>
<p>NOTE: Block Type 11 is repeated igm times where igm is the number of
energy groups.</p>
<p>It is recommended that code written to process <em>xfile016</em> include the
SCALE subroutine library. Although possible to link in the appropriate
files in the scalelib object library in SCALE, it may be more practical
to copy the appropriate SCALE routines into a new FORTRAN code used in
reading <em>xfile016</em>. All direct-access operations needed to operate on
this file are contained in the file direct_access_M.f90 in the scale
src/scalelib directory. This file has dependencies and requires the
following additional subroutines, all in the <code class="docutils literal notranslate"><span class="pre">src/scalelib</span></code> directory, in
order to compile:</p>
<blockquote>
<div><p>Error_functions_M.f90</p>
<p>common_unit_C.f90</p>
<p>Vast_kind_param_M.f90</p>
<p>separator_character_M.f90</p>
<p>Y0trns_M.f90</p>
<p>f_exit.c</p>
</div></blockquote>
<p>The single C routine can be eliminated by eliminating the call to f_exit
in subroutine stop of Error_function.f90, e.g., change</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>if ( stopcode == 0 ) return
write(npr,&#39;(1x,a,i10)&#39;) &#39;stop code &#39;,stopcode
call f_exit(npr)

end subroutine stop
</pre></div>
</div>
<p>to</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>if ( stopcode == 0 ) return
write(npr,&#39;(1x,a,i10)&#39;) &#39;stop code &#39;,stopcode
write(standard_output,&#39;(a)&#39;)npr
stop

end subroutine stop
</pre></div>
</div>
<p>Alternatively, one can utilize the module listed on the following pages,
developed by Mr. Benjamin Collins of the University of Michigan, which
includes all necessary coding wrapped into a single Fortran module.
Although developed from SCALE 5.1 routines, the format of SCALE direct
access does not change and this source should remain compatible with
later versions of SCALE.</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">module</span> <span class="err">direct_access</span>
<span class="err">!</span>     <span class="err">Module</span> <span class="err">taken</span> <span class="err">from</span> <span class="err">SCALE</span> <span class="m">5</span><span class="err">.</span><span class="m">1</span> <span class="err">source</span> <span class="err">code</span> <span class="err">and</span> <span class="err">modified</span> <span class="err">to</span> <span class="err">eliminate</span>
<span class="err">!</span>     <span class="err">dependencies</span> <span class="err">to</span> <span class="err">other</span> <span class="err">scale</span> <span class="err">modules</span>
<span class="err">!</span>     <span class="err">Ben</span> <span class="err">Collins,</span> <span class="err">Doctoral</span> <span class="err">Candidate,</span> <span class="err">University</span> <span class="err">of</span> <span class="err">Michigan</span>

     <span class="err">implicit</span> <span class="err">none</span>

      <span class="err">private</span>
      <span class="err">integer,private,parameter::number_of_units=</span><span class="m">99</span>
      <span class="err">integer,private::</span> <span class="err">nblks(number_of_units),lblks(number_of_units),char_word(number_of_units)</span>
      <span class="err">integer,private</span> <span class="err">::</span> <span class="err">record_length</span>
      <span class="err">integer,</span> <span class="err">parameter</span> <span class="err">::</span> <span class="err">dp</span> <span class="err">=</span> <span class="err">selected_real_kind(</span><span class="m">14</span><span class="err">)</span>
      <span class="err">integer,public</span> <span class="err">::</span> <span class="err">next(</span><span class="m">3</span><span class="err">),</span> <span class="err">nexsav(</span><span class="m">3</span><span class="err">),</span> <span class="err">nda</span>
      <span class="err">character(len=</span><span class="m">1</span><span class="err">)</span> <span class="err">::</span> <span class="err">separator=</span><span class="s">&#39;/&#39;</span>
<span class="err">!</span> <span class="err">***change</span> <span class="err">separator</span> <span class="err">character</span> <span class="err">to</span> <span class="err">backslash</span> <span class="err">(‘\’)</span> <span class="err">for</span> <span class="err">Windows***</span>
<span class="err">!</span>      <span class="err">character(len=</span><span class="m">1</span><span class="err">)</span> <span class="err">::</span> <span class="err">separator=</span><span class="s">&#39;\&#39;</span>
      <span class="err">public</span> <span class="err">::</span> <span class="err">openda,</span> <span class="err">xtenda,</span> <span class="err">closda,</span> <span class="err">inquir</span>
      <span class="err">public</span> <span class="err">::</span> <span class="err">reed</span>
<span class="err">!</span>
<span class="err">!</span>
<span class="err">!</span>  <span class="err">set</span> <span class="err">chpwrd</span> <span class="err">to</span> <span class="m">1</span> <span class="err">now</span> <span class="err">so</span> <span class="err">that</span> <span class="err">everything</span> <span class="err">is</span> <span class="err">specified</span> <span class="err">in</span> <span class="err">characters</span> <span class="err">rather</span> <span class="err">than</span>
<span class="err">!</span>      <span class="err">in</span> <span class="err">words</span> <span class="err">when</span> <span class="err">reading</span> <span class="err">or</span> <span class="err">writing</span> <span class="err">character</span> <span class="err">arrays</span>
<span class="err">!</span>
      <span class="err">integer,public,parameter::</span> <span class="err">chpwrd=</span><span class="m">1</span>
<span class="err">!</span>
    <span class="err">interface</span> <span class="err">reed</span>
      <span class="err">module</span> <span class="err">procedure</span> <span class="err">real_reed,</span> <span class="err">integer_reed,</span> <span class="err">dp_reed</span>
    <span class="n">end</span><span class="err"> </span><span class="n">interface</span>
</pre></div>
</div>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span>    <span class="err">contains</span>
<span class="err">!</span>
      <span class="err">subroutine</span> <span class="err">openda</span> <span class="err">(</span> <span class="err">nblk,lblk,type,nrr,nunit,optional_name</span> <span class="err">)</span>
<span class="err">!</span>
      <span class="err">integer</span>                   <span class="err">::</span> <span class="err">nblk,lblk,nrr,nunit</span>
      <span class="err">real,dimension(lblk)</span>      <span class="err">::</span> <span class="err">a</span>
      <span class="err">character(len=</span><span class="m">1</span><span class="err">)</span>          <span class="err">::</span> <span class="err">type</span>
      <span class="err">character(len=*),optional</span> <span class="err">::</span> <span class="err">optional_name</span>
      <span class="err">character(len=</span><span class="m">16</span><span class="err">)</span>         <span class="err">::</span> <span class="err">filnam</span>
      <span class="err">character(len=</span><span class="m">512</span><span class="err">)</span>        <span class="err">::</span> <span class="err">dsname</span>
      <span class="err">character(</span><span class="m">10</span><span class="err">)</span>             <span class="err">::</span> <span class="err">action</span>
      <span class="err">logical</span>                   <span class="err">::</span> <span class="err">lopen</span>
      <span class="err">integer</span>                   <span class="err">::</span> <span class="err">i,</span> <span class="err">record_length</span>
<span class="err">!</span>
      <span class="err">if</span> <span class="err">(</span> <span class="err">nunit</span> <span class="err">&lt;=</span> <span class="m">0</span> <span class="err">.or.</span> <span class="err">nunit</span> <span class="err">&gt;=</span> <span class="m">100</span> <span class="err">)</span> <span class="err">then</span>
        <span class="err">stop</span> <span class="s">&#39;da error - invalid unit number: program will terminate.&#39;</span>
      <span class="err">else</span>
        <span class="err">inquire(unit=nunit,opened=lopen)</span>
        <span class="err">if</span> <span class="err">(</span> <span class="err">lopen</span> <span class="err">)</span> <span class="err">then</span>
          <span class="err">stop</span> <span class="s">&#39;da error - unit already open: program will terminate.&#39;</span>
        <span class="n">end</span><span class="err"> </span><span class="n">if</span>
      <span class="n">end</span><span class="err"> </span><span class="n">if</span>
</pre></div>
</div>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">!</span>
      <span class="err">inquire(iolength=record_length)</span> <span class="err">a</span>
      <span class="err">write(filnam,</span><span class="s">&#39;(a,i3.3,a8)&#39;</span><span class="err">)</span> <span class="s">&#39;xfile&#39;</span><span class="err">,nunit,</span><span class="s">&#39; &#39;</span>
      <span class="err">if</span> <span class="err">(</span> <span class="err">present(optional_name)</span> <span class="err">)</span> <span class="err">filnam</span> <span class="err">=</span> <span class="err">optional_name</span>
      <span class="err">if</span> <span class="err">(</span> <span class="err">type</span> <span class="err">==</span> <span class="s">&#39;o&#39;</span> <span class="err">.or.</span> <span class="err">type</span> <span class="err">==</span> <span class="s">&#39;w&#39;</span> <span class="err">)</span> <span class="err">then</span>
        <span class="err">call</span> <span class="err">fulnam(filnam,dsname)</span>
        <span class="err">select</span> <span class="err">case</span> <span class="err">(type)</span>
        <span class="err">case(</span><span class="s">&#39;o&#39;</span><span class="err">)</span>
          <span class="err">action</span> <span class="err">=</span> <span class="s">&#39;read&#39;</span>
        <span class="err">case(</span><span class="s">&#39;w&#39;</span><span class="err">)</span>
          <span class="err">action</span> <span class="err">=</span> <span class="s">&#39;readwrite&#39;</span>
        <span class="n">end</span><span class="err"> </span><span class="n">select</span>
        <span class="err">open(unit=nunit,access=</span><span class="s">&#39;direct&#39;</span><span class="err">,status=</span><span class="s">&#39;old&#39;</span><span class="err">,action=action,</span> <span class="err">&amp;</span>
             <span class="err">form=</span><span class="s">&#39;unformatted&#39;</span><span class="err">,recl=record_length,file=dsname)</span>
        <span class="err">nblks(nunit)</span> <span class="err">=</span> <span class="m">999999</span>
        <span class="err">lblks(nunit)</span> <span class="err">=</span> <span class="err">lblk</span>
        <span class="err">inquire(unit=nunit,opened=lopen)</span>
        <span class="err">if</span> <span class="err">(.not.lopen)</span> <span class="err">then</span>
          <span class="err">stop</span> <span class="s">&#39;da error - unable to open unit: program will terminate.&#39;</span>
        <span class="n">end</span><span class="err"> </span><span class="n">if</span>
      <span class="err">else</span>
        <span class="err">nblks(nunit)</span> <span class="err">=</span> <span class="err">nblk</span>
        <span class="err">lblks(nunit)</span> <span class="err">=</span> <span class="err">lblk</span>
        <span class="err">open(unit=nunit,access=</span><span class="s">&#39;direct&#39;</span><span class="err">,status=</span><span class="s">&#39;replace&#39;</span><span class="err">,</span> <span class="err">&amp;</span>
        <span class="err">form=</span><span class="s">&#39;unformatted&#39;</span><span class="err">,recl=record_length,file=filnam)</span>
        <span class="err">inquire(unit=nunit,opened=lopen)</span>
        <span class="err">if</span> <span class="err">(.not.lopen)</span> <span class="err">then</span>
          <span class="err">stop</span> <span class="s">&#39;da error - unable to open unit: program will terminate.&#39;</span>
        <span class="n">end</span><span class="err"> </span><span class="n">if</span>
      <span class="n">end</span><span class="err"> </span><span class="n">if</span>
      <span class="err">char_word(nunit)</span> <span class="err">=</span> <span class="err">record_length/lblk</span>

      <span class="n">end</span><span class="err"> </span><span class="n">subroutine</span><span class="err"> </span><span class="n">openda</span>
</pre></div>
</div>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">!</span>

      <span class="err">subroutine</span> <span class="err">closda</span> <span class="err">(</span> <span class="err">nunit</span> <span class="err">)</span>
<span class="err">!</span>
      <span class="err">integer::</span> <span class="err">nunit</span>
      <span class="err">logical::</span> <span class="err">lopen</span>
<span class="err">!</span>
      <span class="err">inquire(unit=nunit,opened=lopen)</span>
      <span class="err">if</span> <span class="err">(lopen)</span> <span class="err">close(unit=nunit)</span>
      <span class="err">nblks(nunit)</span> <span class="err">=</span> <span class="m">0</span>
      <span class="err">lblks(nunit)</span> <span class="err">=</span> <span class="m">0</span>

      <span class="n">end</span><span class="err"> </span><span class="n">subroutine</span><span class="err"> </span><span class="n">closda</span>

<span class="err">!</span>

      <span class="err">subroutine</span> <span class="err">real_reed</span> <span class="err">(</span> <span class="err">x,lword,nunit,nrec</span> <span class="err">)</span>
<span class="err">!</span>
      <span class="err">integer::lword,nunit,nrec</span>
      <span class="err">real,dimension(lword)::x</span>
      <span class="err">integer::lb,nb,nr,no,i,nl,j</span>
<span class="err">!</span>
      <span class="err">call</span> <span class="err">check_unit(nunit,</span> <span class="err">lword)</span>
      <span class="err">lb</span>     <span class="err">=</span> <span class="err">lblks(nunit)</span>
      <span class="err">nb</span>     <span class="err">=</span> <span class="err">(lword+lb-</span><span class="m">1</span><span class="err">)/lb</span>
      <span class="err">nr</span>     <span class="err">=</span> <span class="err">nrec</span>
      <span class="err">no</span>     <span class="err">=</span> <span class="m">1</span>
      <span class="err">do</span> <span class="err">i=</span><span class="m">1</span><span class="err">,nb</span>
        <span class="err">if</span> <span class="err">(</span> <span class="err">nr</span> <span class="err">&lt;=</span> <span class="m">0</span> <span class="err">.or.</span> <span class="err">nr</span> <span class="err">&gt;</span> <span class="err">nblks(nunit)</span> <span class="err">)</span> <span class="err">then</span>
          <span class="err">call</span> <span class="err">print_rel_blk</span> <span class="err">(</span> <span class="err">nunit,</span> <span class="err">nr</span> <span class="err">)</span>
        <span class="n">end</span><span class="err"> </span><span class="n">if</span>
        <span class="err">nl</span>     <span class="err">=</span> <span class="err">min(no+lb-</span><span class="m">1</span><span class="err">,lword)</span>
        <span class="n">read</span><span class="err"> (</span><span class="n">nunit</span><span class="err">,</span><span class="n">rec</span><span class="err">=</span><span class="n">nr</span><span class="err">) (</span><span class="n">x</span><span class="err">(</span><span class="n">j</span><span class="err">),</span><span class="n">j</span><span class="err">=</span><span class="n">no</span><span class="err">,</span><span class="n">nl</span><span class="err">)</span>
        <span class="err">nr</span>     <span class="err">=</span> <span class="err">nr</span> <span class="err">+</span> <span class="m">1</span>
        <span class="err">no</span>     <span class="err">=</span> <span class="err">nl</span> <span class="err">+</span> <span class="m">1</span>
      <span class="n">end</span><span class="err"> </span><span class="n">do</span>

      <span class="n">end</span><span class="err"> </span><span class="n">subroutine</span><span class="err"> </span><span class="n">real</span><span class="err">_</span><span class="n">reed</span>
</pre></div>
</div>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">!</span>

      <span class="err">subroutine</span> <span class="err">integer_reed</span> <span class="err">(</span> <span class="err">nnx,lword,nunit,nrec</span> <span class="err">)</span>
<span class="err">!</span>
      <span class="err">integer::lword,nunit,nrec</span>
      <span class="err">integer,dimension(lword)::nnx</span>
      <span class="err">integer::lb,nb,nr,no,i,nl,j</span>
<span class="err">!</span>
      <span class="err">call</span> <span class="err">check_unit(nunit,</span> <span class="err">lword)</span>
      <span class="err">lb</span>     <span class="err">=</span> <span class="err">lblks(nunit)</span>
      <span class="err">nb</span>     <span class="err">=</span> <span class="err">(lword+lb-</span><span class="m">1</span><span class="err">)/lb</span>
      <span class="err">nr</span>     <span class="err">=</span> <span class="err">nrec</span>
      <span class="err">no</span>     <span class="err">=</span> <span class="m">1</span>
      <span class="err">do</span> <span class="err">i=</span><span class="m">1</span><span class="err">,nb</span>
        <span class="err">if</span> <span class="err">(</span> <span class="err">nr</span> <span class="err">&lt;=</span> <span class="m">0</span> <span class="err">.or.</span> <span class="err">nr</span> <span class="err">&gt;</span> <span class="err">nblks(nunit)</span> <span class="err">)</span> <span class="err">then</span>
          <span class="err">call</span> <span class="err">print_rel_blk</span> <span class="err">(</span> <span class="err">nunit,</span> <span class="err">nr</span> <span class="err">)</span>
        <span class="n">end</span><span class="err"> </span><span class="n">if</span>
        <span class="err">nl</span>     <span class="err">=</span> <span class="err">min(no+lb-</span><span class="m">1</span><span class="err">,lword)</span>
        <span class="n">read</span><span class="err"> (</span><span class="n">nunit</span><span class="err">,</span><span class="n">rec</span><span class="err">=</span><span class="n">nr</span><span class="err">) (</span><span class="n">nnx</span><span class="err">(</span><span class="n">j</span><span class="err">),</span><span class="n">j</span><span class="err">=</span><span class="n">no</span><span class="err">,</span><span class="n">nl</span><span class="err">)</span>
        <span class="err">nr</span>     <span class="err">=</span> <span class="err">nr</span> <span class="err">+</span> <span class="m">1</span>
        <span class="err">no</span>     <span class="err">=</span> <span class="err">nl</span> <span class="err">+</span> <span class="m">1</span>
      <span class="n">end</span><span class="err"> </span><span class="n">do</span>

      <span class="n">end</span><span class="err"> </span><span class="n">subroutine</span><span class="err"> </span><span class="n">integer</span><span class="err">_</span><span class="n">reed</span>
</pre></div>
</div>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">!</span>

      <span class="err">subroutine</span> <span class="err">dp_reed</span> <span class="err">(</span> <span class="err">x,lword,nunit,nrec</span> <span class="err">)</span>
<span class="err">!</span>
      <span class="err">integer::lword,nunit,nrec</span>
      <span class="err">real(dp),dimension(:)::x</span>
      <span class="err">integer::lb,nb,nr,no,i,nl,j,lwrd</span>
<span class="err">!</span>
      <span class="err">lwrd</span>   <span class="err">=</span> <span class="err">ubound(x,</span><span class="m">1</span><span class="err">)</span>
      <span class="err">call</span> <span class="err">check_unit(nunit,</span> <span class="err">lwrd)</span>
      <span class="err">lb</span>     <span class="err">=</span> <span class="err">lblks(nunit)/</span><span class="m">2</span>
      <span class="err">nb</span>     <span class="err">=</span> <span class="err">(lwrd+lb-</span><span class="m">1</span><span class="err">)/lb</span>
      <span class="err">nr</span>     <span class="err">=</span> <span class="err">nrec</span>
      <span class="err">no</span>     <span class="err">=</span> <span class="m">1</span>
      <span class="err">do</span> <span class="err">i=</span><span class="m">1</span><span class="err">,nb</span>
        <span class="err">if</span> <span class="err">(</span> <span class="err">nr</span> <span class="err">&lt;=</span> <span class="m">0</span> <span class="err">.or.</span> <span class="err">nr</span> <span class="err">&gt;</span> <span class="err">nblks(nunit)</span> <span class="err">)</span> <span class="err">then</span>
          <span class="err">call</span> <span class="err">print_rel_blk</span> <span class="err">(</span> <span class="err">nunit,</span> <span class="err">nr</span> <span class="err">)</span>
        <span class="n">end</span><span class="err"> </span><span class="n">if</span>
        <span class="err">nl</span>     <span class="err">=</span> <span class="err">min(no+lb-</span><span class="m">1</span><span class="err">,lwrd)</span>
        <span class="n">read</span><span class="err"> (</span><span class="n">nunit</span><span class="err">,</span><span class="n">rec</span><span class="err">=</span><span class="n">nr</span><span class="err">) (</span><span class="n">x</span><span class="err">(</span><span class="n">j</span><span class="err">),</span><span class="n">j</span><span class="err">=</span><span class="n">no</span><span class="err">,</span><span class="n">nl</span><span class="err">)</span>
        <span class="err">nr</span>     <span class="err">=</span> <span class="err">nr</span> <span class="err">+</span> <span class="m">1</span>
        <span class="err">no</span>     <span class="err">=</span> <span class="err">nl</span> <span class="err">+</span> <span class="m">1</span>
      <span class="n">end</span><span class="err"> </span><span class="n">do</span>

      <span class="n">end</span><span class="err"> </span><span class="n">subroutine</span><span class="err"> </span><span class="n">dp</span><span class="err">_</span><span class="n">reed</span>
</pre></div>
</div>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">!</span>

      <span class="err">subroutine</span> <span class="err">inquir</span> <span class="err">(</span> <span class="err">nunit,nrec</span> <span class="err">)</span>
<span class="err">!</span>
      <span class="err">integer::nunit,nrec</span>
<span class="err">!</span>
      <span class="err">inquire(unit=nunit,nextrec=nrec)</span>

      <span class="n">end</span><span class="err"> </span><span class="n">subroutine</span><span class="err"> </span><span class="n">inquir</span>

<span class="err">!</span>

      <span class="err">subroutine</span> <span class="err">xtenda</span> <span class="err">(</span> <span class="err">mblk,nunit</span> <span class="err">)</span>
         <span class="err">integer::mblk,nunit</span>
         <span class="err">integer::lblk</span>
         <span class="err">lblk</span> <span class="err">=</span> <span class="err">lblks(nunit)</span>
         <span class="err">nblks(nunit)</span> <span class="err">=</span> <span class="err">nblks(nunit)</span> <span class="err">+</span> <span class="err">mblk</span>
      <span class="n">end</span><span class="err"> </span><span class="n">subroutine</span><span class="err"> </span><span class="n">xtenda</span>

<span class="err">!</span>

      <span class="err">subroutine</span> <span class="err">check_unit(nunit,</span> <span class="err">lword)</span>

      <span class="err">integer</span> <span class="err">::</span> <span class="err">nunit,</span> <span class="err">lword</span>
      <span class="err">logical</span> <span class="err">::</span> <span class="err">lopen</span>
      <span class="err">character(len=</span><span class="m">10</span><span class="err">)::access</span>
<span class="err">!</span>
      <span class="err">inquire(unit=nunit,opened=lopen,access=access)</span>
      <span class="err">if</span> <span class="err">(.not.lopen)</span> <span class="err">then</span>
        <span class="err">stop</span> <span class="s">&#39;da error - unit not open: program will terminate.&#39;</span>
      <span class="err">else</span>
        <span class="err">if</span> <span class="err">(</span> <span class="err">lword</span> <span class="err">&lt;=</span> <span class="m">0</span> <span class="err">)</span> <span class="err">then</span>
          <span class="err">stop</span> <span class="s">&#39;da error - invalid block length: program will terminate.&#39;</span>
        <span class="n">end</span><span class="err"> </span><span class="n">if</span>
      <span class="n">end</span><span class="err"> </span><span class="n">if</span>

      <span class="n">end</span><span class="err"> </span><span class="n">subroutine</span><span class="err"> </span><span class="n">check</span><span class="err">_</span><span class="n">unit</span>
</pre></div>
</div>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">!</span>

      <span class="err">subroutine</span> <span class="err">print_rel_blk</span> <span class="err">(</span> <span class="err">unit,</span> <span class="err">block</span> <span class="err">)</span>

      <span class="err">integer</span> <span class="err">::</span> <span class="err">unit,</span> <span class="err">block</span>
      <span class="err">stop</span> <span class="s">&#39;da error - relative block not in data set: program will terminate.&#39;</span>

      <span class="n">end</span><span class="err"> </span><span class="n">subroutine</span><span class="err"> </span><span class="n">print</span><span class="err">_</span><span class="n">rel</span><span class="err">_</span><span class="n">blk</span>

        <span class="err">subroutine</span> <span class="err">fulnam</span> <span class="err">(</span> <span class="err">filnam,</span> <span class="err">name</span> <span class="err">)</span>

<span class="err">!</span>   <span class="err">routine</span> <span class="err">to</span> <span class="err">convert</span> <span class="err">a</span> <span class="err">simple</span> <span class="err">file</span> <span class="err">name</span> <span class="err">to</span> <span class="err">a</span> <span class="err">full</span> <span class="err">path</span>

      <span class="err">character(len=*)</span>   <span class="err">::</span> <span class="err">filnam</span>
      <span class="err">character(len=</span><span class="m">512</span><span class="err">)</span> <span class="err">::</span> <span class="err">data_path</span>
      <span class="err">character(len=</span><span class="m">4</span><span class="err">)</span>   <span class="err">::</span> <span class="err">data=</span><span class="s">&#39;DATA&#39;</span>
      <span class="err">character(len=</span><span class="m">512</span><span class="err">)</span> <span class="err">::</span> <span class="err">current_path</span>
      <span class="err">character(len=</span><span class="m">6</span><span class="err">)</span>   <span class="err">::</span> <span class="err">curdir=</span><span class="s">&#39;PWD&#39;</span>
      <span class="err">character(len=</span><span class="m">16</span><span class="err">)</span>  <span class="err">::</span> <span class="err">short_name</span>
      <span class="err">character(len=</span><span class="m">512</span><span class="err">)</span> <span class="err">::</span> <span class="err">name,</span> <span class="err">data_path_name,</span> <span class="err">current_path_name,</span> <span class="err">full_path_name</span>
      <span class="err">logical</span>            <span class="err">::</span> <span class="err">exists,</span> <span class="err">found</span>
      <span class="err">integer</span>            <span class="err">::</span> <span class="err">n</span><span class="m">99</span><span class="err">=</span><span class="m">99</span><span class="err">,</span> <span class="err">iostat</span>

<span class="err">!</span>   <span class="err">check</span> <span class="err">if</span> <span class="err">filnam</span> <span class="err">already</span> <span class="err">has</span> <span class="err">path</span>
      <span class="err">if</span> <span class="err">(index(filnam(</span><span class="m">1</span><span class="err">:</span><span class="m">3</span><span class="err">),separator)</span> <span class="err">&gt;</span> <span class="m">0</span> <span class="err">)</span> <span class="err">then</span>
         <span class="err">name</span> <span class="err">=</span> <span class="err">filnam</span>
         <span class="err">return</span>
      <span class="n">end</span><span class="err"> </span><span class="n">if</span>
<span class="err">!</span>   <span class="err">get</span> <span class="err">the</span> <span class="err">scale</span> <span class="err">data</span> <span class="err">and</span> <span class="err">tmpdir</span> <span class="err">directory</span> <span class="err">paths</span> <span class="err">from</span> <span class="err">environmental</span> <span class="err">variables</span>
      <span class="err">data_path</span>          <span class="err">=</span> <span class="s">&#39; &#39;</span>
      <span class="err">current_path</span>       <span class="err">=</span> <span class="s">&#39; &#39;</span>
      <span class="err">data_path_name</span>     <span class="err">=</span> <span class="err">filnam</span>
      <span class="err">current_path_name</span>  <span class="err">=</span> <span class="err">filnam</span>
      <span class="err">call</span> <span class="err">getenv</span> <span class="err">(</span> <span class="err">data,</span> <span class="err">data_path</span> <span class="err">)</span>
      <span class="err">call</span> <span class="err">getenv</span> <span class="err">(</span> <span class="err">curdir,</span> <span class="err">current_path</span> <span class="err">)</span>
</pre></div>
</div>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">!</span>   <span class="err">construct</span> <span class="err">the</span> <span class="err">full</span> <span class="err">path</span> <span class="err">name</span> <span class="err">for</span> <span class="err">the</span> <span class="err">dataset</span> <span class="err">name</span>
      <span class="err">if</span> <span class="err">(</span>    <span class="err">data_path</span> <span class="err">/=</span> <span class="s">&#39; &#39;</span> <span class="err">)</span>     <span class="err">data_path_name</span> <span class="err">=</span> <span class="err">(trim(data_path))//separator//filnam</span>
      <span class="err">if</span> <span class="err">(</span> <span class="err">current_path</span> <span class="err">/=</span> <span class="s">&#39; &#39;</span> <span class="err">)</span> <span class="err">current_path_name</span>  <span class="err">=</span> <span class="err">(trim(current_path))//separator//filnam</span>

<span class="err">!</span>   <span class="err">if</span> <span class="err">the</span> <span class="err">dataset</span> <span class="err">exists</span> <span class="err">in</span> <span class="err">the</span> <span class="err">current</span> <span class="err">directory</span> <span class="err">(tmpdir),</span> <span class="err">use</span> <span class="err">it</span>
<span class="err">!</span>   <span class="err">otherwise,</span> <span class="err">look</span> <span class="err">for</span> <span class="err">it</span> <span class="err">in</span> <span class="err">the</span> <span class="err">data</span> <span class="err">directory</span>
      <span class="err">inquire</span> <span class="err">(file=filnam,exist=exists)</span>
      <span class="err">if</span> <span class="err">(</span> <span class="err">exists</span> <span class="err">)</span> <span class="err">then</span>
            <span class="err">name</span> <span class="err">=</span> <span class="err">current_path_name</span>
      <span class="err">else</span>
<span class="err">!</span>   <span class="err">check</span> <span class="err">names</span> <span class="err">constructed</span> <span class="err">in</span> <span class="err">script</span>
         <span class="err">inquire</span> <span class="err">(file=</span><span class="s">&#39;data_directory&#39;</span><span class="err">,exist=exists)</span>
         <span class="err">found</span> <span class="err">=</span> <span class="err">.false.</span>
         <span class="err">if</span> <span class="err">(</span> <span class="err">exists</span> <span class="err">)</span> <span class="err">then</span>
            <span class="err">open(n</span><span class="m">99</span><span class="err">,status=</span><span class="s">&#39;old&#39;</span><span class="err">,form=</span><span class="s">&#39;formatted&#39;</span><span class="err">,file=</span><span class="s">&#39;data_directory&#39;</span><span class="err">)</span>
            <span class="err">rewind</span> <span class="err">n</span><span class="m">99</span>
            <span class="err">do</span>
               <span class="n">read</span><span class="err"> (</span><span class="n">n</span><span class="err">99,*,</span><span class="n">iostat</span><span class="err">=</span><span class="n">iostat</span><span class="err">) </span><span class="n">short</span><span class="err">_</span><span class="n">name</span><span class="err">, </span><span class="n">full</span><span class="err">_</span><span class="n">path</span><span class="err">_</span><span class="n">name</span>
               <span class="err">if</span> <span class="err">(</span> <span class="err">iostat</span> <span class="err">/=</span> <span class="m">0</span> <span class="err">)</span> <span class="err">exit</span>
               <span class="err">if</span> <span class="err">(</span> <span class="err">short_name</span> <span class="err">==</span> <span class="err">filnam</span> <span class="err">)</span> <span class="err">then</span>
                  <span class="err">name</span>  <span class="err">=</span> <span class="err">full_path_name</span>
                  <span class="err">found</span> <span class="err">=</span> <span class="err">.true.</span>
               <span class="n">end</span><span class="err"> </span><span class="n">if</span>
            <span class="n">end</span><span class="err"> </span><span class="n">do</span>
         <span class="n">end</span><span class="err"> </span><span class="n">if</span>
         <span class="err">close</span> <span class="err">(n</span><span class="m">99</span><span class="err">)</span>
         <span class="err">if</span> <span class="err">(</span> <span class="err">found</span> <span class="err">)</span> <span class="err">return</span>
         <span class="err">inquire</span> <span class="err">(file=data_path_name,exist=exists)</span>
         <span class="err">if</span> <span class="err">(</span> <span class="err">exists</span> <span class="err">)</span> <span class="err">then</span>
            <span class="err">name</span> <span class="err">=</span> <span class="err">data_path_name</span>
         <span class="err">else</span>
            <span class="err">name</span> <span class="err">=</span> <span class="err">current_path_name</span>
         <span class="n">end</span><span class="err"> </span><span class="n">if</span>
      <span class="n">end</span><span class="err"> </span><span class="n">if</span>

      <span class="n">end</span><span class="err"> </span><span class="n">subroutine</span><span class="err"> </span><span class="n">fulnam</span>

      <span class="n">end</span><span class="err"> </span><span class="n">module</span><span class="err"> </span><span class="n">direct</span><span class="err">_</span><span class="n">access</span>
</pre></div>
</div>
</div>
<div class="section" id="the-flexible-branch-block">
<span id="c"></span><h2>The Flexible Branch Block<a class="headerlink" href="#the-flexible-branch-block" title="Permalink to this headline"></a></h2>
<p>In support of various projects, the “flexible branch block” was
developed to enable a broader set of perturbations than are available in
the typical TRITON branch capability. The typical branch block allows
the user to define a single set of mixtures for ‘fuel,’ ‘mod,’ ‘crout’,
or ‘crin’. Having only four material set definitions limits user’s
ability to specify more complex perturbations that may be possible in
some reactors, especially under transient conditions. The flexible
branch block was developed such that the user can specify any number of
material sets, and then apply separate perturbations to those sets. This
capability, for example, enables specification of bypass flow density
branches in BWRs in which the in-channel coolant and out-channel
moderator can set to different densities in the same branch calculation.</p>
<p>The flexible branch block was developed in the SCALE 6.1 implementation
of TRITON and was not modernized for SCALE 6.2. As a result, the
flexible branch block is available in SCALE 6.1 and in the legacy mode
in SCALE 6.2. The legacy mode can be accessed using <em>t-d</em> as the
sequence name, rather than the more typical <em>t-depl</em>. The flexible
branch block can be accessed using <strong>branchblock</strong> as the block name,
rather than <strong>branch</strong> that is used for the typical branch block.</p>
<p>The following section of the manual explains the syntax of the
<strong>branchblock</strong> and contains short examples of each element within the
the <strong>branchblock</strong>. At the end of this section, a full example of a
<strong>branchblock</strong> is provided so that users can gain an understanding of
how to use all of the parts of the <strong>branchblock</strong> in order to define
needed calculation branches.</p>
<p>SYNTAX:</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="n">read</span><span class="err"> </span><span class="n">branchblock</span>
  <span class="err">[block</span> <span class="err">keyword</span> <span class="err">specifications]</span>
<span class="n">end</span><span class="err"> </span><span class="n">branchblock</span>
</pre></div>
</div>
<p>The advanced <strong>branchblock</strong> supports five different keyword
specifications described below.</p>
<ul class="simple">
<li><p><strong>mixset</strong> – used to define a set of mixtures which can be used in
<strong>swap</strong> and <strong>perturbset</strong> definition,</p></li>
<li><p><strong>systemchange</strong> – used to define a system change to, temperatures,
nuclide concentrations, and Dancoff factors,</p></li>
<li><p><strong>swap</strong> - used to define a set of mixtures to swap,</p></li>
<li><p><strong>perturbset</strong> – used to define a set of perturbations which apply
the system changes defined by <strong>systemchange</strong> to a set of mixtures,
and</p></li>
<li><p><strong>branch</strong> – used to define a branch calculation, composed of various
<strong>swaps</strong> and <strong>perturbsets</strong>. Additional perturbations may also be
defined.</p></li>
</ul>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Several keywords in the*<strong>branchblock</strong><em>are defined using
strings. These strings must be must be delimited, i.e. starts and ends
with an identifying marker. (Examples: ``title=”cold”``, ``title=#hot``
``Doppler#``, ``title=!40%void!``, ``title=(80%void)``). As shown in the following
examples, the string can optionally start with open angle bracket &lt; and
end with a closing angle bracket &gt; (Example: ``title=&lt;cold&gt;``). All
string-value inputs in the</em><strong>branchblock</strong><em>are delimited,
alphanumeric strings with a maximum length of 80 characters. It is
recommended that users choose a single type of delimiter, and then use
that delimiter throughout the **branchblock*</em></p>
</div>
<p class="centered">
<strong>systemchange</strong></p><p>SYNTAX:</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="n">read</span><span class="err"> </span><span class="n">branchblock</span>
  <span class="err">[...]</span>
  <span class="err">systemchange</span> <span class="err">title</span>
    <span class="err">[systemchange</span> <span class="err">keyword</span> <span class="err">specifications]</span>
  <span class="n">end</span><span class="err"> </span><span class="n">systemchange</span>
  <span class="err">[...]</span>
<span class="n">end</span><span class="err"> </span><span class="n">branchblock</span>
</pre></div>
</div>
<p><strong>systemchange</strong> supports the following keyword specifications:</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">title</span>
<span class="err">dancoff=(real</span> <span class="err">value)</span>
<span class="err">temperature=(real</span> <span class="err">value)</span>
<span class="err">dendiv</span> <span class="err">N</span><span class="m">1</span> <span class="err">f</span><span class="m">1</span> <span class="err">N</span><span class="m">2</span> <span class="err">f</span><span class="m">2</span> <span class="n">end</span>
<span class="err">denmult</span> <span class="err">N</span><span class="m">1</span> <span class="err">f</span><span class="m">1</span> <span class="err">N</span><span class="m">2</span> <span class="err">f</span><span class="m">2</span> <span class="n">end</span>
</pre></div>
</div>
<p><strong>title</strong> is required string input and must follow <strong>systemchange</strong>.
Only one title keyword may be specified. Multiple <strong>systemchange</strong>
specifications are allowed, so each specification must have a unique
<strong>title</strong>.</p>
<p><strong>dancoff</strong> is optional and is used to set a dancoff factor value in the
interval [0,1]. Only one dancoff specification is allowed and can appear
anywhere in the <strong>systemchange</strong> specification following the title.</p>
<p><strong>temperature</strong> is optional and is used to set a system temperature in
Kelvin. It must be nonnegative. Only one temperature specification is
allowed and can appear anywhere in the <strong>systemchange</strong> specification
following the title.</p>
<p><strong>dendiv</strong> and <strong>denmult</strong> are keyword arrays used to define nuclide
concentration dividers and multipliers respectively. The arrays must be
terminated with the <strong>end</strong> keyword. Each array is defined by a series
of nuclide/factor pairs where nuclide is the ZZZAAA identifier and
factor is either a multiply or divide factor applied to that nuclide
concentration (Note that the particular mixture for which the factor is
applied is defined in the <strong>perturb</strong> specification described below).
Multiply factors must be &gt;=0. Divide factors must be &gt;0. A nuclide
identifier set to zero implies that the factor is applied to all
nuclides that are not explicitly listed in the array. Multiple dendiv
and denmult arrays are allowed and can appear anywhere in the
<strong>systemchange</strong> specification following the title. TRITON applies the
concentration factors in the order in which they are entered in the
systemchange specification.</p>
<p>Multiple <strong>systemchange</strong> specifications are allowed in the branch
block. They can appear in any order, but must have a unique title.</p>
<p>EXAMPLE:</p>
<p>Define a temperature change to 60 kelvin. (The temperature change will
be applied to a set of mixtures defined in the <strong>perturbset</strong>
specification defined later.)</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">systemchange</span> <span class="err">&lt;</span><span class="m">60</span><span class="err">C&gt;</span>
  <span class="err">temperature=</span><span class="m">333</span><span class="err">.</span><span class="m">15</span>
<span class="n">end</span><span class="err"> </span><span class="n">systemchange</span>
</pre></div>
</div>
<p class="centered">
<strong>swap</strong></p><p>SYNTAX:</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="n">read</span><span class="err"> </span><span class="n">branchblock</span>
  <span class="err">[...]</span>
  <span class="err">swap</span> <span class="err">title</span>
    <span class="err">[swap</span> <span class="err">keyword</span> <span class="err">specifications]</span>
  <span class="n">end</span><span class="err"> </span><span class="n">swap</span>
  <span class="err">[...]</span>
<span class="n">end</span><span class="err"> </span><span class="n">branchblock</span>
</pre></div>
</div>
<p><strong>swap</strong> supports the following keyword specifications:</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">title</span>
<span class="err">group</span><span class="m">1</span> <span class="err">[mixture</span> <span class="err">specifications]</span> <span class="n">end</span>
<span class="err">group</span><span class="m">2</span> <span class="err">[mixture</span> <span class="err">specifications]</span> <span class="n">end</span>
</pre></div>
</div>
<p><strong>title</strong> is required string and must follow <strong>swap</strong>. Only one title
keyword may be specified. Multiple <strong>swap</strong> specifications are allowed,
so each specification must have a unique <strong>title</strong>.</p>
<p><strong>group1</strong> and <strong>group2</strong> are used to define a set of mixtures to
exchange. <strong>group1</strong> must follow the <strong>swap</strong> title. <strong>group2</strong> must
follow <strong>group1</strong>. Only one specification for each group is allowed and
they must have the same number of mixtures.</p>
<p>The <strong>group1</strong> and <strong>group2</strong> keywords support the following keyword
specifications:</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">mixture=(integer</span> <span class="err">value)</span>
<span class="err">mixtures</span> <span class="err">I</span><span class="m">1</span> <span class="err">I</span><span class="m">2</span> <span class="err">...</span> <span class="err">IN</span> <span class="n">end</span>
<span class="err">mixset=(string</span> <span class="err">value)</span>
</pre></div>
</div>
<p><strong>mixture</strong> is used to define a single mixture. <strong>mixtures</strong> is used to
define an array of mixtures and is terminated with the <strong>end</strong> keyword.
<strong>mixset</strong> is used to substitute a <strong>mixset</strong> specification defined
elsewhere in the branchblock. Multiple <strong>mixture</strong>, <strong>mixtures</strong>, and
<strong>mixset</strong> are allowed and can be placed in any order. TRITON will
remove any duplicated mixture identifier, however each mixture must be
defined in the model input.</p>
<p>EXAMPLES:</p>
<p>Exchange material 1 for 4.</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">swap</span> <span class="err">&lt;</span><span class="m">1</span> <span class="err">for</span> <span class="m">4</span><span class="err">&gt;</span>
  <span class="err">group</span><span class="m">1</span> <span class="err">mixture=</span><span class="m">1</span> <span class="n">end</span>
  <span class="err">group</span><span class="m">2</span> <span class="err">mixtures</span> <span class="m">4</span> <span class="n">end</span><span class="err"> </span><span class="n">end</span>
<span class="n">end</span><span class="err"> </span><span class="n">swap</span>
</pre></div>
</div>
<p>Exchange a set of mixtures:</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">swap</span> <span class="err">&lt;RodInsertion&gt;</span>
  <span class="err">group</span><span class="m">1</span> <span class="err">mixset=&lt;crout&gt;</span> <span class="n">end</span>
  <span class="err">group</span><span class="m">2</span> <span class="err">mixset=&lt;crin&gt;</span> <span class="n">end</span>
<span class="n">end</span><span class="err"> </span><span class="n">swap</span>
</pre></div>
</div>
<p class="centered">
<strong>branch</strong></p><p>SYNTAX:</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="n">read</span><span class="err"> </span><span class="n">branchblock</span>
  <span class="err">[...]</span>
  <span class="err">branch</span> <span class="err">title</span>
    <span class="err">[branch</span> <span class="err">keyword</span> <span class="err">specifications]</span>
  <span class="n">end</span><span class="err"> </span><span class="n">branch</span>
  <span class="err">[...]</span>
<span class="n">end</span><span class="err"> </span><span class="n">branchblock</span>
</pre></div>
</div>
<p><strong>branch</strong> supports the following keyword specifications.</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">title</span>
<span class="err">swap=(string</span> <span class="err">value)</span>
<span class="err">perturbset=(string</span> <span class="err">value)</span>
<span class="err">perturb</span> <span class="err">[perturb</span> <span class="err">specification]</span> <span class="n">end</span>
</pre></div>
</div>
<p><strong>title</strong> is required string and must follow <strong>branch</strong>. Only one title
keyword may be specified. Multiple <strong>branch</strong> specifications are
allowed, so each specification must have a unique <strong>title</strong>.</p>
<p><strong>swap</strong> is used to swap different sets of mixtures. The swap value is a
string which is the title of a <strong>swap</strong> specification defined elsewhere
in the branchblock. (The <strong>swap</strong> specification is described below).
Multiple <strong>swap</strong> specifications are allowed and can appear anywhere in
the <strong>branch</strong> specification following the title.</p>
<p><strong>perturbset</strong> is used to apply a series of system perturbations. The
perturbset value is a string which is the title of a <strong>perturbset</strong>
specification defined elsewhere in the branchblock. (The <strong>perturbset</strong>
specification is described below). Multiple <strong>perturbset</strong>
specifications are allowed and can appear anywhere in the <strong>branch</strong>
specification following the title.</p>
<p><strong>perturb</strong> is used to apply a system perturbation that is not defined
through the use of a <strong>perturbset</strong> specification. <strong>perturb</strong>
specifications must terminate with the <strong>end</strong> keyword.</p>
<p><strong>perturb</strong> supports the following keyword specifications.</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="err">change=(string</span> <span class="err">value)</span>
<span class="err">mixture=(integer</span> <span class="err">value)</span>
<span class="err">mixtures</span> <span class="err">I</span><span class="m">1</span> <span class="err">I</span><span class="m">2</span> <span class="err">...</span> <span class="err">IN</span> <span class="n">end</span>
<span class="err">mixset=(string</span> <span class="err">value)</span>
</pre></div>
</div>
<p><strong>change</strong> is a string which is the title of a <strong>systemchange</strong>
specification defined elsewhere in the branchblock. Only one <strong>change</strong>
specification is allowed and may appear anywhere in the <strong>perturb</strong>
specification.</p>
<p>The system change is applied to a set of mixtures defined by the
<strong>mixture</strong>, <strong>mixtures</strong>, and <strong>mixset</strong> specifications. Only one of
each of these keywords is allowed (however all three may be used in the
same <strong>perturb</strong> specification). <strong>mixture</strong>, <strong>mixtures</strong>, and
<strong>mixset</strong> may be placed in any order. TRITON will remove any duplicated
mixture, however each mixture must be defined in the model input. TRITON
will perform <strong>swap</strong> and <strong>perturb</strong> operations in the order they
appear in the input.</p>
<p>EXAMPLES:</p>
<p>Define a branch to charactize the rodded, cold-zero-power condition.
This requires the use of mixture swap entitled &lt;CRodIn&gt; along with the
perturbset definition &lt;ColdMod&gt; which perturbs all of the moderator
mixtures to a cold temperature and density. The fuel mixtures (defined
as &lt;FuelMix&gt;) must also be set to a temperature of 300K.</p>
<div class="highlight-scale notranslate"><div class="highlight"><pre><span></span><span class="n">read</span><span class="err"> </span><span class="n">branchblock</span>
  <span class="err">[...]</span>  <span class="err">(contains</span> <span class="err">definitions</span> <span class="err">for</span> <span class="err">&lt;CRodIn&gt;,</span> <span class="err">&lt;FuelMix&gt;,</span> <span class="err">and</span> <span class="err">&lt;ColdMod&gt;)</span>
  <span class="err">branch</span> <span class="err">&lt;CZP,rodded&gt;</span>
    <span class="err">perturbset=&lt;ColdMod&gt;</span> <span class="err">swap=&lt;CRodIn&gt;</span>
    <span class="err">perturb</span> <span class="err">change=&lt;</span><span class="m">300</span><span class="err">K&gt;</span> <span class="err">mixset=&lt;FuelMix&gt;</span> <span class="n">end</span>
  <span class="n">end</span><span class="err"> </span><span class="n">branch</span>
  <span class="err">systemchange</span> <span class="err">&lt;</span><span class="m">300</span><span class="err">K&gt;</span> <span class="err">temperature=</span><span class="m">300</span> <span class="n">end</span><span class="err"> </span><span class="n">systemchange</span>
<span class="n">end</span><span class="err"> </span><span class="n">branchblock</span>
For faster browsing, not all history is shown. View entire blame