# Technical features¶

## Neutron flux spectrum¶

The neutron flux is specially formatted in:

• 1-point thermal flux at 0.0253 eV
• 2-points fast flux at 0.5 MeV and 14 MeV

For thermal and cold neutrons transmutation, only the thermal value is useful. For fuel depletion, only the relative values of thermal and fast neutrons are useful (because of threshold reactions). A multiplication factor can be used to adjust the fission power to the right value, without changing the flux shape.

## Evolution algorithm¶

The choice of the algorithm (Bateman/TTA, Matrix Exponential, Runge-Kutta, Adams, BDF…) is a tricky problem in case of loops and stiffness in nuclides chains. After some trials, only three methods were selected.

### BDF¶

ORILL can use the old LLNL Fortran77 VODE code (SUNDIALS) with Backward Differentiation Formula (BDF) as provided with Python/Scipy to solve the stiff differential equations. VODE/BDF is faster than MMPA on old CPU and the difference with MMPA is generally < 2%. This method is generally stable, but instabilities can occur sometimes.

### MMPA¶

Mini-Max Polynomial Approximation (MMPA) of matrix exponential can be used in ORILL. It is extremely simple to code on sparse matrix, and has several advantages over Chebyshev Rational Approximation Method (CRAM). MMPA method is very stable. It is described by Yosuke Kawamoto and al., Numerical solution of matrix exponential in burn-up equation using mini-max polynomial approximation, Annals of Nuclear Energy, Volume 80, 2015, Pages 219-224.

### DIAG¶

The DIAG method uses diagonalization of the evolution matrix in C field, which is a more general analytical method than the classic Bateman / TTA. If diagonalization is possible, each eigenvalue is the pseudo decay constant of the corresponding eigenvector. A decay matrix is always diagonalizable because there is no loop and it can be rearranged in a lower triangular matrix with its real eigenvalues on the diagonal. Unfortunately, large burn-up matrix with loops in transmutation chains due to neutron absorbtion are not always diagonalizable in C field with enough accuracy. If diagonalization is impossible, the DIAG method will fail.

## Inside ORILL engine¶

Nuclide names are translated in ZAAAm numbers, like ‘Am-242m’ in 952421, or ‘He-4’ in 20040. ORILL uses Python dictionaries and Numpy arrays to process data before hard computation. A nuclide set is defined at the beginning: it depends on the problem and on the computation depth into chains (set by the user). In the set, nuclides are sorted on an index [0,1,…,N-1], from which a sparse evolution matrix is build. The sparse matrix is processed with previously described numerical methods. At the end of each time step, the desired values are computed and the nuclide list is build back from the index.
{"ft_lang_label":"__label__en","ft_lang_prob":0.88491356,"math_prob":0.9351332,"size":2777,"snap":"2019-13-2019-22","text_gpt3_token_len":641,"char_repetition_ratio":0.10710422,"word_repetition_ratio":0.0,"special_character_ratio":0.20777817,"punctuation_ratio":0.108481266,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9804338,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-05-20T09:20:38Z\",\"WARC-Record-ID\":\"<urn:uuid:44e2eb36-dd43-4180-8a61-14095e3e47cb>\",\"Content-Length\":\"13055\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5ab4a79c-b390-4199-b441-c963e25d6882>\",\"WARC-Concurrent-To\":\"<urn:uuid:edd0a37f-bcee-4cb6-91f0-2bdb8fa351e9>\",\"WARC-IP-Address\":\"137.116.78.48\",\"WARC-Target-URI\":\"https://orill.readthedocs.io/en/latest/techfeatures.html\",\"WARC-Payload-Digest\":\"sha1:ELVO3G6TDSF4EOQRZARTHGUJGQXDDOZY\",\"WARC-Block-Digest\":\"sha1:PTDQKESYUFTZ676TV7ZJV7N5VRQDSNTT\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-22/CC-MAIN-2019-22_segments_1558232255837.21_warc_CC-MAIN-20190520081942-20190520103942-00219.warc.gz\"}"}