Commit graph

1515 commits

Author SHA1 Message Date
Gavin Ridley
41c8cb4106 improve URR lookup data layout and performance 2021-11-08 16:04:37 -05:00
Paul Romano
f0c1ce8bb1
Merge pull request #1896 from amandalund/atomic-relaxation-updates
Atomic relaxation updates
2021-10-20 21:02:28 -05:00
amandalund
10e4489ff0 Address reviewer feedback 2021-10-20 11:49:44 -05:00
Paul Romano
c2fe6327e2
Merge pull request #1890 from ojschumann/rational_dist
Rational univariate distribution
2021-10-12 22:26:02 -05:00
Olaf Schumann
c0bcc3f1ca Renamed Rational to Power Law 2021-10-11 19:48:35 +00:00
Olaf Schumann
358f64c53a
Apply suggestions from code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2021-10-11 21:20:30 +02:00
Olaf Schumann
9eeff1ede9 Update to rational distribution
* store offset, span and ninv in class
  * accessor functions calculate a, b, n
2021-10-05 20:04:21 +00:00
Olaf Schumann
eb0eac79c1 Rational univariate distribution, that sampled a random variable with a pdf of p = x^n
Usefull for samplig homogenous cylindrical or spherical sources
Simmilar to MCNPs "sp -21 n" functionality
2021-10-05 19:24:40 +00:00
Paul Romano
75b3d18446 Merge branch 'develop' into libpng 2021-10-05 12:49:35 -05:00
Paul Romano
c3bb352f8f
Merge pull request #1884 from nelsonag/model_control
Expanded capabilities of openmc.model.Model container
2021-10-05 12:46:51 -05:00
Paul Romano
6eea13043f Add support for PNG plots using libpng 2021-10-04 15:48:42 -05:00
amandalund
07a0ff5072 Add a helper function to calculate the maximum size of the stack used in atomic relaxation 2021-10-04 09:31:55 -05:00
amandalund
ba1a39e281 Make atomic_relaxation iterative instead of recursive 2021-10-04 09:31:55 -05:00
amandalund
d939bad736 Remove shell_map and refactor transition data 2021-10-04 09:31:54 -05:00
Paul Romano
fa500e2896
Merge pull request #1882 from ojschumann/stats_branch
Implementation of openmc.stats.Mixture distribution
2021-10-01 11:24:29 -05:00
agnelson
e4476fc0b7 Delayed mpi4py import until the user clearly indicated intent to use a communicator (or they already have created one and thus have already imported it); corrected versionchanged doc statements to include comments about what changed; added stackoverflow reference 2021-10-01 09:21:41 -05:00
agnelson
e8081207d7 Modified the C API to support setting material temperatures and to support setting the event based flag. Fixed failing MPI test. 2021-09-30 16:34:58 -05:00
agnelson
20c8043c1c (1) Made OpenMC load plots.xml upon initialization even if not in the plot runmode; (2) Made the finalize method clear plotting data; (3) allowed the openmc.lib and openmc.model package to call plot_geometry now that plots.xml would have been loaded 2021-09-30 15:15:58 -05:00
Patrick Shriwise
abee7b2e84
Merge pull request #1873 from aprilnovak/mesh-multiplication
Allow constant scaling factor to be applied to libMesh unstructured mesh
2021-09-28 19:03:43 -05:00
Olaf Schumann
60b5985746 update Mixture distribution
use std::pair instead of custom type
  lambda for comparison in std::lower_bound instead of operator<
2021-09-23 09:55:58 +00:00
Olaf Schumann
e7fa663b3d Update mixture distribution
update storeage of c++ class
  update sampling -> uses std::lower_bound for O(log(N)) sampling of the
distribution
  implemented from_xml_element
  updated settings.rst
  include a mixture in the regression tests
2021-09-23 09:37:19 +00:00
Olaf Schumann
1c219600a1 Implementation of openmc.stats.Mixture distribution
Added to_xml_element python method
create <pair> nodes with probability and distribution definition in order to have the
data bundled together. A different approach might be to save just two lists of "values".

Implemented c++ Mixture class
  Parsing xml-data
  Sampling the distribution from the cummulative probability table
2021-09-22 15:44:03 +00:00
Patrick Shriwise
a6140709cc Allowing a scaling factor for MOAB meshes too. 2021-09-11 08:02:20 -05:00
Paul Romano
7969bb1488 Use <gsl/gsl-lite.hpp> include instead of <gsl/gsl> 2021-08-25 13:10:28 -05:00
Paul Romano
f6bebf50d7 Add missing 'override' specifications in cell.h 2021-08-25 12:30:39 -05:00
Patrick Shriwise
f769afed93 Correction to docstring. 2021-08-25 07:32:12 -05:00
Patrick Shriwise
80dc5af4db
Update include/openmc/cell.h
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2021-08-23 14:45:08 -05:00
Patrick Shriwise
ed54e4df19 Removing unused parameter in Cell::find_parent_cells 2021-08-23 08:09:13 -05:00
Patrick Shriwise
137abfeedc Moving ParentCell* into cell.cpp 2021-08-23 08:09:13 -05:00
Patrick Shriwise
ccfaca8bdb Adding doc strings for PartentCell* and CellInstance* 2021-08-23 08:09:13 -05:00
April Novak
9165a836fe
Apply suggestions from code review
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2021-08-19 16:08:57 -05:00
aprilnovak
ea79fa079f Allow constant scaling factor to be applied to libMesh unstructured meshes. Refs #1872 2021-08-18 15:49:58 -05:00
Patrick Shriwise
5f2961cd55 Moving to unordered set. Applying style formatter. 2021-08-18 09:55:54 -05:00
Patrick Shriwise
e5e1c6eccc Adding a few more comments. Changing to use of openmc::vector. 2021-08-18 09:20:29 -05:00
Patrick Shriwise
64e93c930c Moving the compute_instance method to the ParentCellStack and adding some documentation there. 2021-08-18 08:52:10 -05:00
Patrick Shriwise
b9851b4c36 Some cleanup of the alg and ParentStack accessor. 2021-08-18 08:46:58 -05:00
Patrick Shriwise
0817a792d9 Applying a new stack to simplify parent cell traversal alg. 2021-08-18 08:46:58 -05:00
Patrick Shriwise
b94174cf96 Adding algorithm for finding parent cells of a cell instance. 2021-08-18 08:46:58 -05:00
Paul Romano
1bc2bd8460 Apply clang-format on entire source 2021-08-11 11:41:49 -05:00
Patrick Shriwise
e8788cc1bb Using vector instead of unordered_set for user-specified distribcells. 2021-08-10 08:06:54 -05:00
Patrick Shriwise
88ec652760 Make the user-defined distribcells an argument to the function. 2021-08-05 17:03:37 -05:00
Patrick Shriwise
7cb0b855f6 Adding a set of distribcells that can be manually set. 2021-08-05 16:33:52 -05:00
Paul Romano
180fefc99d
Merge pull request #1863 from pshriwise/cell_inst_filter
Enable cell instance tallies for universe/lattice-filled cells
2021-08-03 14:27:32 -05:00
Patrick Shriwise
822858dfbb
Update include/openmc/geometry.h
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2021-08-02 16:39:10 -05:00
agnelson
ad3a14fa3d Resolving comments from @paulromano. Namely, set the openmc.lib.Cell rotation and translations to be properties that can take iterables vice ndarrays. Also removed const declaration when not needed. Finally, revised code and tests so that we do not return a None for non-initialized cases. This would yield different behavior between translation and rotation and instead of leading to confusion I now simply always return a sensical ndarray of float values.That is no rotation is no longer None, but is now array([0., 0., 0.]). 2021-07-30 11:42:27 -05:00
Patrick Shriwise
b2efde1033 Removing unused method declaration. 2021-07-30 10:41:53 -05:00
Patrick Shriwise
4c55737a94 Better method for supporting non-material filled cells. 2021-07-29 14:55:23 -05:00
Patrick Shriwise
ca5dc796b9 Updating error messages. Adding cell instance cells to our distribcell set. 2021-07-29 10:53:14 -05:00
Patrick Shriwise
058e5a9094 Allowing cell instance filters for non material-filled cells. 2021-07-28 18:32:13 -05:00
Patrick Shriwise
4e3350ebcf Adding a function to determine the instance of a cell at any level of Particle::coords. 2021-07-28 17:54:56 -05:00