Commit graph

82 commits

Author SHA1 Message Date
Paul Romano
bc09d1ef55 adding back files to be reviewed 2019-10-28 11:55:45 -05:00
Paul Romano
ae28233110 deleting all files to prepare for review 2019-10-28 11:48:19 -05: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
Paul Romano
d938fa0176 Fix bugs discovered during CNL workshop 2017-03-19 21:41:54 -05:00
Paul Romano
b8f6575cc4 Some bug fixes for volume calculations 2017-03-11 14:31:02 -06:00
Paul Romano
61f0138555 Add Plot.from_geometry() classmethod 2017-03-08 14:24:41 -06:00
Paul Romano
b87f2d6cd7 Make Geometry.get_instances accept iterables. Don't autocalculate paths 2017-03-07 10:48:38 -06:00
Paul Romano
cda58c9e8f Address @wbinventor comments on #821 2017-03-06 19:59:46 -06:00
Paul Romano
4cd527cb16 Rewrite Geometry.get_cell_instance -> Geometry.get_instance 2017-03-06 12:36:48 -06:00
Paul Romano
d22f10d60e Automatically determine paths when root_universe is assigned. 2017-03-06 12:36:48 -06:00
Paul Romano
fd7fa59192 Implement distributed paths 2017-03-06 12:36:48 -06:00
Will Boyd
c6348700ce Refactored cell/material instance counting into recursive methods defined on Universe class per request by @paulromano 2017-03-06 12:36:48 -06:00
Will Boyd
ddb72466c7 Cell and material counting now works for PyAPI with HexLattice 2017-03-06 12:36:48 -06:00
Will Boyd
3122d0798f Began adding code to count material instances 2017-03-06 12:36:48 -06:00
Will Boyd
3bed097f1b Added Cell.num_instances property and Geometry.count_cell_instances() method 2017-03-06 12:36:48 -06:00
Paul Romano
8be6a58603 Relax restriction that root universe have ID=0. 2017-03-06 12:36:48 -06:00
Paul Romano
d084b718f0 Fix Geometry.get_all_lattices() and Geometry.get_all_material_universes() 2017-03-04 00:25:30 -06:00
Paul Romano
cfb6339698 Change how volume is stored 2017-02-23 22:23:00 -06:00
Paul Romano
acdf287c01 Allow volume information to be added to materials and universes 2017-02-23 22:21:53 -06:00
Paul Romano
e40c89b34f Address a few more @wbinventor comments. Fix Jupyter notebooks. 2017-02-23 09:43:00 -06:00
Paul Romano
7ca46e809c Make get_all_* methods consistent -- always return dict 2017-02-23 07:39:28 -06:00
Paul Romano
357aa894c8 Get rid of WRITTEN_IDS global variable 2016-12-14 06:58:45 -06:00
Paul Romano
fbcb15f8c5 Simplify usage of DataLibrary.register_file() 2016-09-23 06:26:33 -05:00
Paul Romano
0fcc44bedb Fix specification of material temperature. Allow XML files to be exported to
non-default paths.
2016-09-13 23:16:10 +02:00