summaryrefslogtreecommitdiff
path: root/doc/IGE344/SectSCR.tex
blob: 8589f8572305387da3fa00862db1c1de7f679beb (plain)
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
\subsection{The {\tt SCR:} module}\label{sect:SCRData}

This component of DONJON is dedicated to the interpolation of
{\sc macrolib} data from a {\sc saphyb} object, the reactor database produced by module {\tt SAP:}
in DRAGON or by module {\tt SAPHYB:} in APOLLO2.\cite{apollo2} A set of {\sl global parameters} are defined for each material mixture and
used as multi-dimensional interpolation variables.

\vskip 0.02cm

The calling specifications are:

\begin{DataStructure}{Structure \dstr{SCR:}}
\dusa{MLIB}~\moc{:=}~\moc{SCR:}~$[~\{$~\dusa{MLIB} $|$ \dusa{MLIB2}~$\}~]$ \dusa{SAPNAM1} $[[$~\dusa{SAPNAM2}~$]]~[$~\dusa{MAPFL}~$]$~\moc{::}~\dstr{scr\_data} \\
\end{DataStructure}

\noindent where
\begin{ListeDeDescription}{mmmmmmm}

\item[\dusa{MLIB}] {\tt character*12} name of a {\sc microlib} (type {\tt L\_LIBRARY}) or {\sc macrolib} (type {\tt L\_MACROLIB}) containing the interpolated data.
If this object also appears on the RHS of structure \dstr{SCR:}, it is open in modification mode and updated.

\item[\dusa{MLIB2}] {\tt character*12} name of an optional {\sc microlib} object whose content is copied on \dusa{MLIB}.

\item[\dusa{SAPNAM1}] {\tt character*12} name of the {\sc lcm} object containing the
{\sc saphyb} data structure ({\tt L\_SAPHYB} signature).

\item[\dusa{SAPNAM2}] {\tt character*12} name of an additional {\sc lcm} object containing an auxiliary
{\sc saphyb} data structure ({\tt L\_SAPHYB} signature). This object is optional.

\item[\dusa{MAPFL}] {\tt character*12} name of the {\sc map} object containing fuel regions description, global parameter
information (burnup, fuel/coolant temperatures, coolant density, etc). Keyword \moc{TABLE} is expected in \dstr{scr\_data}.

\item[\dusa{scr\_data}] input data structure containing interpolation information (see \Sect{descscr}).

\end{ListeDeDescription}

Note: {\sc saphyb} files generated by APOLLO2 don't have a signature. If such a {\sc saphyb} is given as input
to module {\tt SCR:}, a signature must be included before using it. The following instruction
can do the job:
\begin{verbatim}
Saphyb := UTL: Saphyb :: CREA SIGNATURE 3 = 'L_SA' 'PHYB' ' ' ;
\end{verbatim}

\subsubsection{Interpolation data input for module {\tt SCR:}}\label{sect:descscr}

\vskip -0.5cm

\begin{DataStructure}{Structure \dstr{scr\_data}}
$[$~\moc{EDIT} \dusa{iprint}~$]$ \\
$[$~\moc{RES} $]~[$~\moc{PURE}~$]~[$~\moc{UPS}~$]$ \\
$[~\{$~\moc{MACRO}~$|$~\moc{MICRO}~$\}~]~[~\{$~\moc{LINEAR}~$|$~\moc{CUBIC}~$\}~]~[$~\moc{LEAK}~\dusa{b2}~$]~[$~\moc{EQUI}~\dusa{TEXT4}~$]~[$~\moc{MASL}~\dusa{TEXT4}~$]$ \\
$[$~\moc{NMIX} \dusa{nmixt}~$]$ \\
$\{~[[$~\moc{SAPHYB} \dusa{SAPNAM} \dstr{descints}~$]]~|~[[$~\moc{TABLE} \dusa{SAPNAM} $[$ \dusa{namburn} $[$ \dusa{naval} $]~]$ \dstr{descints}~$]]~\}$ \\
$[$ \dstr{descdepl} $]$ \\
{\tt ;}
\end{DataStructure}

\noindent where
\begin{ListeDeDescription}{mmmmmmmm}

\item[\moc{EDIT}] keyword used to set \dusa{iprint}.

\item[\dusa{iprint}] index used to control the printing in module {\tt SCR:}. =0 for no print; =1 for minimum printing (default value).
 
\item[\moc{RES}] keyword indicating that the interpolation is done only for the microscopic cross sections and not for the isotopic densities. In this case, a RHS {\sc microlib} must be defined and the number densities are recovered from it. This option is useful for micro-depletion applications. {\bf Important note:} It is possible to force interpolation of some isotopic densities with \moc{RES} option if these
isotopes are explicitely specified with a ``\moc{*}'' flag after \moc{MICRO} keyword in \dusa{descints} input data structure (see \Sect{descints}).

\item[\moc{PURE}] keyword indicating that the interpolation is a pure linear combination of terp factors. The fission spectra are {\sl not}
renormalized. By default, non-linear effects are produced by renormalization operations.

\item[\moc{UPS}] keyword to specify that the macrolib and/or microlib cross sections recovered from a Saphyb are
corrected so as to eliminate up-scattering. This option is useful for reactor analysis codes which cannot
take into account such cross sections.

\item[\moc{MACRO}] keyword indicating that \dusa{MLIB} is a {\sc macrolib} (default option).

\item[\moc{MICRO}] keyword indicating that \dusa{MLIB} is a {\sc microlib}. Object \dusa{MLIB} contains an embedded {\sc macrolib}, but the CPU time required to obtain it is longer.

\item[\moc{LINEAR}] keyword indicating that interpolation of the {\sc saphyb} uses linear Lagrange polynomials (default option).

\item[\moc{CUBIC}] keyword indicating that interpolation of the {\sc saphyb} uses the Ceschino method
with cubic Hermite polynomials, as presented in Ref.~\citen{Intech2011}.

\item[\moc{LEAK}] keyword used to introduce leakage in the embedded {\sc macrolib}. This option should only be used for non-regression tests.

\item[\dusa{b2}] the imposed buckling corresponding to the leakage.

\item[\moc{EQUI}] keyword used to select a SPH factor set in the Saphyb. By default, the cross sections and diffusion coefficients
are not SPH-corrected.

\item[\moc{MASL}] keyword used to recover the heavy metal density in the local parameter data of the Saphyb. 

\item[\dusa{TEXT4}] character*4 user-defined keyword of the SPH factor set or heavy metal density selected in the Saphyb. These sets are stored as local parameter information in the Saphyb.

\item[\moc{NMIX}] keyword used to define the maximum number of material mixtures. This information is required only if \dusa{MLIB} is created.

\item[\dusa{nmixt}] the maximum number of mixtures (a mixture is characterized by a distinct set of 
macroscopic cross sections) the {\sc macrolib} may contain. The default value is \dusa{nmixt} $=0$ or the value recovered from \dusa{MLIB} if it appears on the RHS
of structure \dstr{scr\_data}.

\item[\moc{SAPHYB}] keyword used to set \dusa{SAPNAM} and to define each global parameter.

\item[\moc{TABLE}] keyword used to set \dusa{SAPNAM} and to recover some global parameter from a {\sc map} object named \dusa{MAPFL}.

\item[\dusa{SAPNAM}] {\tt character*12} name of the {\sc lcm} object containing the
{\sc saphyb} data structure where the interpolation is performed. This name must be set in the RHS of structure \dstr{SCR:}.

\item[\dusa{namburn}] {\tt character*4} name of the parameter for burnup (or irradiation).
This value is defined if option \moc{TABLE} is set {\sl and} if burnup (or irradiation) is to be considered as parameter.

\item[\dusa{naval}] {\tt character*4} identification name corresponding to the basic naval-coordinate position of the assembly where burnups are recovered. The axial burnup distribution of this assembly is
used for interpolation. {\tt SIM} option should be set in module {\tt RESINI:} (see Sect.~\ref{sect:resinimain}). This option is useful to interpolate reflector properties as a function of the
neighbour fuel assembly burnup. By default, burnup values of the interpolated fuel assembly are used.

\item[\dusa{descints}] input data structure containing interpolation information relative to the {\sc saphyb} data structure named \dusa{SAPNAM} (see \Sect{descints}).

\item[\dstr{descdepl}] input structure describing the depletion chain (see \Sect{descdepld}). This input structure requires option \moc{MICRO}. By
default, the depletion chain data is not written in the output {\sc microlib}.

\end{ListeDeDescription}

\subsubsection{Defining global parameters}\label{sect:descints}

\vskip -0.5cm

If a {\sc map} object is defined on the RHS of structure \dstr{SCR:}, and if the \moc{TABLE} keyword is set, some information required to set the interpolation points is found in this object.
In this case, the {\tt SCR:} operator search the {\sc saphyb} object for global parameters  having an arbitrary name specified in the {\sc map} object or set directly in this module.
Note that any parameter's value set directly in this module prevails on a value stored in the \dusa{MAPFL} object.

Each instance of \dusa{descints} is a data structure specified as

\begin{DataStructure}{Structure \dstr{descints}}
$[[$~\moc{MIX} \dusa{imix}~$[~\{$~\moc{FROM}~\dusa{imixold}~$|$~\moc{USE}~$\}~]$ \\
~~~~~~$[~\{$~\moc{TIMAV-BURN} $|$ \moc{INST-BURN} $|$ \moc{AVG-EX-BURN}~\dusa{ivarty}~$\}~]$ \\
~~~~~~$[[~\{$~\moc{SET} $|$ \moc{DELTA} $|$ \moc{ADD}~$\}~\}~[~\{$ \moc{LINEAR} $|$ \moc{CUBIC}~$\}~]$ \dusa{PARKEY} $\{$~\dusa{val1} $|$ \moc{MAP}~$\}~[~\{$~\dusa{val2} $|$ \moc{MAP}~$\}~]$ \\
~~~~~~~~~~~~$[$~\moc{REF} $[[$~\dusa{PARKEY}~$\{$~\dusa{valref} $|$ \moc{SAMEASREF}~$\}$~$]]$~\moc{ENDREF}~$]~]]$  \\
~~~~~~$[$~\moc{MICRO}~$\{$~\moc{ALL} $|$ \moc{ONLY}~$\}~[[$~\dusa{HISO} $\{$ \dusa{conc} $|$ \moc{*} $\}~[$ \moc{NOEV} $]~]]~]$ \\
\moc{ENDMIX}~$]]$
\end{DataStructure}

\noindent where
\begin{ListeDeDescription}{mmmmmmmm}

\item[\moc{MIX}] keyword used to set \dusa{imix}. Discontinuity factor information present in the Saphyb is interpolated as mixture~1 values.

\item[\dusa{imix}] index of the mixture that is to be created in the {\sc microlib} and {\sc macrolib}.

\item[\moc{FROM}] keyword used to set the index of the mixture in the {\sc saphyb} object.

\item[\dusa{imixold}] index of the mixture that is recovered in the {\sc saphyb} object. By default, \dusa{imixold}$=1$.

\item[\moc{USE}] keyword used to set the index of the mixture in the {\sc saphyb} object equal to \dusa{imix}.

\item[\moc{TIMAV-BURN}] keyword used to compute time-averaged cross-section information. This option is available {\sl only if} a \dusa{MAPFL} object is set.
By default, the type of calculation (\moc{TIMAV-BURN} or \moc{INST-BURN}) is recovered from the \dusa{MAPFL} object.

\item[\moc{INST-BURN}] keyword used to compute cross-section information at specific bundle burnups. This option is available {\sl only if} a \dusa{MAPFL} object is set.
By default, the type of calculation (\moc{TIMAV-BURN} or \moc{INST-BURN}) is recovered from the \dusa{MAPFL} object.

\item[\moc{AVG-EX-BURN}] keyword used to compute the derivatives of cross-section information relative to the exit burnup of a single combustion zone. The derivatives are computed using Eq.~(3.3) of Ref.~\citen{chambon}, written as
$$
{\partial \bar\Sigma_x\over \partial B_j^{\rm e}}={1\over B_j^{\rm e}\, (B_{j,k}^{\rm eoc}-B_{j,k}^{\rm boc})}
\left[- \int_{B_{j,k}^{\rm boc}}^{B_{j,k}^{\rm eoc}}dB \, \Sigma_x(B)+B_{j,k}^{\rm eoc}\, \Sigma_x(B_{j,k}^{\rm eoc})-B_{j,k}^{\rm boc}\, \Sigma_x(B_{j,k}^{\rm boc})\right]
$$

\noindent where $B_{j,k}^{\rm boc}$, $B_{j,k}^{\rm eoc}$, and $B_j^{\rm e}$ are the beginning of cycle burnup of bundle $\{j,k\}$, end of cycle burnup of bundle $\{j,k\}$ and exit burnup of channel $j$. This option is available {\sl only if} a \dusa{MAPFL} object is set.
By default, the type of calculation (\moc{TIMAV-BURN} or \moc{INST-BURN}) is recovered from the \dusa{MAPFL} object.

\item[\dusa{ivarty}] index of the combustion zone for differentiation of cross-section information.

\item[\moc{SET}] keyword used to indicate a simple interpolation at \dusa{val1} or an averaging between \dusa{val1} and \dusa{val2}. The result $\sigma_{\rm ref}$ is also used as the reference value when the \moc{ADD} is used. Note: see at the ending note of this section for a detailed description and examples.

\item[\moc{DELTA}] keyword used to indicate a delta-sigma calculation between \dusa{val2} and \dusa{val1}
(i.e., $\Delta\sigma_{\rm ref}=\sigma_{\rm val2}-\sigma_{\rm val1}$ is computed). This keyword can be used only once in each mixture data block (initiated
with a \moc{MIX} keyword). Note: see at the ending note of this section for a detailed description and examples.

\item[\moc{ADD}] keyword used to indicate a delta-sigma calculation between \dusa{val2} and \dusa{val1} is added to the reference value
(i.e., $\Delta\sigma=\sigma_{\rm val2}-\sigma_{\rm val1}$ is used as contribution, $\sigma_{\rm ref}+\Delta\sigma$ or $\Delta\sigma_{\rm ref}+\Delta\sigma$ is returned). Note: see at the ending note of this section for a detailed description and examples.

\item[\moc{LINEAR}] keyword indicating that interpolation of the {\sc saphyb} for parameter \dusa{PARKEY} uses linear Lagrange
polynomials. It is possible to set different interpolation modes to different parameters. By default, the interpolation mode is set in Sect.~\ref{sect:descscr}.

\item[\moc{CUBIC}] keyword indicating that interpolation of the {\sc saphyb} for parameter \dusa{PARKEY} uses the Ceschino method
with cubic Hermite polynomials, as presented in Ref.~\citen{Intech2011}. By default, the interpolation mode is set in Sect.~\ref{sect:descscr}.

\item[\dusa{PARKEY}] {\tt character*12} user-defined keyword associated to a global
parameter to be set.

\item[\dusa{val1}] value of a global parameter used to interpolate.  \dusa{val1} is the initial value of this parameter in case an average is required. \dusa{val1} can be an integer, real or string value.

\item[\dusa{val2}] value of the final global parameter. By default, a simple interpolation is performed, so that \dusa{val2}$=$\dusa{val1}. \dusa{val2} is always a real value with \dusa{val2}$\ge$\dusa{val1}.

\item[\moc{MAP}] keyword used to indicate that the value of parameter \dusa{val1} or the second value for the $\Delta\sigma$ calculation is
recovered from \dusa{MAPFL}, i.e. the {\sc map} object containing fuel regions description.

\item[\moc{REF}] keyword only available together with the \moc{ADD} option. It is used to set all the other variable values when a $\Delta$ contribution is performed for one variable.  

\item[\dusa{valref}] value of the reference parameter, when it is directly given by the user. Note that there is no default value.

\item[\moc{SAMEASREF}] keyword used to specify that the reference value will be the same as in the refence case, i.e. for the $\sigma_{\rm ref}$ computation.

\item[\moc{ENDREF}] keyword only available together with the \moc{ADD} option. It is used to specify that all the other variable values which are required are given.  

\item[\moc{MICRO}] keyword used to set the number densities of some isotopes present in the {\sc saphyb} object. The data statement ``\moc{MICRO} \moc{ALL}" is used by default.

\item[\moc{ALL}] keyword to indicate that all the isotopes present in the  {\sc saphyb} object will be used in the {\sc microlib} and {\sc macrolib} objects. Concentrations of these isotopes will be recovered from the {\sc saphyb} object or set using
the ``\dusa{HISO} \dusa{conc}" data statement.

\item[\moc{ONLY}] keyword to indicate that only the isotopes set using the ``\dusa{HISO} \dusa{conc}" data statement will be used in the {\sc microlib} and {\sc macrolib} objects.

\item[\dusa{HISO}] {\tt character*8} name of an isotope.

\item[\dusa{conc}] user-defined value of the number density (in $10^{24}$ particles per ${\rm cm}^3$) of the isotope.

\item[\moc{*}] the value of the number density for isotope \dusa{HISO} is recovered from the {\sc saphyb} object.

\item[\moc{NOEV}] keyword to force the isotope \dusa{HISO} to be non-depleting.

\item[\moc{ENDMIX}] end of specification keyword for the material mixture.

\end{ListeDeDescription}

\subsubsection{Depletion data structure}\label{sect:descdepld}

Part of the depletion data used in the isotopic depletion calculation (the fission yields and the
radioactive decay constants) is recovered from the Saphyb file. Remaining depletion data is
recovered from the input data structure \dstr{descdepl}. This data describes the heredity of the radioactive decay
and the neutron activation chain.

\begin{DataStructure}{Structure \dstr{descdepl}}
\moc{CHAIN} \\
\hskip 0.3cm $[[$ \dusa{NAMDPL} $[$ \dusa{izae} $]$ \\
\hskip 0.6cm $[[$ \dusa{reaction} $[$ \dusa{energy} $]~]]$ \\
\hskip 0.6cm $[~\{$ \moc{STABLE} $|$ \moc{FROM} $[[~\{$ \moc{DECAY} $|$ \dusa{reaction} $\}$
$[[$ \dusa{yield} \dusa{NAMPAR} $]]~]]~\}~]~]]$\\
\moc{ENDCHAIN}
\end{DataStructure}

\noindent
with:

\begin{ListeDeDescription}{mmmmmm}

\item[\moc{CHAIN}] keyword to specify the beginning of the depletion chain.

\item[\dusa{NAMDPL}] {\tt character*12} name of an isotope (or isomer) of the
depletion chain that appears as a particularized isotope of the Saphyb.

\item[\dusa{izae}] optional six digit integer representing the isotope. The first two
digits represent the atomic number of the isotope; the next three indicate its
mass number and the last digit indicates the  excitation level of the nucleus (0
for a nucleus in its ground state, 1 for an isomer in its first exited state,
etc.). For example, $^{238}$U in its ground state will be represented by
\dusa{izae}=922380.

\item[\dusa{reaction}] {\tt character*6} identification of a neutron-induced
reaction that takes place either for production of this isotope, its depletion,
or for producing energy. Example of reactions are following:

\begin{ListeDeDescription}{mmmmmmmm}
\item[\moc{NG}] indicates that a radiative capture reaction takes place either
for production of this isotope, its depletion or for producing energy.

\item[\moc{N2N}] indicates that the following reaction is taking place:
$$ n +^{A}X_Z \to 2 n + ^{A-1}X_Z$$

\item[\moc{N3N}] indicates that the following reaction is taking place:
$$ n +^{A}X_Z \to 3 n + ^{A-2}X_Z$$

\item[\moc{N4N}] indicates that the following reaction is taking place:
$$ n +^{A}X_Z \to 4 n + ^{A-3}X_Z$$

\item[\moc{NP}] indicates that the following reaction is taking place:
$$ n +^{A}X_Z \to p + ^AY_{Z-1}$$

\item[\moc{NA}] indicates that the following reaction is taking place:
$$ n +^{A}X_Z \to ^4{\rm He}_2 + ^{A-3}X_{Z-2}$$

\item[\moc{NFTOT}] indicates that a fission is taking place.
\end{ListeDeDescription}

\item[\dusa{energy}] energy (in MeV) recoverable per neutron-induced
reaction of type \dusa{reaction}. If the energy associated to radiative capture
is not explicitely given, it should be added to the energy released per fission. By
default, \dusa{energy}=0.0 MeV.

\item[\moc{STABLE}] non depleting isotope. Such an isotope may produces
energy by neutron-induced reactions (such as radiative capture).

\item[\moc{FROM}] indicates that this isotope is produced from decay or
neutron-induced reactions.

\item[\moc{DECAY}] indicates that a decay reaction takes place for its
production.

\item[\dusa{yield}] branching ratio or production yield expressed in fraction.

\item[\dusa{NAMPAR}] {\tt character*12} name of the a parent isotope
(or isomer) that appears as a particularized isotope of the Saphyb.

\item[\moc{ENDCHAIN}] keyword to specify the end of the depletion chain.

\end{ListeDeDescription}


\subsubsection{Interpolation in the parameter grid}

The following example corresponds to a delta-sigma computation in mixture 1 corresponding to a perturbation. Note that in this case, the \moc{MACROLIB} object  may content negative cross-section. 
\begin{verbatim}
MACROLIB := SCR: SAP ::
   EDIT 40 NMIX 1 SAPHYB SAP
   MIX 1  !(* delta sigma contribution *)
          SET 'CELL' '3D'
          DELTA 'PITCH' 0.0 1.0
   ENDMIX
;
\end{verbatim}

When the number of parameters used for the interpolation is increased, all the lattice computations corresponding to all the combinations of parameters may not be done for computation time reasons. In this case, some approximations may be required. The choice for the \moc{SET}, \moc{DELTA} and \moc{ADD} is then dependent of the structure of the database (i.e. how the database grid of possibilities is filled). When a {\sc map} object containing fuel regions description is used, the problem become even more complex, because values have to be automatically changed for all bundles. In order to clarify all the different possibilities and limitations dependently of the database structure, we will use a 3 parameter case. The paramaters are referenced by 'A', 'B' and 'C'. But before we explain the different cases, we want to remind that the interpolation factors are computed on each axis seperatly.

The first case corresponds to a complete grid, represented by a gray paralepiped on Fig. \ref{figNCRGRIDINS} and \ref{figNCRGRIDTA}. The
figure \ref{figNCRGRIDINS} shows that the interpolated value in point $V$ can be obtained directly without {\sc map} object. For time-average (TA) computation, lets assume that the parameter 'B' represents the burnup (and keep this convention for other database structure also). In this case the figure \ref{figNCRGRIDTA} shows also that the direct interpolation can be done to compute an average value between the points $V'$ and $V$. Note that the TA burnups are stored in the {\sc map} object, and are then recovered automatically.

The second case corresponds to a partial grid where all the lattice computations have been perfomed for several pairs of parameters, which are represented as the gray rectangles on Fig. \ref{figNCRPLANEINS} and \ref{figNCRPLANETA}. If we use the notations of Fig. \ref{figNCRPLANEINS} and \ref{figNCRPLANETA}, the best estimate interpolated values, $f$, we can get are given by: \\
$f=f(V)~\approx~f(V_B)+(f(V_{BA})-f(V_B))+(f(V_{BC})-f(V_B))=f(V_{BC})+(f(V_{BA})-f(V_B))=f(V_{BA})+(f(V_{BC})-f(V_B))$ for instataneous\\
$f=f(V',V)~\approx~f(V'_B,V_B)+(f(V'_{BA},V_{BA})-f(V'_B,V_B))+(f(V'_{BC},V_{BC})-f(V'_B,V_B))=f(V'_{BC},V_{BC})+(f(V'_{BA},V_{BA})-f(V'_B,V_B))=f(V'_{BA},V_{BA})+(f(V'_{BC},V_{BC})-f(V'_B,V_B))$ for TA\\
~~~~where $f(.,.)$ represents the average value between two points.

The third case corresponds to a minimal grid, where the lattice computations have been perfomed only for one parameter variation at a time. In this case, the grid is represented by the thick gray lines on the axis on Fig. \ref{figNCRAXEINS} and \ref{figNCRAXETA}. If we use the notations of Fig. \ref{figNCRAXEINS} and \ref{figNCRAXETA}, the best estimate interpolated values, $f$, we can get are given by: \\
$f=f(V)~\approx~f(V_0)+(f(V_A)-f(V_0))+(f(V_B)-f(V_0))+(f(V_C)-f(V_0))=f(V_B)+(f(V_A)-f(V_0))+(f(V_C)-f(V_0))$ for instataneous\\
$f=f(V',V)~\approx~f(V'_B,V_B)+(f(V_A)-f(V_0))+(f(V_C)-f(V_0))$ for TA\\
Note that the reference point ($V_0$ in the example) does not have to be the same for all parameters. Database structures such as represented on Fig \ref{figNCRAXEINSbis} can also been used. In this case, we even have two choices for the $\Delta f$ computation on axis 'A'. 

The last case is in fact a mix of cases 2 and 3. The gray rectangle and the gray line on Fig. \ref{figNCRPLAXINS} and \ref{figNCRPLAXTA} reprensent where all the lattice computations have been performed. With the notations used on those figures, one can write that the best estimate interpolated values, $f$, we can get are given by: \\
$f=f(V)~\approx~f(V_B)+(f(V_{BC})-f(V_B))+(f(V_A)-f(V_0))=f(V_{BC})+(f(V_A)-f(V_0))$ for instataneous\\
$f=f(V',V)~\approx~f(V'_B,V_B)+(f(V'_{BC},V_{BC})-f(V'_B,V_B))+(f(V_A)-f(V_0))=f(V'_{BC},V_{BC})+(f(V_A)-f(V_0))$ for TA\\
Note once again that the reference point ($V_0$ in the example) does not have to be the same for all parameters. Database structures such as represented on Fig \ref{figNCRPLAXINSbis} can also been used.
\clearpage

The input files will actually reflect the previous equations. However, they are different if the parameters are stored in a {\sc map} object, \dusa{MAPFL}, or provided directly by the user. For the case of one point interpolation (i.e. instantaneous), the input files will be: \\

\begin{center}
\tablefirsthead{%
\hline
case & all parameters explicitly set & all parameters in {\sc map}\\
\hline}
\tablehead{%
%\hline
%\multicolumn{3}{|l|}{\small\sl continued from previous page}\\
\hline
case & all parameters explicitly set & all parameters in {\sc map}\\
\hline}
\tabletail{%
\hline
\multicolumn{3}{|r|}{\small\sl continued on next page}\\
\hline}
\tablelasttail{\hline}
\bottomcaption{SCR inputs for instantaneous cases}

\begin{supertabular}{|p{0.1\textwidth}|p{0.4\textwidth}|p{0.4\textwidth}|}
%\begin{tabular}{|p{0.1\textwidth}|p{0.4\textwidth}|p{0.4\textwidth}|}
%\hline
%case & all parameters explicitly set & all parameters in {\sc map}\\
\hline
GRID (Fig. \ref{figNCRGRIDINS}) 
& \begin{verbatim}
MACROLIB := SCR: SAP ::
   NMIX 1 
   SAPHYB SAP
   MIX 1 
      SET 'A' <<va>>
      SET 'B' <<vb>>
      SET 'C' <<vc>>
   ENDMIX
;
\end{verbatim} 
& \begin{verbatim}
MACROLIB := SCR: SAP FMAP ::
   NMIX 1
   TABLE SAP 'B' 
   MIX 1 
   ENDMIX
;
\end{verbatim} \\
\hline
PLANE (Fig. \ref{figNCRPLANEINS}) & 
\begin{verbatim}
MACROLIB := SCR: SAP ::
   NMIX 1
   SAPHYB SAP
   MIX 1 
      SET 'A' <<va>>
      SET 'B' <<vb>>
      SET 'C' <<vc0>>
      ADD 'C' <<vc0>> <<vc>>
         REF  'A' <<va0>> 
              'B' <<vb>> ENDREF
!or           'B' SAMEASREF ENDREF
   ENDMIX
;
\end{verbatim} &
\begin{verbatim}
MACROLIB := SCR: SAP FMAP ::
   NMIX 1
   TABLE SAP 'B' 
   MIX 1 
      SET 'C' <<vc0>>
      ADD 'C' <<vc0>> MAP
         REF  'A' <<va0>> 
              'B' SAMEASREF ENDREF
!or   SET 'A' <<va0>>
!or   ADD 'A' <<va0>> MAP
!or      REF  'C' <<vc0>> 
!or           'B' SAMEASREF ENDREF
   ENDMIX
;
\end{verbatim} \\
\hline
%\end{tabular}
%
%\begin{tabular}{|p{0.1\textwidth}|p{0.4\textwidth}|p{0.4\textwidth}|}
%\hline
%case & all parameters explicitly set & all parameters in {\sc map}\\
%\hline
AXE (Fig. \ref{figNCRAXEINS}) & 
\begin{verbatim}
MACROLIB := SCR: SAP ::
   NMIX 1 
   SAPHYB SAP
   MIX 1 
      SET 'A' <<va0>>
      SET 'B' <<vb>>
      SET 'C' <<vc0>>
      ADD 'A' <<va0>> <<va>>
         REF  'C' <<vc0>> 
              'B' <<vb0>> ENDREF
      ADD 'C' <<vc0>> <<vc>>
         REF  'A' <<va0>> 
              'B' <<vb0>> ENDREF
   ENDMIX
;
\end{verbatim} &
\begin{verbatim}
MACROLIB := SCR: SAP FMAP ::
   NMIX 1
   TABLE SAP 'B' 
   MIX 1 
      SET 'A' <<va0>>
      SET 'C' <<vc0>>
      ADD 'A' <<va0>> MAP
         REF  'C' <<vc0>> 
              'B' <<vb0>> ENDREF
      ADD 'C' <<vc0>> MAP
         REF  'A' <<va0>> 
              'B' <<vb0>> ENDREF
   ENDMIX
;
\end{verbatim} \\
\hline
PLANE + AXE (Fig. \ref{figNCRPLAXINS}) & 
\begin{verbatim}
MACROLIB := SCR: SAP ::
   NMIX  
   SAPHYB SAP
   MIX 1 
      SET 'A' <<va0>>
      SET 'B' <<vb>>
      SET 'C' <<vc>>
      ADD 'A' <<va0>> <<va>>
         REF  'C' <<vc0>> 
              'B' <<vb0>> ENDREF
   ENDMIX
;
\end{verbatim} &
\begin{verbatim}
MACROLIB := SCR: SAP FMAP ::
   NMIX 1
   TABLE SAP 'B' 
   MIX 1 
      SET 'A' <<va0>>
      ADD 'A' <<va0>> MAP
         REF  'C' <<vc0>> 
              'B' <<vb0>> ENDREF
   ENDMIX
;
\end{verbatim} \\
\hline
%\end{tabular}
\end{supertabular}
\end{center}

For the TA, the burnup variable has no other choice than to be stored in the {\sc map} object, \dusa{MAPFL}. Then the input files will be: \\

\begin{center}
\tablefirsthead{%
\hline
case & only the burnup in {\sc map} & all parameters in {\sc map}\\
\hline}
\tablehead{%
%\hline
%\multicolumn{3}{|l|}{\small\sl continued from previous page}\\
\hline
case & only the burnup in {\sc map} & all param. in {\sc map}\\
\hline}
\tabletail{%
\hline
\multicolumn{3}{|r|}{\small\sl continued on next page}\\
\hline}
\tablelasttail{\hline}
\bottomcaption{SCR inputs for TA cases}

\begin{supertabular}{|p{0.1\textwidth}|p{0.4\textwidth}|p{0.4\textwidth}|}
%\begin{tabular}{p{0.1\textwidth}|p{0.4\textwidth}|p{0.4\textwidth}}
%\hline
%case & only the burnup in {\sc map} & all parameters in {\sc map}\\
\hline
GRID (Fig. \ref{figNCRGRIDTA}) & 
\begin{verbatim}
MACROLIB := SCR: SAP FMAP ::
   NMIX 1
   TABLE SAP 'B' 
   MIX 1 
      SET 'A' <<va>>
      SET 'C' <<vc>>
   ENDMIX
;
\end{verbatim} &
\begin{verbatim}
MACROLIB := SCR: SAP FMAP ::
   NMIX 1
   TABLE SAP 'B' 
   MIX 1 
   ENDMIX
;
\end{verbatim} \\
\hline
PLANE (Fig. \ref{figNCRPLANETA}) & 
\begin{verbatim}
MACROLIB := SCR: SAP FMAP ::
   NMIX 1
   TABLE SAP 'B' 
   MIX 1 
      SET 'A' <<va>>
      SET 'C' <<vc0>>
      ADD 'C' <<vc0>> <<vc>>
         REF  'A' <<va0>> 
              'B' SAMEASREF ENDREF
   ENDMIX
;
\end{verbatim} &
\begin{verbatim}
MACROLIB := SCR: SAP FMAP ::
   NMIX 1
   TABLE SAP 'B' 
   MIX 1 
      SET 'C' <<vc0>>
      ADD 'C' <<vc0>> MAP
         REF  'A' <<va0>> 
              'B' SAMEASREF ENDREF
!or   SET 'A' <<va0>>
!or   ADD 'A' <<va0>> MAP
!or      REF  'C' <<vc0>> 
!or           'B' SAMEASREF ENDREF
   ENDMIX
;
\end{verbatim} \\
\hline
AXE (Fig. \ref{figNCRAXETA}) & 
\begin{verbatim}
MACROLIB := SCR: SAP FMAP ::
   NMIX 1
   TABLE SAP 'B' 
   MIX 1 
      SET 'A' <<va0>>
      SET 'C' <<vc0>>
      ADD 'A' <<va0>> <<va>>
         REF  'C' <<vc0>> 
              'B' <<vb0>> ENDREF
      ADD 'C' <<vc0>> <<vc>>
         REF  'A' <<va0>> 
              'B' <<vb0>> ENDREF
   ENDMIX
;
\end{verbatim} &
\begin{verbatim}
MACROLIB := SCR: SAP FMAP ::
   NMIX 1 
   TABLE SAP 'B' 
   MIX 1 
      SET 'A' <<va0>>
      SET 'C' <<vc0>>
      ADD 'A' <<va0>> MAP
         REF  'C' <<vc0>> 
              'B' <<vb0>> ENDREF
      ADD 'C' <<vc0>> MAP
         REF  'A' <<va0>> 
              'B' <<vb0>> ENDREF
   ENDMIX
;
\end{verbatim} \\
\hline
PLANE + AXE (Fig. \ref{figNCRPLAXTA}) & 
\begin{verbatim}
MACROLIB := SCR: SAP FMAP ::
   NMIX 1
   TABLE SAP 'B' 
   MIX 1 
      SET 'A' <<va0>>
      SET 'C' <<vc>>
      ADD 'A' <<va0>> <<va>>
         REF  'C' <<vc0>> 
              'B' <<vb0>> ENDREF
   ENDMIX
;
\end{verbatim} &
\begin{verbatim}
MACROLIB := SCR: SAP FMAP ::
   NMIX 1
   TABLE SAP 'B' 
   MIX 1 
      SET 'A' <<va0>>
      ADD 'A' <<va0>> MAP
         REF  'C' <<vc0>> 
              'B' <<vb0>> ENDREF
   ENDMIX
;
\end{verbatim} \\
\hline
%\end{tabular}
\end{supertabular}
\end{center}

\clearpage