Commit graph

153 commits

Author SHA1 Message Date
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
e2826fa57b Adding a from_xml method to the DAGUniverse class. Ensuring DAGMC universes are read into geometries from XML files. 2021-06-29 17:54:57 -05:00
Patrick Shriwise
afaf3b04bf Updates to the Python API to support model generation with DAGMC universes. 2021-05-19 18:01:35 -05:00
Patrick Shriwise
d94710996f Abstracting the Python Universe class. Adding a DAGMC Universe. 2021-05-19 18:01:35 -05:00
Yue JIN
2ace13378c Examine if the region exists before removing redundant surfaces 2020-09-03 11:09:02 +08:00
Paul Romano
16d7ec0641 Sort XML attributes to preserve pre-Python 3.8 XML writing behavior 2020-06-17 22:08:09 -05:00
Paul Romano
5547ecf88f Add versionadded directive for new arguments/functions in 0.12 2020-04-10 21:52:43 -05:00
Paul Romano
4943ae9307 Alphabetize import ordering (and use relative imports in a few places) 2020-04-06 15:16:09 -05:00
Paul Romano
e34a71b448 Remove unused imports across entire Python API 2020-03-31 18:11:31 -05:00
Paul Romano
3e995e0df6 Changes in geometry.py from PullRequest Inc. review 2020-03-23 20:55:01 -05:00
Paul Romano
cf6b67c05d Remove explicit inheritance from object for Python classes 2020-03-23 12:12:31 -05:00
Sterling Harper
f1bb96eaef
Merge pull request #1381 from GiudGiud/PR_recursive_LNS
Lattice discretization with degenerate and recursive local neighbor symmetry algorithms
2020-01-28 18:22:45 -05:00
Ethan Peterson
55fab15b9a Implementing duplicate surface detection and removal
Co-Authored-By: Andrew Johnson <drewej@protonmail.com>
Co-Authored-By: Patrick Shriwise <pshriwise@gmail.com>
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-01-20 09:45:44 -05:00
Giud
5c14652fe2
Merge branch 'develop' into PR_recursive_LNS 2019-12-06 01:24:29 -05:00
Patrick Shriwise
2761bdbf0e Passing empty memo set directly and using object instances instead of ids in the memo. 2019-11-08 14:20:03 -06:00
Patrick Shriwise
8478a577e3 Correcting return type in Geometry object and making get_all_cells/get_all_materials consistent there. 2019-11-07 14:58:31 -06:00
Patrick Shriwise
c5cef78ade Adding memo for get_all_cells/get_all_materials. 2019-11-07 14:57:09 -06:00
Patrick Shriwise
1308dc9f38 Removing whitespace 2019-11-01 07:54:44 -05:00
Patrick Shriwise
6bd25d43a3 Updating doc strings for the memo object in xml related calls. 2019-11-01 07:39:59 -05:00
Patrick Shriwise
05942a5ab5 Using a single set of object IDs as a memo. 2019-11-01 07:28:53 -05:00
Patrick Shriwise
4b654c2be0 Moving to memoization pattern instead of singleton class. 2019-11-01 07:28:53 -05:00
Patrick Shriwise
e12f7c9041 Adding reset before exporting a geometry. 2019-11-01 07:28:53 -05:00
Giud
5c48f325b0 Implement degenerate and recursive LNS lattice discretization schemes 2019-10-16 11:05:58 -04:00
Paul Romano
17d778e57f Allow export_to_xml methods to take a directory 2019-03-12 11:42:51 -05:00
Patrick Shriwise
275df356b4 Updating DAGMC test, harness, and statepoint read. 2018-10-01 13:40:16 -05:00
Paul Romano
fbf7713a33 Split up Geometry.from_xml, rename clean_xml -> _xml 2018-08-21 07:47:29 -05:00
Paul Romano
e8b99c0a38 Make sure lattice outer universe is added to child_of 2018-08-21 06:33:32 -05:00
Paul Romano
909c43b1e4 Look for materials.xml in same directory as geometry.xml for from_xml 2018-08-21 06:25:32 -05:00
Paul Romano
f42a75a9e1 Add Geometry.from_xml() capability 2018-08-17 12:02:02 -05:00
Paul Romano
d3d6dc87dc Remove a few more __future__ imports. Use collections.abc 2018-02-05 23:14:30 -05:00
Paul Romano
c428cee667 Remove __future__ and six imports 2018-02-05 23:14:30 -05:00
Paul Romano
b9ae596200 Add tests for openmc.Geometry and remove __eq__ on openmc.Lattice 2018-02-05 07:35:48 -06:00
Paul Romano
38550f3bf8 Use sorted() to sort XML elements in geometry.xml 2017-12-11 13:01:18 +07:00
Paul Romano
726d1a268f Sort materials list before creating <material> elements 2017-12-11 13:01:18 +07:00
Paul Romano
3aa456fd4b Move reset_auto_ids to mixin module and add set_auto_id and reserve_ids functions 2017-06-07 20:58:24 -05:00
Paul Romano
ca009e211e Manage unique IDs via new IDManagerMixin that uses class variables 2017-06-07 20:12:51 -05:00
Paul Romano
c24d32b5cd Address comments from @cjosey on #890 2017-05-31 21:00:01 -05:00
Paul Romano
8b6abad60e Allow determine_paths() to be called only to get number of instances 2017-05-31 07:11:11 -05:00
Will Boyd
364543b967 Now use memoization for geometry and materials cloning 2017-04-10 10:06:32 -04:00
Will Boyd
c4fe563395 Added clone method to Geometry class 2017-04-09 22:26:09 -04:00
tjlaboss
781d0aa976 Renamed back to 2017-03-30 14:10:15 -04:00
tjlaboss
fc23007dae Changed get_surfaces() to update_surface()
As per @paulromano's suggestion, renamed the method of
the `Region` class that updates the surface dictionary.
2017-03-30 13:37:12 -04:00
tjlaboss
30548c7c80 Addressed comments by @wbinventor 2017-03-30 13:34:51 -04:00
tjlaboss
8a275bbd77 Use Geometry.get_all_cells()
Geometry.get_all_cells() accounts for nested cells.
Geometry.root_universe.cells() doesn't.
2017-03-29 20:12:24 -04:00
tjlaboss
bff2f13f4c Cleanup 2017-03-29 20:07:44 -04:00
tjlaboss
a002e58ee8 Addressed changes suggested by @paulromano 2017-03-29 20:01:18 -04:00
tjlaboss
73888b223d Fixed get_all_surfaces() docstring too 2017-03-28 23:18:54 -04:00
tjlaboss
ce5e30b498 Changed "lattice" to "surface" in docstring 2017-03-28 23:16:36 -04:00
tjlaboss
44d99935d1 Made get_surfaces_from_region() private method 2017-03-28 23:15:37 -04:00
tjlaboss
9fcdd5e046 Wrote method Geometry.get_all_surface()
A method in the vein of `Geometry.get_all_cells()`
2017-03-28 17:50:29 -04:00