Applications

Background Material on Applications

Degas2

Degas2 is “A Monte Carlo code for the study of neutral atom and molecular transport in confined plasmas”, developed at Princeton University.

.web Files

.web files are used to write Degas2. Here is a comprehensive documentation for .web files: https://w3.pppl.gov/~krommes/fweb.html#Intro

XGC

XGC is a gyrokinetic fusion plasma simulation code, developed at Princeton University. XGC has a robust way of installing on various platforms described in the XGC Installation Guide. To install using Spack, use the following workflow here.

Coupled XGC-Degas2 Simulation using PCMS

PCMS: Parallel Coupler For Multimodel Simulations is a Adios2-based library for coupling simulations. It provides communication and field transfer methods. PCMS has been demonstrated to couple XGC and Degas2 and it enabled them to use two different meshes. The installation and usage is described in this GitHub Gist: XGC-Degas2 Coupled Simulation Workflow .

PUMI-Tally

PUMI-Tally is a accelerated distributed unstructured mesh tally library built on top of PUMI-PiC. It is designed to work with different Monte Carlo particle transport codes. It is recently demonstrated to work with OpenMC (draft paper). To install OpenMC with PUMI-Tally, use this workflow: Installation and Usage of PUMI-Tally with OpenMC.

OpenMC Geometry Concepts

OpenMC uses geometry in two distinct ways:

  1. Transport Geometry — defines the physical domain for particle transport, including material assignments and boundary conditions. This can be specified in either CSG (Constructive Solid Geometry) or DAGMC format.
  2. Mesh Tally Filter — a volume mesh used as a filter for tallying quantities over spatial regions. Unlike transport geometry, the tally mesh filter does not require material information.

These two are fundamentally different: the DAGMC transport geometry (.h5m) is a surface mesh, whereas the tally mesh filter is a volume mesh (confusingly has the same file extension .h5m). For more details, see the OpenMC documentation on CAD-based geometries.

Preparing CAD Geometry for DAGMC Neutron Transport

DAGMC (Direct Accelerated Geometry Monte Carlo) enables the use of CAD-based geometry in Monte Carlo particle transport codes such as OpenMC. To use DAGMC geometry with OpenMC, a CAD model must first be converted to the DAGMC format (.h5m) using Coreform Cubit. The following resources provide step-by-step guidance on preparing and exporting DAGMC geometry:

Preparing DAGMC Geometry for OpenMC Tally Mesh Filter

Volume meshes from many types (for example, GMSH, EXODUS, VTK, etc.) can be converted to DAGMC format (.h5m) using mbconvert which is part of DAGMC.