Commit graph

23 commits

Author SHA1 Message Date
Paul Romano
f544d02e49
Don't write reaction rates in depletion results by default, remove per-stage data for multistage integrators (#3609) 2025-11-19 12:26:57 -05:00
Paul Romano
007ac8148b
Allow newer Sphinx version and fix docbuild warnings (#3571) 2025-09-19 07:27:41 +03:00
Lorenzo Chierici
7382b5d1c8
External transfer rates source term (#3088)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-05-12 15:48:21 -05:00
Paul Romano
906548db20
Release notes for 0.15.1 (#3340)
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2025-03-07 14:49:36 -06:00
Ethan Peterson
0f429e7ea7
simplifying LEQI docstring math and removing unnecessary operations (#2705) 2023-09-25 16:25:37 -05:00
Ethan Peterson
f4183b0fe3
fixed typo in CF4Integrator docstring (#2704) 2023-09-24 18:49:47 +00:00
Paul Romano
97414699fd
Update variable names for depletion 'n' vectors (#2583) 2023-07-06 14:48:36 -05:00
yardasol
4818a296d4 Made changes from paulromano's 2nd round of comments
- Syntax improvements and fixes
- removed `flux` parameter from Integrator
- Moved generate_1g_cross_sections to a top level function in
  flux_operator.py
- changed normalization modes: constant-flux -> source-rate;
  constant-power -> fission-q
- fixed regression tests (fission-q reference solution was bad before,
  but is now much more reasonable and comparable to the source-rate
  reference solution)
- added `nuc_units` parameter to the `from_nuclides` method.
- docstring fixes
- RST doc fixes
- spelling fixes
2022-07-27 13:30:56 -05:00
Paul Romano
03ee3d6e77 Fix equations in docstrings for a few depletion integrations 2022-04-21 09:53:50 -05:00
Paul Romano
90146b5bc5 Update depletion integration equations in documentation 2022-02-04 07:19:42 -06:00
agnelson
dc80b799ac Resolving comments from @paulromano and updating tests accordingly 2021-09-29 18:51:00 -05:00
agnelson
3f24c3d4e1 Added a LIB_INIT module-level flag to openmc.lib. Began process of setting up model to be able to use the C-API instead of only working with XML files 2021-09-23 16:22:42 -05:00
Paul Romano
14fdcf9d4d More renames of power to source_rate 2020-08-03 07:38:35 -05:00
Paul Romano
8d489cc23b Simplify Integrator docstrings, few more power -> source_rate 2020-08-03 07:38:35 -05:00
Andrew Johnson
7fdfe0ec0b
Documentation fixes for configurable CRAM solver
Recommendations and typos found through review with
@paulromano
2020-05-14 08:12:14 -04:00
Andrew Johnson
8d2d11bf49
Configure depletion solver with Integrator argument, attribute
Users can pass a string or callable function to the Integrator
construction to configure the depletion solver, defaulting to
CRAM48. Supported strings are "cram16" and "cram48". Callables are
passed to the new solver attribute, and must accept three input
arguments for A, n0, and dt. Functions are expected to return
an array of compositions for this material.

Imports of CRAM48 and CRAM16 are delayed until inside the class
since the cram module imports from abc and can lead to a circular
import.
2020-05-09 15:01:51 -04:00
Andrew Johnson
24212ae731
Require function as first argument to cram.deplete
Done in order to remove hardcoded used of CRAM48
2020-05-09 15:01:09 -04:00
Paul Romano
5547ecf88f Add versionadded directive for new arguments/functions in 0.12 2020-04-10 21:52:43 -05:00
Paul Romano
39a60c361c
Clarify that heavy metal is initial
Co-Authored-By: Andrew Johnson <drewej@protonmail.com>
2020-02-12 07:19:31 -06:00
Paul Romano
85264aa38c Support minutes and hours for depletion timesteps rather than years 2020-02-11 07:08:53 -06:00
Paul Romano
32cc4c8d43 Support timestep units in Integrator.__init__ 2020-02-11 06:43:54 -06:00
Andrew Johnson
2514918591
Consistently document unused depletion index
The LEQI-type integrators are the only ones that need the current
depletion index. All other integrators now display the same
_i=None for this index in the call signature, and denote the
variable as optional and unused in the docstring
2019-08-07 11:09:51 -05:00
Andrew Johnson
0bc7800a92
Move openmc.deplete.integrator into openmc.deplete
Much of the previous API is intact, with the major change
being CRAM functions are imported from openmc.deplete.cram
in the test_deplete_cram.

The integrator abstract classes are placed in
openmc/deplete/abc.py with all concrete classes going in to
openmc/deplete/integrators.py

Documentation updated accordingly
2019-08-07 11:04:37 -05:00