Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

626 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenEdge

License: GPL-3.0 C++17 Platform

A kinetic transport package for plasma-material and plasma-wall interactions.

OpenEdge evolves neutrals, impurity ions, and dust/droplets in prescribed plasma and magnetic backgrounds, with surface and volume interactions (sputtering, reflection, recycling, ionisation, recombination, CX, dissociation). Used for edge / SOL transport studies, PMI / PWI workflows, and plasma-wall.

Build

CPU build (MPI):

git clone https://github.com/ORNL-Fusion/OpenEdge.git
mkdir buildOpenEdge && cd buildOpenEdge
cmake -C ../OpenEdge/cmake/presets/mpi.cmake ../OpenEdge/cmake -DPKG_OPENEDGE=ON
make -j$(nproc)

Produces ./src/spa_mpi.

GPU build (Kokkos + CUDA):

mkdir buildOpenEdge_gpu && cd buildOpenEdge_gpu
cmake -C ../OpenEdge/cmake/presets/kokkos_cuda.cmake ../OpenEdge/cmake \
    -DPKG_OPENEDGE=ON -DPKG_KOKKOS=ON \
    -DKokkos_ENABLE_CUDA=ON -DKokkos_ARCH_AMPERE80=ON
make -j$(nproc)

Set Kokkos_ARCH_* to your GPU (AMPERE80, HOPPER90, VOLTA70, PASCAL60).

Run a case

CPU (MPI):

cd OpenEdge/examples/test_west_cases/axi_1p5MW_plasma_bkg
mpirun -np 8 ../../../../buildOpenEdge/src/spa_mpi -in in.axi_west_emission

GPU (Kokkos + CUDA, one rank per GPU):

mpirun -np 1 ../../../../buildOpenEdge_gpu/src/spa_mpi \
    -k on g 1 -sf kk -in in.axi_west_emission

Quick sanity check of the whole suite:

./regression/run_regression.sh --exe path/to/spa_mpi

Outputs (log, dumps, surface tallies) land in the case directory. See each examples/*/README.md for case-specific post-processing.

Requirements

  • CMake >= 3.18, C++17 compiler (GCC, Clang, ICC)
  • HDF5 with C++ bindings (+MPI for distributed runs)
  • MPI (OpenMPI or MPICH)

Documentation

Per-feature reference docs live under docs/ — fixes, computes, converters, performance, migration guides. Start at docs/index.md.

License

GPL-3.0, inherited from SPARTA. See LICENSE for details.

About

Direct Simulation Monte Carlo transport of charged and neutral particles in fusion edge plasmas

Topics

Resources

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages