The simple two slab model geometry consists of two slabs and a cube that holds an isotropic 14 MeV source.
Goals of Example
- Use the UW2 workflow
- Use a simple PyNE script to make materials
- Use a Cubit/Trelis script to create the model and prepare it for DAGMC
- Inject materials into the h5m faceted geometry file for transport
- Run dag-mcnp6 with the CAD model prepared above
- Run dag-openmc with the CAD model prepared above
- Compare tally results between dag-mcnp6 and dag-openmc
Procedure Overview
- Create materials by running a simple python PyNE script
- Create the two slab model and prepare it for DAGMC by running a Cubit/Trelis journal script
- Run uwuw_preproc to inject materials into h5m faceted geometry file
- Run DAG-MCNP62 using the supplied input file
- Run DAG-OpenMC using the supplied python input file
Cubit is a meshing pre-processing software with CAD capabilities and Trelis is the commercially available version. It is used in this workflow to create the CAD model, assign materials to volumes, and finally export the model to the faceted DAGMC .h5m format.
Preparing and exporting the model to a faceted h5m format requires Cubit/Trelis and the DAGMC Cubit/Trelis plugin, which should be installed before starting the tutorial. Instructions are here.
In the bash command shell type:
>/path/to/makeMatls.py
This will create the materials used in this particular calculation (iron, water) and write a PyNE material database file in h5m format (filename=twoslab_matlLib.h5m). It will also write a file in mcnp material card format in case the user wants to examine the materials before continuing with the tutorial workflow (filename=twoslab_mcard.txt).
Installing the PyNE package for python is required to use this particular python script. Instructions are here.
In the Cubit/Trelis command/journal script prompt type:
>playback '/path/to/prepareshieldmodeltrelis701.jou'
This will create the two slabs, the cube, and the graveyard. It will check for CAD errors, then imprint and merge the model. Next it will assign materials and finally facet, make_watertight, and export the model in h5m format (filename=shieldblock701_zip.h5m).
In the bash command shell type:
>/path/to/uwuw_preproc shieldblock701_zip.h5m -v -l twoslab_matlLib.h5m
This will inject the materials into the faceted h5m geometry file for the Monte Carlo transport calculation.
In the bash command shell type:
>/path/to/dag-mcnp62 n=shieldblock701 gcad=shieldblock701_zip.h5m lcad=shieldblock701.glist
This will run dag-mcnp6 using the two slab model and materials that were prepared in the previous step. You can compare your tally results to ours using the mcnp mctal file.
In the bash command shell type: ./shieldblock701_openmcInput.py
You should see very similar results for the tallies in cell 1, 2, and 3.