OpenMC 0.11.0
This release of OpenMC adds several major new features: depletion, photon transport, and support for CAD geometries through DAGMC. In addition, the core codebase has been rewritten in C++14 (it was previously written in Fortran 2008). This makes compiling the code considerably simpler as no Fortran compiler is needed.
Functional expansion tallies are now supported through several new tally filters that can be arbitrarily combined:
openmc.LegendreFilter
openmc.SpatialLegendreFilter
openmc.SphericalHarmonicsFilter
openmc.ZernikeFilter
openmc.ZernikeRadialFilter
Note that these filters replace the use expansion scores like scatter-P1
. Instead, a normal scatter
score should be used along with a openmc.LegendreFilter
.
The interface for random sphere packing has been significantly improved. A new openmc.model.pack_spheres
function takes a region and generates a random, non-overlapping configuration of spheres within the region.
New Features
-
White boundary conditions can be applied to surfaces
-
Support for rectilinear meshes through
openmc.RectilinearMesh
. -
The
Geometry
,Materials
, andSettings
classes now have afrom_xml
method that will build an instance from an existing XML file. -
Predefined energy group structures can be found in
openmc.mgxs.GROUP_STRUCTURES
. -
New tally scores:
H1-production
,H2-production
,H3-production
,He3-production
,He4-production
,heating
,heating-local
, anddamage-energy
. -
Switched to cell-based neighor lists (PR 1140)
-
Two new probability distributions that can be used for source distributions:
openmc.stats.Normal
andopenmc.stats.Muir
-
The
openmc.data
module now supports reading and sampling from ENDF File 32 resonance covariance data (PR 1024). -
Several new convenience functions/methods have been added:
- The
openmc.model.cylinder_from_points
function creates a cylinder given two points passing through its center and a radius. - The
openmc.Plane.from_points
function creates a plane given three points that pass through it. - The
openmc.model.pin
function creates a pin cell universe given a sequence of concentric cylinders and materials.
- The
Python API Changes
- All surface classes now have coefficient arguments given as lowercase names.
- The order of arguments in surface classes has been changed so that coefficients are the first arguments (rather than the optional surface ID). This means you can now write::
x = openmc.XPlane(5.0, 'reflective') zc = openmc.ZCylinder(0., 0., 10.)
- The
Mesh
class has been renamedopenmc.RegularMesh
. - The
get_rectangular_prism
function has been renamedopenmc.model.rectangular_prism
. - The
get_hexagonal_prism
function has been renamedopenmc.model.hexagonal_prism
. - Python bindings to the C/C++ API have been move from
openmc.capi
toopenmc.lib
.
Bug fixes
- Rotate azimuthal distributions correctly for source sampling
- Fix reading ASCII ACE tables in Python 3
- Fix bug for distributed temperatures
- Fix bug for distance to boundary in complex cells
- Bug fixes for precursor decay rate tallies
- Check for invalid surface IDs in region expression
- Support for 32-bit operating systems
- Avoid segfault from unused nuclides
- Avoid overflow when broadcasting tally results
Contributors
This release contains new contributions from the following people:
- @brbass
- @wbinventor
- @makeclean
- @dryuri92
- @GiudGiud
- @graybri3
- @hanzhuoran
- @smharper
- @drewejohnson
- @cjosey
- @shikhar413
- @tjlaboss
- @matiaslavista
- @liangjg
- @lindsayad
- @johnnyliu27
- @amandalund
- @janmalec
- @icmeyer
- @aprilnovak
- @nelsonag
- @gridley
- @salcedop
- @paulromano
- @samuelshaner
- @shimwell
- @pshriwise
- @jtramm
- @rockfool
- @zxkjack123