Commit graph

139 commits

Author SHA1 Message Date
Patrick Shriwise
230e054ec3 Move DAGCell implementation into the dagmc files. 2021-05-19 19:03:32 -05:00
Patrick Shriwise
3293948248 65;6003;1cAdding a find_cell method to universes. 2021-05-19 18:55:58 -05:00
Patrick Shriwise
9fca1f690d Moving the DAGUniverse into the DAGMC header file. 2021-05-19 18:05:58 -05:00
Patrick Shriwise
6af978efb9 Moving UWUW material read into the DAGUniverse class. 2021-05-19 18:05:28 -05:00
Patrick Shriwise
956cf08481 Relying on the same enum to describe the Geometry type of different classes. 2021-05-19 18:02:15 -05:00
Patrick Shriwise
28153780a7 Moving the read_dagmc_universes function into the dagmc files. 2021-05-19 18:01:35 -05:00
Patrick Shriwise
f63ba31b55 Adding an option for reporting ID overlap between DAGMC and CSG geometry. 2021-05-19 18:01:35 -05:00
Patrick Shriwise
0a463be15e Adding universe types again. 2021-05-19 18:01:35 -05:00
Patrick Shriwise
108c2a2f35 Adding surface and cell offsets to the DAGUniverse to recover surface and cell indices. 2021-05-19 17:42:40 -05:00
Patrick Shriwise
c35c8dae43 Reading DAGMC universes from the geometry.xml now. 2021-05-19 17:41:38 -05:00
Patrick Shriwise
249a5bb511 Adding an XML node constructor for the DAGUniverse. 2021-05-19 17:41:38 -05:00
Patrick Shriwise
a16c0916da Using the DAGUniverse constructor to setup the DAGMC instance. 2021-05-19 17:41:38 -05:00
Patrick Shriwise
be5318fdb0 Reorganizing some of the DAGMC-related code and using shared pointers instead. 2021-05-19 17:41:38 -05:00
Gavin Ridley
061156e79a address PR comments 2021-05-03 18:03:06 -04:00
Gavin Ridley
ad4e1c9f4a remove std:: from vector,unique_ptr,make_unique,array 2021-05-03 18:01:27 -04:00
Paul Romano
6992e53398 Change declaration order of maps used for vectors
If the destructor of an object tries to remove an entry from the map, there's no
guarantee it exists if the map has already been destroyed (because it was
declared after the vector of objects), resulting in a segfault. By declaring the
map first, we avoid this. Currently an issue for Nuclide, but potentially other
classes in the future.
2020-07-29 15:48:14 -05:00
Patrick Shriwise
775cc1ae19 Incorporating @paulromano's comments 2020-06-02 09:10:13 -05:00
Patrick Shriwise
6cbf98962d Correction to formatting of default param. 2020-05-20 12:39:42 -05:00
Patrick Shriwise
29cfec5a20 Creating a separate struct for the parent cell concept. 2020-05-19 21:58:18 -05:00
Patrick Shriwise
c7fe3ab9a3 Renaming parameter to set_contained. 2020-05-19 13:51:38 -05:00
Patrick Shriwise
ad2aa90879 Making an inner function for the recursion to clean up the exerior API. 2020-05-18 13:47:19 -05:00
Patrick Shriwise
c77eb71832 Fix to the cell gathering algorithm 2020-05-18 13:47:19 -05:00
Patrick Shriwise
6390360dfa Initial layout of get_contained_cells. 2020-05-18 13:47:19 -05:00
Gavin Ridley
7df7fc280b
Merge branch 'develop' into add_enums2 2020-01-21 13:13:50 -05:00
Paul Romano
8f52e04735
Merge pull request #1451 from jtramm/no_thread_private
Preparation for event-based parallelism (Thread private variable removal)
2020-01-20 10:45:05 -06:00
Gavin Ridley
9483c409a8 convert all but one thing in cell.h to enums 2020-01-16 15:41:45 -05:00
John Tramm
f7fb5a036b Converted DagMC threadprivate variables to particle owned as well. Not quite as bad as I was expecting. 2020-01-14 16:24:26 +00:00
Paul Romano
37eaaabd6c Simplify CellInstance hash function and use template argument for unordered_map 2020-01-10 06:54:05 -06:00
Paul Romano
a14e3d98aa Move CellInstance to cell.h 2019-12-12 07:30:41 -06:00
Paul Romano
4950392fd0 Support for setting rotation matrix directly 2019-10-16 11:01:34 +07:00
Patrick Shriwise
c0e32b751b Addressing comments from @paulromano. 2019-09-16 23:48:52 -05:00
Patrick Shriwise
8ebfdc3eb7 Improving documentation. 2019-09-16 15:45:54 -05:00
Patrick Shriwise
962f3d46f1 Adding documentation for some of these new methods. 2019-09-16 15:45:54 -05:00
Patrick Shriwise
36fb89dead Making analagous function for finding the right parenthesis. 2019-09-16 15:45:54 -05:00
Patrick Shriwise
25df513a77 Renaming function. 2019-09-16 15:45:54 -05:00
Patrick Shriwise
789d55a35a Removing complement operator in a separate step. 2019-09-16 15:45:54 -05:00
Patrick Shriwise
0d02f8b2d2 Working now. Needs cleanup. 2019-09-16 15:45:54 -05:00
Patrick Shriwise
85fa32150a Still needs work 2019-09-16 15:45:53 -05:00
Patrick Shriwise
3439797e32 Update for case where the entire region is a complement. Addition of a cell and redefinition of another to test more robustly. 2019-07-24 03:02:10 -05:00
Patrick Shriwise
d820e6777a
Apply suggestions from code review
Accessing cell/material names through accessor. Returning a const reference from `name()` accessor in both cases.

Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2019-07-23 14:33:35 -05:00
Patrick Shriwise
933a5c4770 Updates based on suggestions from @paulromano. 2019-07-18 22:21:55 -05:00
Patrick Shriwise
54df651888 Adding Material accessors for name. 2019-07-18 12:25:53 -05:00
Patrick Shriwise
df379471dd Adding Cell accessors for name. 2019-07-18 12:19:13 -05:00
Patrick Shriwise
d223046b30 Adding complement operator back into internal cell RPN. Updating complex_cell bounding box algorithm to parse existing RPN. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
e9ac007367 Removing complement from internal RPN. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
08239a98d2 Adding a bounding box method to the universe class. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
470e26c783 Adding bbox defs for cells. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
446e78cb87 Updating bounding box definitions for all surfaces. 2019-07-16 16:52:30 -05:00
Paul Romano
5b0d8ed80c Add temperature interface for Cell 2019-07-09 06:43:16 -05:00
Patrick Shriwise
cb3f878d11 Renaming test. Altering includes in surface/cell.h to isolate external package includes. 2019-06-16 22:02:03 -05:00