openmc.data.njoy.run¶
- openmc.data.njoy.run(commands, tapein, tapeout, input_filename=None, stdout=False, njoy_exec='njoy')[source]¶
Run NJOY with given commands
- Parameters
commands (str) – Input commands for NJOY
tapein (dict) – Dictionary mapping tape numbers to paths for any input files
tapeout (dict) – Dictionary mapping tape numbers to paths for any output files
input_filename (str, optional) – File name to write out NJOY input commands
stdout (bool, optional) – Whether to display output when running NJOY
njoy_exec (str, optional) – Path to NJOY executable
- Raises
subprocess.CalledProcessError – If the NJOY process returns with a non-zero status