PyMCNP CLI

PyMCNP provides tools for formatting MCNP files, visualizing MCNP geometries, and running MCNP simulations using the pymcnp CLI.

Manual Pages

The manual page for pymcnp:

Usage:
    pymcnp run [<args>...]
    pymcnp check [<args>...]
    pymcnp visualize [<args>...]
    pymcnp convert [<args>...]
    pymcnp plot [<args>...]
    pymcnp help <command>

Commands:
    run        Run MCNP.
    check      Check if we can parse an input file.
    visualize  Create a 3D visualization of an input file.
    convert    Convert the output of an MCNP run into a pandas dataframe.
    plot       Plot the output of an MCNP simulation.
    help       Show help for a specific command.

PyMCNP helps you create, run, analyze MCNP simulation input and output.

Check

The manual page for pymcnp check:

Usage:
    pymcnp check <inp> [options]

Options:
    -f --fix        Reformat input file.

Convert

The manual page for pymcnp convert:

Usage:
    pymcnp convert <outp> <number> --csv
    pymcnp convert <outp> <number> --parquet

Options:
    -c --csv        Write CSV.
    -p --parquet    Write PARQUET.

Takes an F1, F4, or F8 output file that can have multiple tallies in it and outputs a specific one as
a pandas dataframe as parquet or csv file.

Plot

The manual page for pymcnp plot:

Usage:
    pymcnp plot <outp> <number> [ options ]

Options:
    --pdf       Write PDF.

Run

The manual page for pymcnp run:

Usage:
    pymcnp run <inp>... [ options ]

Options:
    -c --command=<command>        Command to run.
    -p --path=<path>              Working directory.

Visualize

The manual page for pymcnp visualize:

Usage:
    pymcnp visualize <inp> [ options... ]

Options:
    -c --cells                     Visualize all cells.
    -s --surfaces                  Visualize all surfaces.
    -c --cells-skip=<numbers>      Visualize all cells except listed cells.
    -s --surfaces-skip=<numbers>   Visualize all surfaces excepted listed surfaces.
    -c --cell=<numbers>            Visualize listed cells.
    -s --surface=<numbers>         Visualize listed surfaces.
    --pdf                          Write PDF.