Skip to main content

Computer Physics Communications

ISSN: 0010-4655

Visit Journal website

Datasets associated with articles published in Computer Physics Communications

Filter Results
1970
2025
1970 2025
4319 results
  • OpenSn: A massively parallel, open-source simulation environment for discrete ordinates radiation transport
    OpenSn is an open-source, massively parallel deterministic radiation transport code for solving the discrete-ordinates (SN) form of the Boltzmann transport equation on unstructured, arbitrary polyhedral meshes. It supports high-fidelity simulations involving steady-state, eigenvalue, and adjoint problems for neutral particles (e.g., neutrons, photons, multi-particles), using the multigroup approximation in energy. OpenSn combines angular discretization via discrete ordinates with a discontinuous Galerkin finite element method (DGFEM) in space, enabling accurate resolution of transport physics on arbitrary polyhedral cells, included locally refined spatial grids. It includes multiple angular quadrature types, including locally refined angular quadratures. Written in modern C++ with a Python API, OpenSn runs efficiently on platforms ranging from laptops to supercomputers. The transport sweep algorithm is implemented using a task-based, directed-acyclic-graph (DAG) approach for each angle and supports asynchronous parallelism across thousands of MPI ranks. Group-set aggregation improves compute intensity, and synthetic acceleration techniques (e.g., diffusion synthetic acceleration, second-moment method) enhance solver convergence. OpenSn has been verified on reactor physics problems and demonstrated excellent weak and strong scaling performance on more than 32,768 processes, making it a versatile and robust platform for large-scale transport simulations in complex geometries.
  • HepLib: A C++ library for high energy physics (version 1.1)
    HepLib is a C++ Library for computations in High Energy Physics, it builds on top of other well-established libraries or programs, including GiNaC, Fermat, Form, Fire, etc., its first version has been released in Comput. Phys. Commun. 265 (2021) 107982. Here we provide a minor upgraded version with parts of obligated aspects removed and many new features added, the main feature in this new version is to use Flint for the simplification on multi-variate polynomial, so one can replace the process-based parallelism by the thread-based parallelism for the related polynomial evaluations to achieve a higher performance.
  • Advanced strategies for discrete simulations with three-dimensional R-shapes in rockable framework
    The Discrete Element Method (DEM) is widely used to simulate the mechanical behavior of granular materials across a broad range of applications and industrial domains. Particle shape is a key feature playing a crucial role for physics-fidelity of DEM simulations. However, accurately representing complex particle shapes within DEM frameworks presents significant challenges such as defining unambiguous contact normals or managing geometric singularities. Rigid particles are often modeled as convex polyhedra, which inherently suffer from ill-defined outward normal vectors at sharp edges and vertices. To represent non-convex geometries, these polyhedra must typically be combined, further increasing the computational and geometric complexity. In this work, we adopt an efficient and robust strategy to overcome these limitations by using R-shapes, defined as rounded-edge shapes, also known as sphero-polyhedra, obtained by sweeping a sphere of radius R along the edges and faces of a base polyhedral shape. This construction results in smooth surface transitions and circumvents common issues associated with traditional polygonal representations. This paper provides a detailed presentation of the implementation, structure, and advantages of R-shapes in DEM simulations. The proposed solutions are implemented in a fully open-source software package called Rockable, developed in C++, which integrates state-of-the-art numerical techniques and shared-memory parallelization for enhanced performance. Beyond the geometric modeling aspects, we also address several methodological challenges, including the treatment of contact elasticity and the numerical integration scheme. The combined contributions of this work offer a practical and efficient framework for simulating complex particle shapes in DEM with high physics fidelity and computational efficiency.
  • Combustion Toolbox: An open-source thermochemical code for gas- and condensed-phase problems involving chemical equilibrium
    The Combustion Toolbox (CT) is a newly developed open-source thermochemical code designed to solve problems involving chemical equilibrium for both gas- and condensed-phase species. The kernel of the code is based on the theoretical framework set forth by NASA’s computer program CEA (Chemical Equilibrium with Applications) while incorporating new algorithms that significantly improve both convergence rate and robustness. The thermochemical properties are computed under the ideal gas approximation using an up-to-date version of NASA’s 9-coefficient polynomial fits. These fits use the Third Millennium database, which includes the available values from Active Thermochemical Tables. Combustion Toolbox is programmed in MATLAB with an object-oriented architecture composed of three main modules: CT-EQUIL, CT-SD, and CT-ROCKET. The kernel module, CT-EQUIL, minimizes the Gibbs/Helmholtz free energy of the system using the technique of Lagrange multipliers combined with a multidimensional Newton-Raphson method, upon the condition that two state functions are used to define the mixture properties (e.g., enthalpy and pressure). CT-SD solves processes involving strong changes in dynamic pressure, such as steady shock and detonation waves under normal and oblique incidence angles. Finally, CT-ROCKET estimates rocket engine performance under highly idealized conditions. The new tool is equipped with a versatile Graphical User Interface and has been successfully used for teaching and research activities over the last six years. Results are in excellent agreement with CEA, Cantera within Caltech’s Shock and Detonation Toolbox (SD-Toolbox), and the Thermochemical Equilibrium Abundances (TEA) code. CT is available under an open-source GPLv3 license via GitHub https://github.com/CombustionToolbox/combustion_toolbox, and its documentation can be found in https://combustion-toolbox-website.readthedocs.io.
  • VacHopPy: A Python package for vacancy hopping analysis based on molecular dynamics simulations
    Multiscale modeling, which integrates material properties from ab initio calculations into continuum-scale simulations, is a promising strategy for optimizing semiconductor devices. However, a key challenge remains: while ab initio methods provide diffusion parameters specific to individual migration paths, continuum equations require a single effective set of parameters that captures the overall diffusion behavior. To address this issue, we present VacHopPy, an open-source Python package for vacancy hopping analysis based on molecular dynamics (MD). VacHopPy extracts an effective set of hopping parameters, including hopping distance, hopping barrier, number of effective paths, correlation factor, and attempt frequency, by statistically integrating energetic, kinetic, and geometric contributions across all paths. It also includes tools for tracking vacancy trajectories and for detecting phase transitions during MD simulations. The applicability of VacHopPy is demonstrated in three representative materials: face-centered cubic Al, rutile TiO2, and monoclinic HfO2. The extracted effective parameters reproduce temperature-dependent diffusion behavior and are in good agreement with previous experimental data. Provided in a simplified form, these parameters are well suited for continuum-scale models and remain valid over a wide temperature range spanning several hundred kelvins. Furthermore, VacHopPy inherently accounts for anisotropy in thermal vibrations, a factor often overlooked, making it suitable for simulating diffusion in complex crystals. Overall, VacHopPy establishes a robust bridge between atomic- and continuum-scale models, enabling more reliable multiscale simulations.
  • QR2-code: An open-source program for double resonance Raman spectra
    We present an open-source program QR2-code that computes double-resonance Raman (DRR) spectra using first-principles calculations. QR2-code can calculate not only two-phonon DRR spectra but also single-resonance Raman spectra and defect-induced DRR spectra. For defect-induced DRR spectra, we simply assume that the electron-defect matrix element of elastic scattering is a constant. Hands-on tutorials for graphene are given to show how to run QR2-code for single-resonance, double-resonance, and defect-induced Raman spectra. We also compare the single-resonance Raman spectra by QR2-code with that by QERaman code. In QR2-code, the Raman spectrum is calculated by the time-dependent perturbation theory, in which the energy dispersions of electron and phonon are taken from Quantum ESPRESSO (QE) code and the electron-phonon matrix element is obtained from the modified Electron-Phonon-Wannier (EPW) code. All codes, examples, and scripts are available on the GitHub repository.
  • INTW: A versatile modular environment for advanced treatment of electronic structure and electron-phonon related properties
    We present INTW, a modular software environment designed for advanced electronic structure calculations. Developed in Fortran95, INTW is capable of reading self-consistent field (SCF) results, such as electron energies, wave functions, and potentials, generated by the Quantum ESPRESSO and SIESTA codes. Using these SCF results as input, INTW provides a suite of specialized subroutines and functions for the computation of various electron- and phonon-related physical properties, facilitating detailed analysis of material properties at the quantum level. INTW particularly stands out in its treatment of symmetry, fully exploiting it even when dealing with electron spinor wave functions. Furthermore, it can efficiently work with both localized basis set codes, such as SIESTA, and plane-wave codes like Quantum ESPRESSO. These capabilities make INTW unique, offering a versatile approach that effectively combines the use of symmetry with both localized basis sets and plane-wave methods.
  • Dofulator: A tool for calculating degrees of freedom of atoms in molecules with geometry constraints
    Recently, we proposed a method for calculating per-atom and per-direction degrees of freedom (DoF) in the presence of geometric constraints, enabling fine-grained local kinetic temperature calculations. Here, we discuss relevant implementation details for various constraint geometries, including those which feature kinematic loops (e.g. benzene with rigid bond lengths). Furthermore, by analyzing the effects of deformation of semi-rigid molecules on the DoF of each constituent atom, we gain insight into conditions under which atomic DoF may vary significantly during a simulation. This provides some guidance towards cases where local DoF should be calculated dynamically to obtain reliable local temperature measurements, and cases where using the atomic DoF of the equilibrium geometry as a constant throughout the simulation would be sufficient. We have implemented the presented algorithms in an open-source C library, dofulator, which can be used on its own or through a Python interface that includes compatibility with the popular MDAnalysis package.
  • RT2QMD: GPU-Accelerated nucleus-nucleus fragmentation event generator
    We developed a GPU-accelerated nucleus-nucleus fragmentation event generator. The Quantum Molecular Dynamics (QMD) model was implemented on GPU architecture. A corresponding evaporation model was also integrated to handle de-excitation. The developed models, RT2QMD, can handle nuclear collisions where the projectiles including oxygen isotopes and lighter nuclei, covering most of the situations in carbon-ion radiotherapy. The intended energy range of this package is 100 MeV/u to 500 MeV/u. This package was compared against the corresponding Geant4 models and experimental data. The RT2QMD showed good agreement with Geant4 and experimental data for neutron double-differential cross-section in the 290 MeV/u 12C(12C,xn), 12C(16O,xn) reactions, and the 230 MeV/u Cu(4He,xn) reaction. The fragment production cross-section from 12C - 12C reactions showed relatively large differences compared to Geant4 and experimental data, due to the simplified evaporation model. The RT2QMD ran on an NVIDIA RTX 4090 GPU, while the Geant4 models ran on an Intel Xeon Gold 6342 node using all 48 available threads. The computing speeds of RT2QMD were about 30 times faster than those of Geant4 for all reactions. This package is part of the GPU-based Monte Carlo code, RT2, to handle dose calculation in heavy-ion therapy.
  • SOFIA: Singularities of Feynman integrals automatized
    We introduce SOFIA, a Mathematica package that automatizes the computation of singularities of Feynman integrals, based on new theoretical understanding of their analytic structure. Given a Feynman diagram, SOFIA generates a list of potential singularities along with a candidate symbol alphabet. The package also provides a comprehensive set of tools for analyzing the analytic properties of Feynman integrals and related objects, such as cosmological and energy correlators. We showcase its capabilities by reproducing known results and predicting singularities and symbol alphabets of Feynman integrals at and beyond the high-precision frontier.
1