Home > Research > Publications & Outputs > Pyg4ometry

Links

Text available via DOI:

View graph of relations

Pyg4ometry: A Python library for the creation of Monte Carlo radiation transport physical geometries

Research output: Contribution to Journal/MagazineJournal articlepeer-review

Published
Close
Article number108228
<mark>Journal publication date</mark>31/03/2022
<mark>Journal</mark>Computer Physics Communications
Volume272
Publication StatusPublished
Early online date6/12/21
<mark>Original language</mark>English

Abstract

Creating and maintaining computer-readable geometries for use in Monte Carlo Radiation Transport (MCRT) simulations is an error-prone and time-consuming task. Simulating a system often requires geometry from different sources and modelling environments, including a range of MCRT codes and computer-aided design (CAD) tools. Pyg4ometry is a Python library that enables users to rapidly create, manipulate, display, debug, read, and write Geometry Description Markup Language (GDML)-based geometry used in MCRT simulations. Pyg4ometry provides importation of CAD files to GDML tessellated solids, conversion of GDML geometry to FLUKA and conversely from FLUKA to GDML. The implementation of Pyg4ometry is explained in detail in this paper and includes a number of small examples to demonstrate some of its capabilities. The paper concludes with a complete example using most of Pyg4ometry's features and a discussion of possible extensions and future work.