Paul Romano
117e44f1e2
Use oqs namespace for quartic solver
2021-12-22 11:47:34 -05:00
Paul Romano
abe2247eb6
Minimial conversion of quartic_solver.c to C++
2021-12-22 11:47:34 -05:00
Paul Romano
377ee77486
Use quadric solver from ACM TOMS 46(2), pp1-28 (algorithm 1010)
2021-12-22 11:47:31 -05:00
Paul Romano
04bf63d0de
Run clang-format
2021-12-22 11:35:03 -05:00
Andrew Davis
ade2d4cb06
Andy's original torus implementation
2021-12-22 11:35:03 -05:00
Olaf Jochen Schumann
776c6baf1f
Changes request by @gridley
2021-12-22 16:19:58 +01:00
Olaf Schumann
d723dd7f07
Add Cylindrical & Spherical Mesh for Tally Filter
...
New method for ray-tracing the mesh, used for both MeshFilter & MeshSurfaceFilter. For all Structured Meshes!
meshes
negative/positive_grid_boundary to non-virtual function for speed
MeshIndex typedef now a std::array instead of int[3] -> Get rid of pointers (see e.g. core quidelines I.13)
MeshDistance class to stroe all relevant information
2021-12-20 19:41:52 +01:00
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