Skip to content

Commit 10f103c

Browse files
authored
Merge pull request #1960 from paulromano/prepare-0.13.0
Prepare for version 0.13.0
2 parents 0c2b284 + 892432a commit 10f103c

File tree

26 files changed

+215
-82
lines changed

26 files changed

+215
-82
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2011-2021 Massachusetts Institute of Technology, UChicago Argonne
1+
Copyright (c) 2011-2022 Massachusetts Institute of Technology, UChicago Argonne
22
LLC, and OpenMC contributors
33

44
Permission is hereby granted, free of charge, to any person obtaining a copy of

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
# General information about the project.
6464
project = 'OpenMC'
65-
copyright = '2011-2021, Massachusetts Institute of Technology, UChicago Argonne LLC, and OpenMC contributors'
65+
copyright = '2011-2022, Massachusetts Institute of Technology, UChicago Argonne LLC, and OpenMC contributors'
6666

6767
# The version info for the project you're documenting, acts as replacement for
6868
# |version| and |release|, also used in various other places throughout the

docs/source/license.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
License Agreement
55
=================
66

7-
Copyright © 2011-2021 Massachusetts Institute of Technology, UChicago Argonne
7+
Copyright © 2011-2022 Massachusetts Institute of Technology, UChicago Argonne
88
LLC, and OpenMC contributors
99

1010
Permission is hereby granted, free of charge, to any person obtaining a copy of

docs/source/methods/geometry.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,14 +490,14 @@ where
490490
.. math::
491491
:label: dist-xtorus-4
492492
493-
\begin{align*}
493+
\begin{aligned}
494494
c_2 &= Du^2 + v^2 + w^2 \\
495495
c_1 &= 2(Du\bar{x} + v\bar{y} + w\bar{z}) \\
496496
c_0 &= D\bar{x}^2 + \bar{y}^2 + \bar{z}^2 + A^2 - C^2 \\
497497
c_2' &= 4A^2 (v^2 + w^2) \\
498498
c_1' &= 8A^2 (v\bar{y} + w\bar{z}) \\
499499
c_0' &= 4A^2(\bar{y}^2 + \bar{z}^2).
500-
\end{align*}
500+
\end{aligned}
501501
502502
Expanding the left-hand side and collecting like powers of :math:`d` on one
503503
side, we obtain

docs/source/pythonapi/base.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Building geometry
9090
openmc.Complement
9191
openmc.Cell
9292
openmc.Universe
93+
openmc.DAGMCUniverse
9394
openmc.RectLattice
9495
openmc.HexLattice
9596
openmc.Geometry
@@ -143,6 +144,8 @@ Constructing Tallies
143144
openmc.ParticleFilter
144145
openmc.RegularMesh
145146
openmc.RectilinearMesh
147+
openmc.CylindricalMesh
148+
openmc.SphericalMesh
146149
openmc.UnstructuredMesh
147150
openmc.Trigger
148151
openmc.TallyDerivative

docs/source/pythonapi/capi.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ Functions
1313
:template: myfunction.rst
1414

1515
calculate_volumes
16+
export_properties
1617
finalize
1718
find_cell
1819
find_material
1920
hard_reset
21+
import_properties
2022
init
2123
iter_batches
2224
keff
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
====================
2+
What's New in 0.13.0
3+
====================
4+
5+
.. currentmodule:: openmc
6+
7+
-------
8+
Summary
9+
-------
10+
11+
This release of OpenMC includes several noteworthy and unique features. Most
12+
importantly, mesh-based weight windows have been added and work with all
13+
supported mesh types (regular, rectilinear, cylindrical, spherical, and
14+
unstructured). Other additions include torus surfaces, an ability to place
15+
CAD-based geometries in universes, a feature to export/import physical
16+
properties, and a filter for particle time.
17+
18+
There is one breaking changing in the Python API. The
19+
:class:`openmc.deplete.Operator` class used to accept :class:`~openmc.Geometry`
20+
and :class:`~openmc.Settings` objects as its first two arguments; users now need
21+
to pass a :class:`~openmc.model.Model` class instead.
22+
23+
The minimum supported Python version is now 3.6.
24+
25+
------------
26+
New Features
27+
------------
28+
29+
- Variance reduction using mesh-based weight windows is now possible with the
30+
:class:`~openmc.WeightWindows` class.
31+
- Users can now model axis-aligned tori using the :class:`~openmc.XTorus`,
32+
:class:`~openmc.YTorus`, and :class:`~openmc.ZTorus` classes.
33+
- DAGMC CAD-based geometries can now be placed in a universe using
34+
:class:`~openmc.DAGMCUniverse`, allowing users to combine CSG and CAD-based
35+
geometry in a single model.
36+
- The C/C++ API has two new functions ``openmc_properties_export`` and
37+
``openmc_properties_import`` with corresponding Python API bindings,
38+
:func:`~openmc.lib.export_properties` and
39+
:func:`~openmc.lib.import_properties`. These functions allow physical
40+
properties (temperatures, densities, material compositions) to be written to
41+
an HDF5 file and re-used for subsequent simulations.
42+
- A new :class:`~openmc.stats.PowerLaw` univariate distribution
43+
- The capabilities of the :class:`~openmc.Model` class have been substantially
44+
expanded (e.g., the :meth:`~openmc.model.Model.deplete`,
45+
:meth:`~openmc.model.Model.plot_geometry`, and
46+
:meth:`~openmc.model.Model.rotate_cells` methods).
47+
- A new :class:`~openmc.TimeFilter` class that allows tallies to be filtered
48+
by the particle's time, which is now tracked.
49+
- The :class:`~openmc.Source` class now allows you to specify a time
50+
distribution.
51+
- The new :class:`~openmc.CylindricalMesh` and :class:`~openmc.SphericalMesh`
52+
can be used for mesh tallies over cylidrical and spherical meshes,
53+
respectively.
54+
- Geometry plotting, which used to produce the files in the unusual .ppm format,
55+
now produces .png files by default.
56+
57+
---------
58+
Bug Fixes
59+
---------
60+
61+
- `Fix for shared fission bank memory errors <https://github.com/openmc-dev/openmc/pull/1856>`_
62+
- `Make sure properties export only happens from root process <https://github.com/openmc-dev/openmc/pull/1864>`_
63+
- `Fix pathlib use error in openmc-ace-to-hdf5 <https://github.com/openmc-dev/openmc/pull/1867>`_
64+
- `Fix DAGMC and libMesh variable in CMake config <https://github.com/openmc-dev/openmc/pull/1870>`_
65+
- `Fix bug associated with volume calc in MG mode <https://github.com/openmc-dev/openmc/pull/1889>`_
66+
- `Add missing Settings.write_initial_source property <https://github.com/openmc-dev/openmc/pull/1895>`_
67+
- `Bug fixes for specifying Materials.cross_sections <https://github.com/openmc-dev/openmc/pull/1898>`_
68+
- `Removing Legendre filter in diffusion coefficient results <https://github.com/openmc-dev/openmc/pull/1909>`_
69+
- `Ensure particles lost during event_calculate_xs are terminated <https://github.com/openmc-dev/openmc/pull/1911>`_
70+
- `Fixed parsing of xsdir entries with a continuation line <https://github.com/openmc-dev/openmc/pull/1913>`_
71+
- `openmc.RegularMesh attribute consistency <https://github.com/openmc-dev/openmc/pull/1922>`_
72+
- `Ensure secondary particles below energy cutoff are not created <https://github.com/openmc-dev/openmc/pull/1924>`_
73+
- `Allow compilation with g++ 11 <https://github.com/openmc-dev/openmc/pull/1938>`_
74+
- `Depletion-related bug fixes <https://github.com/openmc-dev/openmc/pull/1946>`_
75+
- `Miscellaneous bug fixes <https://github.com/openmc-dev/openmc/pull/1948>`_
76+
- `Fixes for various bugs <https://github.com/openmc-dev/openmc/pull/1949>`_
77+
- `Reset triggers in openmc_reset <https://github.com/openmc-dev/openmc/issues/1957>`_
78+
79+
------------
80+
Contributors
81+
------------
82+
83+
- `Hunter Belanger <https://github.com/HunterBelanger>`_
84+
- `Helen Brooks <https://github.com/helen-brooks>`_
85+
- `Andrew Davis <https://github.com/makeclean>`_
86+
- `Valerio Giusti <https://github.com/valeriogiusti>`_
87+
- `Jeff Hammond <https://github.com/jeffhammond>`_
88+
- `Yuan Hu <https://github.com/YuanHu-PKU-KIT>`_
89+
- `Andrew Johnson <https://github.com/drewejohnson>`_
90+
- `Miriam Kreher <https://github.com/mkreher13>`_
91+
- `Amanda Lund <https://github.com/amandalund>`_
92+
- `Adam Nelson <https://github.com/nelsonag>`_
93+
- `April Novak <https://github.com/aprilnovak>`_
94+
- `Ariful Islam Pranto <https://github.com/AI-Pranto>`_
95+
- `Gavin Ridley <https://github.com/gridley>`_
96+
- `Paul Romano <https://github.com/paulromano>`_
97+
- `Olaf Schumann <https://github.com/ojschumann>`_
98+
- `Jonathan Shimwell <https://github.com/Shimwell>`_
99+
- `Patrick Shriwise <https://github.com/pshriwise>`_
100+
- `John Tramm <https://github.com/jtramm>`_

docs/source/releasenotes/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Release Notes
77
.. toctree::
88
:maxdepth: 1
99

10+
0.13.0
1011
0.12.2
1112
0.12.1
1213
0.12.0

docs/source/usersguide/install.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ Prerequisites
274274
.. _MPICH: https://www.mpich.org
275275
.. _HDF5: https://www.hdfgroup.org/solutions/hdf5/
276276
.. _DAGMC: https://svalinn.github.io/DAGMC/index.html
277+
.. _MOAB: https://bitbucket.org/fathomteam/moab
277278
.. _libMesh: https://libmesh.github.io/
279+
.. _libpng: http://www.libpng.org/pub/png/libpng.html
278280

279281
Obtaining the Source
280282
--------------------

examples/assembly/assembly.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ def assembly_model():
131131
parser.add_argument('--generate', action='store_true')
132132
parser.add_argument('--run', action='store_true')
133133
args = parser.parse_args()
134+
if not args.generate and not args.run:
135+
parser.print_help()
134136

135137
if args.generate or args.run:
136138
model = assembly_model()

0 commit comments

Comments
 (0)