Skip to content

Commit

Permalink
Release of version 0.15.0 (#3050)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano authored Jun 22, 2024
1 parent 00faa7d commit 55b52b7
Show file tree
Hide file tree
Showing 60 changed files with 464 additions and 85 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ project(openmc C CXX)

# Set version numbers
set(OPENMC_VERSION_MAJOR 0)
set(OPENMC_VERSION_MINOR 14)
set(OPENMC_VERSION_RELEASE 1)
set(OPENMC_VERSION_MINOR 15)
set(OPENMC_VERSION_RELEASE 0)
set(OPENMC_VERSION ${OPENMC_VERSION_MAJOR}.${OPENMC_VERSION_MINOR}.${OPENMC_VERSION_RELEASE})
configure_file(include/openmc/version.h.in "${CMAKE_BINARY_DIR}/include/openmc/version.h" @ONLY)

Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
# built documents.
#
# The short X.Y version.
version = "0.14"
version = "0.15"
# The full version, including alpha/beta/rc tags.
release = "0.14.1-dev"
release = "0.15.0"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions docs/source/io_formats/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ then, OpenMC will only use up to the :math:`P_1` data.
.. note:: This element is not used in the continuous-energy
:ref:`energy_mode`.

------------------------
--------------------------------
``<max_history_splits>`` Element
------------------------
--------------------------------

The ``<max_history_splits>`` element indicates the number of times a particle can split during a history.

Expand Down
4 changes: 2 additions & 2 deletions docs/source/methods/random_ray.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ terms on the right hand side.
.. math::
:label: transport
\begin{align*}
\begin{aligned}
\mathbf{\Omega} \cdot \mathbf{\nabla} \psi(\mathbf{r},\mathbf{\Omega},E) & + \Sigma_t(\mathbf{r},E) \psi(\mathbf{r},\mathbf{\Omega},E) = \\
& \int_0^\infty d E^\prime \int_{4\pi} d \Omega^{\prime} \Sigma_s(\mathbf{r},\mathbf{\Omega}^\prime \rightarrow \mathbf{\Omega}, E^\prime \rightarrow E) \psi(\mathbf{r},\mathbf{\Omega}^\prime, E^\prime) \\
& + \frac{\chi(\mathbf{r}, E)}{4\pi k_{eff}} \int_0^\infty dE^\prime \nu \Sigma_f(\mathbf{r},E^\prime) \int_{4\pi}d \Omega^\prime \psi(\mathbf{r},\mathbf{\Omega}^\prime,E^\prime)
\end{align*}
\end{aligned}
In Equation :eq:`transport`, :math:`\psi` is the angular neutron flux. This
parameter represents the total distance traveled by all neutrons in a particular
Expand Down
262 changes: 262 additions & 0 deletions docs/source/releasenotes/0.15.0.rst

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/source/releasenotes/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Release Notes
.. toctree::
:maxdepth: 1

0.15.0
0.14.0
0.13.3
0.13.2
Expand Down
5 changes: 3 additions & 2 deletions examples/lattice/hexagonal/build_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@

# Create an initial uniform spatial source distribution over fissionable zones
bounds = [-1, -1, -1, 1, 1, 1]
uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)
settings_file.source = openmc.IndependentSource(space=uniform_dist)
uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:])
settings_file.source = openmc.IndependentSource(
space=uniform_dist, constraints={'fissionable': True})

settings_file.keff_trigger = {'type' : 'std_dev', 'threshold' : 5E-4}
settings_file.trigger_active = True
Expand Down
5 changes: 3 additions & 2 deletions examples/lattice/nested/build_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@

# Create an initial uniform spatial source distribution over fissionable zones
bounds = [-1, -1, -1, 1, 1, 1]
uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)
settings_file.source = openmc.IndependentSource(space=uniform_dist)
uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:])
settings_file.source = openmc.IndependentSource(
space=uniform_dist, constraints={'fissionable': True})

settings_file.export_to_xml()

Expand Down
5 changes: 3 additions & 2 deletions examples/lattice/simple/build_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@

# Create an initial uniform spatial source distribution over fissionable zones
bounds = [-1, -1, -1, 1, 1, 1]
uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)
settings_file.source = openmc.IndependentSource(space=uniform_dist)
uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:])
settings_file.source = openmc.IndependentSource(
space=uniform_dist, constraints={'fissionable': True})

settings_file.trigger_active = True
settings_file.trigger_max_batches = 100
Expand Down
5 changes: 3 additions & 2 deletions examples/pincell/build_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@
# Create an initial uniform spatial source distribution over fissionable zones
lower_left = (-pitch/2, -pitch/2, -1)
upper_right = (pitch/2, pitch/2, 1)
uniform_dist = openmc.stats.Box(lower_left, upper_right, only_fissionable=True)
settings.source = openmc.IndependentSource(space=uniform_dist)
uniform_dist = openmc.stats.Box(lower_left, upper_right)
settings.source = openmc.IndependentSource(
space=uniform_dist, constraints={'fissionable': True})

# For source convergence checks, add a mesh that can be used to calculate the
# Shannon entropy
Expand Down
5 changes: 3 additions & 2 deletions examples/pincell_multigroup/build_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@
# Create an initial uniform spatial source distribution over fissionable zones
lower_left = (-pitch/2, -pitch/2, -1)
upper_right = (pitch/2, pitch/2, 1)
uniform_dist = openmc.stats.Box(lower_left, upper_right, only_fissionable=True)
settings.source = openmc.IndependentSource(space=uniform_dist)
uniform_dist = openmc.stats.Box(lower_left, upper_right)
settings.source = openmc.IndependentSource(
space=uniform_dist, constraints={'fissionable': True})
settings.export_to_xml()

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion include/openmc/version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace openmc {
constexpr int VERSION_MAJOR {@OPENMC_VERSION_MAJOR@};
constexpr int VERSION_MINOR {@OPENMC_VERSION_MINOR@};
constexpr int VERSION_RELEASE {@OPENMC_VERSION_RELEASE@};
constexpr bool VERSION_DEV {true};
constexpr bool VERSION_DEV {false};
constexpr std::array<int, 3> VERSION {VERSION_MAJOR, VERSION_MINOR, VERSION_RELEASE};
// clang-format on

Expand Down
2 changes: 1 addition & 1 deletion openmc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
from openmc.model import Model


__version__ = '0.14.1-dev'
__version__ = '0.15.0'
4 changes: 2 additions & 2 deletions openmc/deplete/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ def integrate(
path : PathLike
Path to file to write. Defaults to 'depletion_results.h5'.
.. versionadded:: 0.14.1
.. versionadded:: 0.15.0
"""
with change_directory(self.operator.output_dir):
n = self.operator.initial_condition()
Expand Down Expand Up @@ -993,7 +993,7 @@ def integrate(
path : PathLike
Path to file to write. Defaults to 'depletion_results.h5'.
.. versionadded:: 0.14.1
.. versionadded:: 0.15.0
"""
with change_directory(self.operator.output_dir):
n = self.operator.initial_condition()
Expand Down
2 changes: 1 addition & 1 deletion openmc/deplete/microxs.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def from_multigroup_flux(
sections available. MicroXS entry will be 0 if the nuclide cross section
is not found.
.. versionadded:: 0.14.1
.. versionadded:: 0.15.0
Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions openmc/lib/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def material_volumes(
) -> List[List[Tuple[Material, float]]]:
"""Determine volume of materials in each mesh element
.. versionadded:: 0.14.1
.. versionadded:: 0.15.0
Parameters
----------
Expand Down Expand Up @@ -231,7 +231,7 @@ def get_plot_bins(
) -> np.ndarray:
"""Get mesh bin indices for a rasterized plot.
.. versionadded:: 0.14.1
.. versionadded:: 0.15.0
Parameters
----------
Expand Down
4 changes: 3 additions & 1 deletion openmc/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def get_homogenized_materials(
) -> List[openmc.Material]:
"""Generate homogenized materials over each element in a mesh.
.. versionadded:: 0.14.1
.. versionadded:: 0.15.0
Parameters
----------
Expand Down Expand Up @@ -1487,6 +1487,8 @@ def get_indices_at_coords(
) -> Tuple[int, int, int]:
"""Finds the index of the mesh voxel at the specified x,y,z coordinates.
.. versionadded:: 0.15.0
Parameters
----------
coords : Sequence[float]
Expand Down
2 changes: 1 addition & 1 deletion openmc/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def plot_xs(reactions, divisor_types=None, temperature=294., axis=None,
energy_axis_units : {'eV', 'keV', 'MeV'}
Units used on the plot energy axis
.. versionadded:: 0.14.1
.. versionadded:: 0.15.0
Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion openmc/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def rotate(self, rotation, pivot=(0., 0., 0.), order='xyz', inplace=False,
def plot(self, *args, **kwargs):
"""Display a slice plot of the region.
.. versionadded:: 0.14.1
.. versionadded:: 0.15.0
Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions openmc/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Settings:
max_particle_events : int
Maximum number of allowed particle events per source particle.
.. versionadded:: 0.14.1
.. versionadded:: 0.15.0
max_order : None or int
Maximum scattering order to apply globally when in multi-group mode.
max_history_splits : int
Expand Down Expand Up @@ -158,7 +158,7 @@ class Settings:
Starting ray distribution (must be uniform in space and angle) as
specified by a :class:`openmc.SourceBase` object.
.. versionadded:: 0.14.1
.. versionadded:: 0.15.0
resonance_scattering : dict
Settings for resonance elastic scattering. Accepted keys are 'enable'
(bool), 'method' (str), 'energy_min' (float), 'energy_max' (float), and
Expand Down
6 changes: 3 additions & 3 deletions openmc/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class IndependentSource(SourceBase):
Domains to reject based on, i.e., if a sampled spatial location is not
within one of these domains, it will be rejected.
.. deprecated:: 0.14.1
.. deprecated:: 0.15.0
Use the `constraints` argument instead.
constraints : dict
Constraints on sampled source particles. Valid keys include 'domains',
Expand Down Expand Up @@ -482,7 +482,7 @@ class MeshSource(SourceBase):
strength of the mesh source as a whole is the sum of all source strengths
applied to the elements.
.. versionadded:: 0.14.1
.. versionadded:: 0.15.0
Parameters
----------
Expand Down Expand Up @@ -1049,7 +1049,7 @@ def write_source_file(
def read_source_file(filename: PathLike) -> typing.List[SourceParticle]:
"""Read a source file and return a list of source particles.
.. versionadded:: 0.14.1
.. versionadded:: 0.15.0
Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions openmc/stats/multivariate.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ class Box(Spatial):
Whether spatial sites should only be accepted if they occur in
fissionable materials
.. deprecated:: 0.14.1
.. deprecated:: 0.15.0
Use the `constraints` argument when defining a source object instead.
Attributes
Expand All @@ -782,7 +782,7 @@ class Box(Spatial):
Whether spatial sites should only be accepted if they occur in
fissionable materials
.. deprecated:: 0.14.1
.. deprecated:: 0.15.0
Use the `constraints` argument when defining a source object instead.
"""
Expand Down
2 changes: 1 addition & 1 deletion openmc/trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Trigger(EqualityMixin):
can cause the trigger to fire prematurely if there are zero scores in
any bin at the first evaluation.
.. versionadded:: 0.14.1
.. versionadded:: 0.15.0
Attributes
----------
Expand Down
5 changes: 4 additions & 1 deletion tests/regression_tests/filter_cellfrom/inputs_true.dat
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@
<batches>15</batches>
<inactive>5</inactive>
<source particle="neutron" strength="1.0" type="independent">
<space type="fission">
<space type="box">
<parameters>-2.0 -2.0 -2.0 2.0 2.0 2.0</parameters>
</space>
<constraints>
<fissionable>true</fissionable>
</constraints>
</source>
<seed>1</seed>
</settings>
Expand Down
5 changes: 3 additions & 2 deletions tests/regression_tests/filter_cellfrom/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ def model():
core_radius,
core_height / 2.0,
]
distribution = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)
model.settings.source = openmc.IndependentSource(space=distribution)
distribution = openmc.stats.Box(bounds[:3], bounds[3:])
model.settings.source = openmc.IndependentSource(
space=distribution, constraints={'fissionable': True})

# =============================================================================
# Tallies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@
<batches>5</batches>
<inactive>1</inactive>
<source particle="neutron" strength="1.0" type="independent">
<space type="fission">
<space type="box">
<parameters>-2.0 -2.0 -2.0 2.0 2.0 2.0</parameters>
</space>
<constraints>
<fissionable>true</fissionable>
</constraints>
</source>
<surf_source_write>
<max_particles>300</max_particles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@
<batches>5</batches>
<inactive>1</inactive>
<source particle="neutron" strength="1.0" type="independent">
<space type="fission">
<space type="box">
<parameters>-2.0 -2.0 -2.0 2.0 2.0 2.0</parameters>
</space>
<constraints>
<fissionable>true</fissionable>
</constraints>
</source>
<surf_source_write>
<surface_ids>8</surface_ids>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@
<batches>5</batches>
<inactive>1</inactive>
<source particle="neutron" strength="1.0" type="independent">
<space type="fission">
<space type="box">
<parameters>-2.0 -2.0 -2.0 2.0 2.0 2.0</parameters>
</space>
<constraints>
<fissionable>true</fissionable>
</constraints>
</source>
<surf_source_write>
<surface_ids>4 5 6 7 8 9</surface_ids>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@
<batches>5</batches>
<inactive>1</inactive>
<source particle="neutron" strength="1.0" type="independent">
<space type="fission">
<space type="box">
<parameters>-2.0 -2.0 -2.0 2.0 2.0 2.0</parameters>
</space>
<constraints>
<fissionable>true</fissionable>
</constraints>
</source>
<surf_source_write>
<surface_ids>4 5 6 7 8 9</surface_ids>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@
<batches>5</batches>
<inactive>1</inactive>
<source particle="neutron" strength="1.0" type="independent">
<space type="fission">
<space type="box">
<parameters>-2.0 -2.0 -2.0 2.0 2.0 2.0</parameters>
</space>
<constraints>
<fissionable>true</fissionable>
</constraints>
</source>
<surf_source_write>
<surface_ids>4 5 6 7 8 9</surface_ids>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@
<batches>5</batches>
<inactive>1</inactive>
<source particle="neutron" strength="1.0" type="independent">
<space type="fission">
<space type="box">
<parameters>-2.0 -2.0 -2.0 2.0 2.0 2.0</parameters>
</space>
<constraints>
<fissionable>true</fissionable>
</constraints>
</source>
<surf_source_write>
<max_particles>300</max_particles>
Expand Down
Loading

0 comments on commit 55b52b7

Please sign in to comment.