inertial_fusion_openmc_dagmc_paramak_example

A minimal example implementation of an open source method of making DAGMC geometry with Paramak and simulating tritium production with OpenMC

https://github.com/fusion-energy/inertial_fusion_openmc_dagmc_paramak_example

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.1%) to scientific vocabulary

Keywords

dagmc fusion neutronics open-source openmc paramak tritium
Last synced: 6 months ago · JSON representation ·

Repository

A minimal example implementation of an open source method of making DAGMC geometry with Paramak and simulating tritium production with OpenMC

Basic Info
  • Host: GitHub
  • Owner: fusion-energy
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 41 KB
Statistics
  • Stars: 7
  • Watchers: 1
  • Forks: 3
  • Open Issues: 4
  • Releases: 1
Topics
dagmc fusion neutronics open-source openmc paramak tritium
Created almost 4 years ago · Last pushed about 3 years ago
Metadata Files
Readme License Citation

README.md

This example simulates a simplified model of an inertial confinement fusion reactor.

  • A CAD model is made and automatically converted to a DAGMC geometry that is then used in OpenMC for a neutronics simulation.
  • The neutronics simulation obtains the tritium breeding ratio and a 3D map of tritium production.
  • The simulation outputs are post processed to display the results and produce a VTK file for visualization.

:pointright: :videocamera: Link to video tutorial for this repository :video_camera:

Prerequisites

This minimal example makes use of Conda to manage and install the packages.

You will need one of these conda distributions to be installed or work within a Docker image

First clone the repository

bash git clone https://github.com/fusion-energy/inertial_fusion_openmc_dagmc_paramak_example inertial_fusion_openmc_dagmc_paramak_example

Making the DAGMC model

Make an environment for the model preparation conda env create -f environment_cad.yml conda activate env_cad

Then run the script for making the DAGMC model. bash python 1_creation_of_dagmc_geometry.py

Then open the dagmc.html file in an internet browser to view the CAD created

CAD geometry image

Optionally you can inspect the DAGMC file at this stage by converting the h5m file to a vtk file and opening this with Paraview mbconvert dagmc.h5m dagmc.vtk paraview dagmc.vtk DAGMC model image

Simulating the model in OpenMC

First make an environment for simulation.

conda env create -f environment_neutronics.yml conda activate env_neutronics

Then run the simulation which will produce a statepoint.10.h5 file that contains the simulation outputs bash python 2_run_openmc_dagmc_simulation.py

Then run the post processing script that should output the Tritium Breeding Ratio to the terminal and make a VTK showing the neutron interactions resulting in tritium production bash python 3_extract_results.py

Open up the VTK file with Paraview and slice the data to see the high tritium breeding region bash paraview tritium_production_map.vtk Mesh Tally result

Owner

  • Name: Fusion Energy
  • Login: fusion-energy
  • Kind: organization

A collection of software projects related to fusion energy

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Shimwell"
  given-names: "Jonathan"
  orcid: "https://orcid.org/0000-0001-6909-0946"
title: "Inertial fusion openmc dagmc paramak example"
version: 0.2.0
date-released: 2022-11-15
url: "https://github.com/fusion-energy/inertial_fusion_openmc_dagmc_paramak_example"

GitHub Events

Total
  • Watch event: 1
  • Fork event: 1
Last Year
  • Watch event: 1
  • Fork event: 1

Dependencies

.github/workflows/ci_with_install.yml actions
  • actions/checkout v2 composite