Commit graph

43 commits

Author SHA1 Message Date
Jonathan Shimwell
db426b66ca
Materials name persist when running depletion simulation (#3738)
Co-authored-by: GuySten <guyste@post.bgu.ac.il>
Co-authored-by: GuySten <62616591+GuySten@users.noreply.github.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-01-27 06:06:36 +00:00
Jonathan Shimwell
f81962c960
Allowing chain_file to be chain object to save reloading time (#3436)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-06-12 21:02:35 +00:00
Jonathan Shimwell
820648daee
using reduce chain level to remove need for reduce chain (#3377)
Co-authored-by: Jon Shimwell <jon@proximafusion.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-04-23 06:44:46 +00:00
Olek
865c80a5f9
Reflect multigroup MicroXS in IndependentOperator docstrings (#3327)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-02-25 19:50:00 +00:00
John Tramm
172867b1df
Random Ray Adjoint Mode (#3191)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-11-20 20:15:41 +00:00
azimG
1645e3bb87
Mat ids reset (#3125)
Co-authored-by: azimgivron <azimgivron@gmail.com>
Co-authored-by: azim_givron <a.givron@naarea.fr>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-09-27 00:31:59 +00:00
John Vincent Cauilan
4c0e08bae8
Replace all deprecated Python typing imports and syntax with updated forms (#3085)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-07-18 17:40:42 +00:00
Sigfrid Stjärnholm
b1b8a4c328
Set OpenMCOperator materials to the model materials when diff_burnable_mats = True (#2877) 2024-06-12 22:46:18 -05:00
Jonathan Shimwell
b97149ddf8
removed error raising when calling warn (#2853) 2024-01-20 13:06:45 -06:00
Paul Romano
94f02ae10b
Bump version to 0.14.0-dev (#2740) 2023-10-31 16:55:19 -05:00
Jonathan Shimwell
989875b070
allowing different volume methods for diff mat (#2691)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-09-26 00:37:25 +00:00
Olek
bbd7756930
Allow decay only nuclides to be specified in Material for a depletion simulation (#2616)
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-09-14 01:00:52 +00:00
Paul Romano
d21b653d32
Refactor MicroXS class and usage in IndependentOperator (#2595)
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
Co-authored-by: Olek <45364492+yardasol@users.noreply.github.com>
2023-08-31 10:55:21 -04:00
Jonathan Shimwell
457bea6f0b
replaced ordereddict with {} (#2641)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-08-19 12:15:11 +00:00
Paul Romano
8ce5c7366c
Remove initial dilute nuclides in depletion (#2568) 2023-06-21 14:45:59 +02:00
Lorenzo Chierici
c5bc2302eb
Transfer rates mpi (#2551)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-06-15 23:00:20 -05:00
Paul Romano
787b3e0308
Use multiply_density in depletion reaction rate helper classes (#2559)
Co-authored-by: Andrew Johnson <drewejohnson@users.noreply.github.com>
2023-06-14 22:15:22 -07:00
Jonathan Shimwell
c0391781ca changed error message to preferred option 2023-02-10 09:22:10 +00:00
shimwell
b559d32d68 custom error message for name is None 2023-02-09 19:47:29 +00:00
Jonathan Shimwell
016a5e5b3c moved full stop 2023-02-07 10:24:39 +00:00
Jonathan Shimwell
ecebe25f36 making error message more helpful with material name 2023-02-07 10:23:28 +00:00
Paul Romano
a08072e450
Update comment in openmc_operator.py per @yardasol suggestion
Co-authored-by: Olek <45364492+yardasol@users.noreply.github.com>
2022-11-21 15:57:23 -06:00
Paul Romano
5dc6550312 Rename divide_by_adens --> divide_by_atoms 2022-11-21 14:51:40 -06:00
Paul Romano
18337073f4 Fix name change on mat_to_ind, nuc_to_ind 2022-09-26 15:19:05 -05:00
Jonathan Shimwell
ffe336c2ef
Merge pull request #2211 from paulromano/config
Allow configuration of data sources via openmc.config
2022-09-21 16:47:20 +01:00
josh
b8ffbe000b Add a basic cache system for the burnable material reaction rates tallies 2022-09-10 00:07:31 +00:00
Paul Romano
a074e0a5cf Use openmc.config['cross_sections'] instead of OPENMC_CROSS_SECTIONS 2022-09-07 16:46:10 -05:00
Olek
22e23374dd
Apply suggestions from code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-11 13:38:45 -05:00
yardasol
8969b9b4e9 remove unneeded parameter from update 2022-08-10 15:53:40 -05:00
yardasol
89d79310bb revert DepletionOperator to TransportOperator; doc updates 2022-08-01 12:44:28 -05:00
yardasol
3e81a86915 TransportOperator->DepletionOperator 2022-07-30 18:37:51 -05:00
yardasol
3e827530ba make changes from @paulromano's 3rd review
- syntax fixes and adjustments
- change name of FluxDepletionOperator to IndependentOperator
- flux_operator.py -> independent_operator.py
- new class, MicroXS, for creating (for now) one-group microscopic
  cross section DataFrames. This class takes the functionality that was
  previously in static functions in IndependentOperator
- Associated changes to the test suite and online docs
2022-07-28 17:50:06 -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
yardasol
0984b29f67 add machinery to do constant-power depletion with FluxDepletionOperator 2022-07-21 12:14:47 -05:00
yardasol
06f34b9f23 address most of paulromano's comments 2022-07-21 11:00:45 -05:00
yardasol
3aad43a3ba remove unneeded parameters from OpenMCOperator 2022-07-19 11:25:45 -05:00
yardasol
efa92ad865 Address pauromano's comments 2022-07-19 10:05:47 -05:00
yardasol
8bf4465b27 docstring updates 2022-07-14 16:50:05 -05:00
yardasol
47344ca5cb spell checker typo fixes 2022-07-14 14:22:33 -05:00
yardasol
0a05f9dcb4 pep8 fixes 2022-07-14 12:54:51 -05:00
yardasol
6ff164131c clean up docstrings, function ordering 2022-07-14 12:53:41 -05:00
yardasol
35ddf8b23c move reusable code to new parent class; 2nd pass; some minor docstring edits 2022-07-13 17:17:26 -05:00
yardasol
f5db4e3afb move reuasble code to new parent class; 1st pass
- new class OpenMCOperator to contain shared bits of code between the
  currently existing Operator class and the as-of-yet to be created
  FluxDepletionOperator class
- Operator is now a subclass of OpenMCOperator
- move _distribute method to OpenMCOperator
- move _get_burnable_mats, _extract_number, _set_number_from_mat,
  _set_number_from_results to OpenMCOperator
- split initial condition into openmc.lib dependent and non-dependent
  parts; dependent part goes to Operator, non-dependent part goes to
  OpenMCOperator
- move _update_materials to OpenMCOperator
- move _get_tally_nuclides to OpenMCOperator
- rename _unpack_tallies_and_normalize to _calculate_reaction_rates;
  move to OpenMCOperator
- move get_results_info to OpenMCOperator
2022-07-12 18:38:05 -05:00