Commit graph

169 commits

Author SHA1 Message Date
Paul Romano
db8d462738
Allow DistribcellFilter to work with apply_tally_results=True (#3667) 2025-12-04 06:53:04 -06:00
Gregoire Biot
2d77544b0c
Adding variance of variance and normality tests for tally statistics (#3454)
Co-authored-by: Ethan Peterson <eepeterson3@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-11-12 11:41:37 -05:00
Jonathan Shimwell
feefcc6713
Adding tally filter type option to statepoint get_tally (#3584)
Co-authored-by: Jon Shimwell <jon@proximafusion.com>
Co-authored-by: GuySten <62616591+GuySten@users.noreply.github.com>
2025-09-30 22:09:15 +00:00
Alex Nellis
781dbf9c12
Multi-group capability for kinetics parameter calculations with Iterated Fission Probability (#3425)
Co-authored-by: GuySten <guyste@post.bgu.ac.il>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-09-26 16:27:05 +00:00
ahman24
239f7fed5e
Implement user-configurable random number stride (#3067)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-03-04 17:26:38 -06:00
Patrick Shriwise
c794065d46
Fix access order issues after applying tally results from Model.run. (#3313)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-02-24 22:11:18 +00:00
Patrick Shriwise
f207d4220a
Adding methods to automatically apply results to existing Tally objects. (#2671)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-01-24 22:49:58 +00:00
Paul Romano
3dff03f824
Resolve warnings related to numpy 2.0 (#3044) 2024-06-19 15:47:08 -05:00
Jonathan Shimwell
ee7b95245a
Static errors continuation (#2557)
Co-authored-by: Christina Cai <chrsitinacai48933@gmail.com>
Co-authored-by: christinacai123 <63215816+christinacai123@users.noreply.github.com>
2023-06-16 22:34:02 -05:00
Paul Romano
c123ce0fa0
New multiply_density option on tallies (#2539) 2023-06-09 08:24:00 -04:00
Patrick Shriwise
b93ab95ba1 Adding more mesh interrogation options for the libmesh
Finishing methods for connectivity and coordinates.

Writing vertices and connectivity to statepoint file

Loading vertices and connectivity from statepoint. Correcting string repr

Correcting connectivity length

Adding method to write the mesh elements to VTK with data applied.

Updating hdf5 output to include element types

Adding support for hex elements when writing unstructured meshes to VTK

Adding simple check for VTK writing if the module is present

Removing centroids from the statepoint file and Python UM class

Updating test check for vtk

Adding warning for skipped elements. Correcting element type

Adding warning for skipped elements.

Using an enum to indicate element types for readability

Updating to element types on the Python side as well

Handling integer data applied to VTK files.

Doc updates for Python API UM class

Incrementing statepoint version number

Refactor of unstructured mesh tests to extract model

Updating inputs for floating point surface coefficients

Adding test for hexes and refactoring comparison funcs

Updating reference mesh files

Adding reference file for the hexes test case

Passing test for hex mesh

Adding inputs for the hexes test case.

Adding hex test meshes.

Skipping hex mesh test if not built with libmesh

Adding small VTK write tests for unstructured mesh.

Allowing file path to be a pathlib path.

Adding skips if libmesh or dagmc not enabled

Adding a few comments to test file

Changing where conversion to str happens for mesh filename. Setting output to false.

Removing VTK check from unstructured mesh regression test

Removnig VTK test files for regression test -- too large

Adding __init__.py file for pytest
2022-07-25 13:17:51 -05:00
Paul Romano
45a6b31c8f Change StatePoint.k_combined -> keff, ResultsList.get_eigenvalue -> get_keff 2022-05-02 12:09:43 -05:00
Jonathan
021aab9879 replaced .format with f strings 2021-07-29 20:28:51 +01:00
Jonathan Shimwell
192f4436a0 replaced .format with f string 2021-07-29 18:25:37 +01:00
Patrick Shriwise
983470ed4e Adding StatePoint.close(). Updating some examples. 2021-06-25 09:54:00 -05:00
YoungHui Park
b7adc7ffc9 Add missing changes on statepoint.py 2021-01-18 14:36:05 -06:00
Paul Romano
4f7617e90c Fix documentation for source site attributes 2020-10-14 15:10:03 -05:00
Paul Romano
4943ae9307 Alphabetize import ordering (and use relative imports in a few places) 2020-04-06 15:16:09 -05:00
Paul Romano
ffd78be628 Changes in statepoint.py from PullRequest Inc. review 2020-04-01 14:13:05 -05:00
alex-lyons
e98ddf9d8a Model.run now returns last statepoint path rather than k_eff. Updated tests and search. 2020-03-27 07:47:54 -05:00
Paul Romano
cf6b67c05d Remove explicit inheritance from object for Python classes 2020-03-23 12:12:31 -05:00
stevendargaville
a9fc400863 Also removed relative_max_lost_particles from statepoint python as it is not being written out 2020-02-13 14:51:32 +00:00
stevendargaville
18b469bfa5 Removed new variables from the statepoint python file as they are no longer read out 2020-02-13 14:44:53 +00:00
stevendargaville
9f64dd1a88 Modified the REL_MAX_LOST_PARTICLES const in particle.h to be a variable stored in settings that can be modified by the c/python/xml layers. 2020-02-11 13:37:26 +00:00
stevendargaville
516ac9e1d3 Modified the MAX_LOST_PARTICLES const in particle.h to be a variable stored in settings that can be modified by the c/python/xml layers. 2020-02-11 13:37:00 +00:00
Andrew Johnson
4b688e5efa
Teach openmc.StatePoint about internal tallies
When reading tally data from the statepoint file,
tallies that are marked as internal are not created nor added
to the StatePoint.tallies property
2019-09-20 10:31:56 -05:00
Sterling Harper
9ddd8b3067 Change Python Mesh class to RegularMesh 2019-06-07 08:51:09 -04:00
Sterling Harper
c196405a34 Add RectilinearMesh Python class 2019-05-28 13:23:59 -04:00
liangjg
ea71b9e377 replace all dataset.value with dataset[()] (or occasionally dataset[...]) 2019-03-27 11:45:48 -04:00
amandalund
85205b338c Address #1023 comments 2018-07-18 07:55:00 -05:00
Paul Romano
d5bc4dacae
Merge pull request #1001 from nelsonag/mgxs_expansion_with_tests
Incorporation of Expansion filters in to MGXS
2018-05-08 14:58:41 -05:00
Adam G Nelson
1d2ebb71f8 Implemented Expansion filters in to the MGXS classes and removed the old score-based expansions 2018-04-27 19:45:38 -04:00
Paul Romano
73b50e1e17 Make sure statepoint context manager closes linked summary 2018-04-24 06:32:18 -05:00
Paul Romano
8487915f2a Use ufloat for k_combined in statepoint 2018-03-15 11:02:07 -05:00
Paul Romano
e6b5803f70 Make filter_strides a property of Tally 2017-12-19 15:58:14 +07:00
Paul Romano
348f6d63a7 Use _update_filter_strides when reading statepoints 2017-08-24 14:57:55 -05:00
Paul Romano
002c7651c2 Address comments by @smharper on #892. 2017-06-15 14:38:25 -05:00
Paul Romano
ca009e211e Manage unique IDs via new IDManagerMixin that uses class variables 2017-06-07 20:12:51 -05:00
amandalund
70cc2f63c3 Address #871 comments: incremented statepoint revision, updated documented tallies.xml format, updated tallies RELAX NG schema 2017-05-23 13:07:40 -05:00
amandalund
375125c603 Merge branch 'develop' into separate_filters
* develop: (91 commits)
  Update resonance scattering test result
  removed additional unnecessary modifications
  removed unnecessary modifications
  updated to only modify the _swap_filters method
  Check for elastic scattering with isotropic mu.
  changed == to is
  fixed issue in tallies.py in making sure static copy of other filter gets updated and updated tests
  fixed bug for misaligned energy and energyout filters
  When 1 temp is available, revert to nearest temp on all processes
  added other_old to _swap_filter method
  fixed tally alignment method in tallies.py
  Make sure get_pandas_dataframe() works with 1D mesh filter
  Fix bug with SurfaceFilter bin ordering
  Check for void materials in tracklength tallies
  Make sure source is in geometry before fiss. check
  Make parent class for filters with IDed objects
  Allow objects in addition to ids in Filters
  Cleaned up rxn_rate_tally property for consistent scattering matrices
  Simplified code for xs_tally property for consistent scattering matrices
  Update inputs for test_diff_tally
  ...

Conflicts:
	openmc/filter.py
	src/output.F90
2017-04-30 17:41:38 -05:00
Paul Romano
f4d3ee7de5 Make StatePoint a context manager 2017-04-07 21:04:14 -05:00
amandalund
7af1be9302 Fix surface and mesh filters for current score 2017-03-30 10:50:12 -05:00
amandalund
08341f9c0c Fix statepoint and input XML; update test inputs 2017-03-29 21:28:56 -05:00
amandalund
a9eff2cfdd Fix statepoint 2017-03-28 16:31:40 -05:00
amandalund
f08567b096 Changed python API; changed how filters are written to statepoint; changed tally filters array to indices of filters in global array 2017-03-27 16:05:26 -05:00
Will Boyd
b3687b48ee Merge remote-tracking branch 'upstream/develop' into new-scatt-mat 2017-03-07 13:53:33 -05:00
Paul Romano
b87f2d6cd7 Make Geometry.get_instances accept iterables. Don't autocalculate paths 2017-03-07 10:48:38 -06:00
Paul Romano
2d1897a051 Remove offsets, distribcell_index, distribcell_paths 2017-03-06 12:36:48 -06:00
Paul Romano
30a613c3b6 Fix pandas dataframes 2017-03-06 12:36:48 -06:00
Will Boyd
e640146f8f Merge branch 'develop' into new-scatt-mat 2017-03-06 13:00:10 -05:00