Commit graph

122 commits

Author SHA1 Message Date
myerspat
090363b637 Fixed error due to applying de morgans laws 2022-08-26 12:47:08 -04:00
myerspat
80c8692537 Removed one of the region vectors and changed HDF5 output for geometry 2022-08-25 11:47:14 -04:00
myerspat
82bbf71413 Reduced contains_complex to one while loop 2022-08-15 15:04:03 -04:00
myerspat
809863c15c Removed second region expression so search finding relys on region_ 2022-08-15 10:18:45 -04:00
myerspat
bce3cc0da4 Added rpn back for bounding box 2022-08-04 15:46:10 -04:00
myerspat
8a5df89ea5 enforced precedence if intersections proceed unions without parenthesis 2022-07-28 12:22:28 -05:00
myerspat
7dfb35a39a removed rpn_ and changed to only region_ 2022-07-27 12:15:46 -05:00
helen-brooks
cc6c3ac9e6 More refactoring of DAGMC universe metadata; allow external setting of material temperature and population of universes' cells 2022-04-20 15:12:52 +01:00
Patrick Shriwise
4699732faa Separating the universe classes into their own source and header file 2022-04-05 08:53:43 -05:00
Patrick Shriwise
c8a1505635 Renaming longer find parent search method 2022-02-09 21:29:34 -06:00
Patrick Shriwise
c148683d82 Using find_cell to determine upward path through geometry 2022-02-09 20:44:39 -06:00
Patrick Shriwise
2332dd2fae Adding support for a position hint to get_contained_cells for acceleration 2022-02-09 20:44:39 -06: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
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
agnelson
6a9d43bcdb Added c-api methods for rotation matrix set/get 2021-07-28 05:37:13 -05:00
Paul Romano
c9d84310d3 Merge branch 'develop' into properties-exim 2021-07-14 15:18:31 -05:00
Patrick Shriwise
ef70e12142 Enhancing to/from hdf5 methods so that DAGMC universes can be reproduced and exported to XML from a summary file. 2021-06-29 21:04:23 -05:00
Patrick Shriwise
648054fbc7 Adding a fucntion for printing a warning if a root DAGMC universe does not contain a graveyard volume. 2021-06-28 15:01:32 -05:00
Patrick Shriwise
5e4aef6cb0 Removing virtual on Cell::to_hdf5. 2021-06-25 07:45:15 -05:00
Patrick Shriwise
fbcaf5acd8
Apply PR suggestions from @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2021-06-25 07:45:02 -05:00
Paul Romano
482848cadb Add openmc_properties_export/import to C API (incomplete) 2021-06-23 11:25:42 +07:00
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