# NJOY Automation – pyne.njoy¶

All functionality may be found in the njoy package:

from pyne import njoy


The information below represents the complete specification of the classes in the njoy module. For examples of usage, please refer to the User’s Guide entry for NJOY Automation.

## Njoy99 Class¶

Purpose:

This code was originally distirbuted under the LGPL license (below). However, we have been given written permission from the author Alain Herbert to redistribute it under PyNE’s BSD license.

Copyright (C) 2003 Ecole Polytechnique de Montreal This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version
exception pyne.njoy.PyNjoyError[source]

Exception indicating an error in PyNjoy.

class pyne.njoy.Njoy99[source]

The NJOY99 wrapper class.

acer(self)[source]

Generate ACE-format cross section libraries using the MODER, RECONR, BROADR, PURR (if dilutions present), THERMR, and ACER modules.

burnup(self)[source]

Process burnup data for the complete library. This requires a file whose name starts with chain, e.g. chaincandu, that contains information about the energy from all isotopes generated using single DRAGR runs. The ‘chain’ file is generated automatically.

draglib(self, fp=0)[source]

Generate a DRAGLIB file using the MODER and DRAGR modules and add/update the new isotopic data in the DRAGLIB file.

Parameters: fp : int If fp is 1, the scattering information are stored as diagonal matrices in the DRAGLIB.
gamma(self)[source]

Generate photo-atomic (gamma) group ENDF file using the MODER, RECONR, and GAMINR modules.

gendf(self, eaf=0)[source]

Generate a multigroup GENDF file using the MODER and GROUPR modules. This requires that the pendf() method has already been called.

Parameters: eaf : int If eaf is 1, simplified processing is performed to be compatible with the EAF nuclear library.
makefp(self, eaf=0)[source]

Creates a PENDF, GENDF, and DRAGLIB file for a single fission product.

Parameters: eaf : int If eaf is 1, simplified processing is performed to be compatible with the EAF nuclear library.
matxs(self)[source]

Generate an ASCII MATXS file using the MODER and MATXSR modules.

pendf(self, eaf=0)[source]

Generate a pointwise PENDF file from the ENDF raw data using the MODER, RECONR, BROADR, PURR (if dilutions present), and THERMR modules. This is the starting point for all other datatype generations including DRAGLIB, ACE, WIMSD, etc.

Parameters: eaf : int If eaf is 1, simplified processing is performed to be compatible with the EAF nuclear library.