8000 GitHub - Lindt8/DCHAIN-Tools: Python module for parsing and post-processing output from the DCHAIN-PHITS code
[go: up one dir, main page]

Skip to content

Python module for parsing and post-processing output from the DCHAIN-PHITS code

License

Notifications You must be signed in to change notification settings

Lindt8/DCHAIN-Tools

Repository files navigation

Online DCHAIN Tools documentation: lindt8.github.io/DCHAIN-Tools/

DCHAIN Tools

Documentation status PyPI - Version

Purpose

This module is a collection of Python 3 functions which serve to automatically process output from the DCHAIN-PHITS code, the nuclide activation, buildup, burnup, and decay code which is coupled to and distributed with the PHITS general purpose Monte Carlo particle transport code. These codes can be obtained at https://phits.jaea.go.jp/.

If you use/reference this code in a research paper, please cite this paper as follows:

Ratliff, H. N., (2025). The PHITS Tools Python package for parsing, organizing, and analyzing results from the PHITS radiation transport and DCHAIN activation codes. Journal of Open Source Software, 10(113), 8311, https://doi.org/10.21105/joss.08311

@article{Ratliff2025, doi = {10.21105/joss.08311}, url = {https://doi.org/10.21105/joss.08311}, year = {2025}, publisher = {The Open Journal}, volume = {10}, number = {113}, pages = {8311}, author = {Ratliff, Hunter N.}, title = {{The PHITS Tools Python package for parsing, organizing, and analyzing results from the PHITS radiation transport and DCHAIN activation codes}}, journal = {Journal of Open Source Software} } 

Installation

DCHAIN Tools is distributed as a submodule of PHITS Tools and is primarily intended to be accessed as such, though it is still fully functional on its own.

With pip (Python >= 3.10) (recommended)

Install PHITS Tools:

pip install PHITS-Tools

Import DCHAIN Tools as a submodule of PHITS Tools like any other Python submodule:

from PHITS_tools import dchain_tools / from PHITS_tools.dchain_tools import *

Manually

One may use the functions by first placing the dchain_tools.py Python script into a folder in their PYTHONPATH system variable or in the active directory and then just importing them normally ( import dchain_tools / from dchain_tools import * ).

Usage

Aside from the main DCHAIN output parsing function process_dchain_simulation_output(), dchain_tools.py also contains additional functions which one may find useful. The dchain_tools_manual.pdf document primarily covers usage of this main function but provides brief descriptions of the other available functions. All of these functions are documented online at lindt8.github.io/DCHAIN-Tools/.

I have also written a similar module for (nearly universally) parsing and processing general PHITS output files (both normal tally output and tally dump files) called PHITS Tools, which will also call DCHAIN Tools if provided with DCHAIN-related files to process and includes DCHAIN Tools as a submodule.


These functions are just tools I have developed over time to speed up my usage of PHITS and DCHAIN-PHITS; they are not officially supported by the PHITS development team.

All of the professionally-relevant Python modules I have developed are summarized here, and more general information about me and the work I do / have done can be found on my personal webpage.

About

Python module for parsing and post-processing output from the DCHAIN-PHITS code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0