Short story: OpenMC is 0.8 the speed of MCNP for analog gamma only transport and only 0.17 - 0.55 with WW. Varied a bunch of parameters without much success of improving the FOM. Is OpenMC just slow or am I missing something?
Long story: I’ve been benchmarking OpenMC against MCNP and experimental data for well logging applications. Results will be published in a peer review paper hopefully soon.
Generally speaking, in my experience, when comparing especially the performance of OpenMC for neutron and coupled neutron-gamma problems, OpenMC is on par or faster than MCNP. That includes cases where the convergence is accelerated by weight windows. Both global (dose fields) and localized (detectors) examples.
Things change when I’m dealing with gamma only cases. In our case, the source is usually Cs-137 with a single energy gamma at 661.657 keV. Analog cases run a bit slower than MCNP (comparing FOM on the same machine). In the simple example I’ve attached, about 0.8 of MCNP (6.3.0). That is both with 0.15.3 and the latest dev version (0.16.1-dev8). This, for our applications isn’t ideal, but would be acceptable.
However, the problem is larger when applying weight windows. Throughout this benchmarking effort I’ve been using ADVANTG generated weight windows and translating them to the OpenMC format with openmc.WeightWindowsList.from_wwinp() (just to have consistent WW for the two codes, and I have experience with optimizing ADVANTG WWs for MCNP). The “translation” to OpenMC, with the wnorm normalization factor from the MCNP wwp card, works great out of the box with default settings for, as mentioned, neutron only and coupled neutron-gamma transport.
When I do the same for this gamma only case, the results are unexpectedly slow. For the simple example I’ve attached, I’ve seen the performance with 0.15.3 (0.4 – 0.17) and with 0.16.1-dev8 (0.55 – 0.17). The FOM is also higher than MCNP closer to the source but really drops off in the air regions surrounding the source container (lead and tungsten) – contrary to how global FW-CADIS WW should perform. In this simple case there’s also a strange anisotropy that is seen in the relative error. I’ve attached a couple of plots to showcase the problem.
Thinking there’s a problem with the population control of the particles splitting vs rouletting, I’ve warried the following parameters in OpenMC trying to improve the convergence rate: ww max split; no. of particles per batch and no of batches; survival ratio; max lower bound; different random seed; different nuclear data; survival biasing; max particle events; max history splits; max secondaries; shifted the source boundary; different ww normalization.
All variations resulted in minor differences in the performance, but I could never get close to the performance in MCNP. Any and all suggestions on what to test or how to approach the problem would be greatly appreciated.
And just to confirm, the mean values, both analog and WW, of the dose integrated over parts of the mesh or within the cells, are within the uncertainty for both codes - no bias introduced.
Description of the simple test case attached to the post (all files have xml extension so I could upload them): Cs-137 source (1 cm) in a tungsten (5 cm) and lead (13 cm) cask surrounded by air (51 cm; all cubes; side of cube given in brackets). We are interested in the dose field (H*10) in and around the cask (51 cm, 50 bins in all directions).
Relative error distribution of OpenMC (left) and MCNP (right) analog - OpenMC is a bit slower but looks OK (1e9 NPS):
Relative error distribution of OpenMC 0.15.3 (left) 0.16.1-dev8 (middle) and MCNP (right) with WW (1e7 NPS). Strange anisotropy and worse performance:
gamma_shield-MCNP-analog.i.xml (2.1 KB)
wwinp.xml (7.2 MB)
gamma_shield-OpenMC-analog.xml (5.3 KB)
gamma_shield-MCNP-ww.i.xml (2.2 KB)
gamma_shield-OpenMC-ww.zip.xml (2.4 MB)



