forked from KDSource/KDSource
-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.t4
184 lines (167 loc) · 3.35 KB
/
template.t4
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
// Data file for TRIPOLI-4
// *: Choose one or more options
// #: Choose between exclusionary options
// <KWORD>: Replace with keyword
// Define problem geometry
GEOMETRY
TITLE title
* TYPE num(type) // Geometric element to be used in combinatory definition of volume
Definition for type num(type)
...
* SURF num(surf ) // Surface to be used to build volume
Definition for surface num(surf )
...
VOLU num(volu) // Problem volumes
Definition for volume num(volu)
ENDV
...
POSITION x y z // Returns volume which (x,y,z) belongs to
COLOR
Colormap
GRAPH // Graph on 2D cut. It is recommended to plot tally regions
x0 y0 z0
0 0 1 1 0 0
Lz Lx
4 // Show plot and save as .ps
ENDGEOM
// Assign area or volume values
VOLSURF
* SURFACE nb(surfaces)
numvol 1 (1) numvol 2 (1) surface(1)
...
numvol 1 (n) numvol 2 (n) surface(n)
* VOLUME nb(volumes)
numvol(1) volume(1)
...
numvol(n) volume(n)
END_VOLSURF
// Boundary conditions. Default: leakage
BOUNDARY_CONDITION nb(conditions)
num(vol1) <TYPE_CONDITION>
num(face1)
...
num(voln) <TYPE_CONDITION>
num(facen)
END BOUNDARY_CONDITION
// Compositions (materials) present in the problem
COMPOSITION nb(compositions)
* FILE
<ELECTRONIC_PROPERTIES>
temperature name(compo)
filename
* POINT_WISE
<ELECTRONIC_PROPERTIES>
temperature name(compo)
Composition data
...
* DENSITY
<ELECTRONIC_PROPERTIES>
temperature name(compo)
Composition data
...
* MULTIGROUP_HOMOGENEOUS
temperature name(compo)
Composition data
...
* MULTIGROUP
temperature name(compo)
Composition data
...
* MULTIGROUP_DENSITY
temperature name(compo)
Composition data
...
END_COMPOSITION
// Assign compositions to volumes
GEOMCOMP
name-compo(1) nb-volu(1)
volu(1). . . volu[nb-volu(1)]
...
name-compo(n) nb-volu(n)
volu(1). . . volu[nb-volu(n)]
END_GEOMCOMP
// Sources (puntual, factoriz o ext) in the problem
SOURCES_LIST nb(sources)
NORM norm(list)
SOURCE
Description of first source
...
SOURCE // External source
INTENSITY 1
ALL_PARTICLE
EXTERNAL source.so
PARAM 2
BATCH, SIZE
...
SOURCE
Description of last source
END_SOURCES
END_SOURCES_LIST
// Physical magnitudes to record
RESPONSES nb(responses)
NAME <name1>
<type1> <particle1>
<additional data>
...
NAME <nameN>
<typeN> <particleN>
<additional data>
END_RESPONSES
// Energy, angle and time grids to record RESPONSES
GRID_LIST nb(grids)
name(grid 1 )
nb(bounds)
bound(1). . . bound(n)
...
name(grid n )
nb(bounds)
bound(1). . . bound(n)
END_GRID_LIST
// Definition of regions and grids to record RESPONSES
SCORE nb(scores)
...
// Example score
NAME score_name
response_name
TRACK
GRID energy_grid_name
EXTENDED_MESH
WINDOW
x0 y0 z0
x1 y1 z1
Nx Ny Nz
FRAME CARTESIAN
0 0 0
1 0 0
0 1 0
0 0 1
...
END_SCORE
// Record particle lists
STORAGE nb(storage)
...
storage_name
LIMIT_SIZE 1024
NEUTRON
Emax Emin
FRONTIER LIST nb(frontier)
vol11 vol12
vol21 vol22
...
...
END_STORAGE
// Simulation parameters
SIMULATION
BATCH nb(batches)
SIZE nb(particles per batch)
PARTICLE nb(types of particles) <TYPE_OF_PARTICLES>
# SHIELDING
# CRITICALITY
DISCARD nb(batches to be eliminated)
KIJ_MATRIX
# FIXED_SOURCES_CRITICALITY
# MULTIPLE
MONITORING 0 // Avoid initial monitoring batch
// Optional parameters
...
END_SIMULATION