Commit graph

1672 commits

Author SHA1 Message Date
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
agnelson
6a9d43bcdb Added c-api methods for rotation matrix set/get 2021-07-28 05:37:13 -05:00
agnelson
1d8f4c922e Added a set/get_translation attribute to the Cell C-API interface. This is also tested. 2021-07-27 18:30:48 -05:00
Paul Romano
c9d84310d3 Merge branch 'develop' into properties-exim 2021-07-14 15:18:31 -05:00
Patrick Shriwise
1e3a38a96d Merge remote-tracking branch 'upstream/develop' into dagmc_universe 2021-06-30 09:12:35 -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
b62708f911
Merge pull request #1851 from helen-brooks/external-moab-interface
Support for external MOAB instance via new constructor
2021-06-25 09:34:08 -05:00
Patrick Shriwise
1a839061d4 Making DAGMC geom class attrs private where possible and adding accessors. 2021-06-25 07:45:15 -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
d6f483d36f Make sure openmc_properties_export/import appear in global namespace 2021-06-23 14:52:04 +07:00
Paul Romano
7a4e32f7d5 Add filetype and other metadata to properties.h5 2021-06-23 11:48:45 +07:00
Paul Romano
ef7b43d986 Add material density to properties.h5 2021-06-23 11:39:22 +07:00
Paul Romano
482848cadb Add openmc_properties_export/import to C API (incomplete) 2021-06-23 11:25:42 +07:00
Paul Romano
94fc050fec Add open_group that works with std::string 2021-06-23 10:23:47 +07:00
helen-brooks
130724e3f7 Small refactor of Tally::set_filters method: create new public method set_strides. 2021-06-15 16:12:01 +01:00
helen-brooks
b3b325d02f Add new constructor for MOAB Unstructured Mesh class, taking a pointer to an external MOAB instance as an argument 2021-06-15 16:12:01 +01:00
helen-brooks
12bd847129 Promote moab instance from unique to shared ptr and check null before calling constructor 2021-06-15 16:12:01 +01:00
helen-brooks
9ab4ae4755 Small refactor of MOAB construction into its own method 2021-06-15 16:12:00 +01:00
Paul Romano
1b6b73affa Changed version number of 0.13.0-dev 2021-06-15 09:41:29 +07:00
Paul Romano
aad2d4941d Change version to 0.12.2, add release notes 2021-06-09 17:03:57 +07:00
Patrick Shriwise
4abfbead4f Removing extra layer of inheritance for the UnstructuredMesh::surface_bins_crossed method. Correcting some formatting and spelling too. 2021-06-04 21:38:14 -05:00
Patrick Shriwise
ff69f5a07a Fixing dagmc header includes after rebase. 2021-05-19 20:33:34 -05:00
Patrick Shriwise
9ffbf02f40 Addressing comments from @makeclean. 2021-05-19 19:04:55 -05:00
Patrick Shriwise
d0f32b80e0 Updating formatting and a small refactor for the dagmc_filename function. 2021-05-19 19:04:55 -05:00
Patrick Shriwise
ec7595261f Adding doc strings to the dagmc header. 2021-05-19 19:04:55 -05:00
Patrick Shriwise
9874004e94 Moving the DAGMC surface implementation into the DAGMC files as well. 2021-05-19 19:04:02 -05:00
Patrick Shriwise
230e054ec3 Move DAGCell implementation into the dagmc files. 2021-05-19 19:03:32 -05:00
Patrick Shriwise
97691874f6 Improved handling of lower level DAGMC universes. 2021-05-19 18:57:05 -05:00
Patrick Shriwise
3293948248 65;6003;1cAdding a find_cell method to universes. 2021-05-19 18:55:58 -05:00
Patrick Shriwise
8658dbaed7 Removing another now unused function. 2021-05-19 18:54:19 -05:00
Patrick Shriwise
da6a369d1f Refactoring all of the openmc namespace functions into the DAGUniverse class. 2021-05-19 18:54:19 -05:00
Patrick Shriwise
4819e02f22 Removing some unused DAGMC functions. 2021-05-19 18:54:19 -05:00
Patrick Shriwise
4d58990957 Adjusting UWUW material IDs if needed. 2021-05-19 18:05:58 -05:00
Patrick Shriwise
fdcc1ddb7b Creating a new data member for auto-assigning material IDs. 2021-05-19 18:05: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
b3ad45f9a8 Formatting update to surface header. 2021-05-19 18:05:28 -05:00
Patrick Shriwise
70cb36b474 Corrections after rebasing. 2021-05-19 18:05:28 -05:00
Patrick Shriwise
c732e2ae88 Adding empty definition for dagmc materials function. 2021-05-19 18:05:28 -05:00
Patrick Shriwise
0bd2f9263b Always checking DAGMC models for additional material definitions. 2021-05-19 18:02:15 -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