Quickstart¶
Generic Example¶
NJOY input files are able to call multiple modules in sequence, which can be used together to perform complicated manipulations of the nuclear data. Broadly speaking, an NJOY input file will be structured as follows.
Module1 / Specify first module
input1 / card1 (Cards for Module 1)
input1 input2 input3 / card2
input1 input2 / card3
Module2 / Specify second module
input1 / card1 (Cards for Module 2)
input1 input2 / card2
input1 input2 input3
input4 input5 / card3 (can run onto next line)
input1 input2 / card4
input1 input2 input3 / card5
Module3 / Specify final module
input1 input2 / card1 (Cards for Module 3)
input1 / card2
stop / this tells NJOY to stop reading file
Here, the first module name is specified, and the inputs are divided into “cards” (i.e., lines of input). Each module has its own number of possible cards, and each card has its own number of inputs. Modules are called in the order that they appear on this input file, so Module 2 can accept the output of Module 1.
Lines of NJOY input files may not exceed 80 characters, so if an line of input needs multiple lines, they may do so (this is shown in Module 2 Card 3 above). Any characters folloring a single forawrd slash is considered a comment and will not be read as input.
Many modules in NJOY cannot be called in isolation, as they require the output of some other module as input.