Commit graph

180 commits

Author SHA1 Message Date
amandalund
c443208e21 Generate sphere packing container from openmc.Region 2018-11-14 16:04:30 -06:00
Paul Romano
f42a75a9e1 Add Geometry.from_xml() capability 2018-08-17 12:02:02 -05:00
Paul Romano
deab4b3d33 Use empty-argument form of super() 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
b0d35268f3 Add unit tests for surfaces 2018-02-05 07:35:18 -06:00
Paul Romano
61bdb5b322 Remove __eq__ and __hash__ on geometry objects 2017-12-17 07:16:05 +07:00
Paul Romano
6e9b8a5ce5 Move get_*_prism functions to openmc.model 2017-12-11 13:01:18 +07:00
Paul Romano
c3c9df6a85 Make Intersection and Union obey the mutable sequence protocol 2017-06-07 20:12:51 -05:00
Paul Romano
ca009e211e Manage unique IDs via new IDManagerMixin that uses class variables 2017-06-07 20:12:51 -05:00
Sam Shaner
e083b9423b fixed spacing in surface.py 2017-05-22 08:42:32 -04:00
Paul Romano
e2094435b8 Raise exception if periodic boundary used with rounded corners 2017-05-18 13:40:48 -05:00
Paul Romano
dbb30c6eb1 Add support for periodic boundary conditions on general planes 2017-05-18 13:08:12 -05:00
Paul Romano
946e2fd3b1 Fix bug applying boundary type to hexagon surfaces. Simplify handling of rounded
coners. PEP8 fixes.
2017-05-18 07:24:11 -05:00
Paul Romano
326c96f11f Improve coding for get_rectangular_region 2017-05-17 14:24:05 -05:00
Sam Shaner
e801ac2317 made corner_radius last argument 2017-05-17 14:00:31 -04:00
Sam Shaner
455c655c41 moved corner radius into get_rectangular_prism and get_hexagonal_prism functions 2017-05-17 10:59:55 -04:00
Sam Shaner
0fa5c63efb implemented square cylinder 2017-05-15 12:59:38 -04:00
Will Boyd
400b5e2c1d Added __hash__ method to Surface class; revised clone methods memo param to use objects as keys 2017-04-10 17:17:17 -04:00
Will Boyd
120dca7703 Renamed clone memoize param as memo per request by @paulromano 2017-04-10 12:10:34 -04:00
Will Boyd
12a0e00305 Expanded docstrings for all clone methods 2017-04-10 10:13:59 -04:00
Will Boyd
364543b967 Now use memoization for geometry and materials cloning 2017-04-10 10:06:32 -04:00
Will Boyd
45af8a2937 Tested geometry cloning with examples and fixed a few bugs 2017-04-09 22:23:49 -04:00
Will Boyd
06a918c1b5 First stab at implementing clone() methods for geometric and material primitives 2017-04-09 16:30:33 -04:00
Paul Romano
6c40fb640a Continue working through new user's manual 2017-04-03 11:53:23 -05:00
tjlaboss
781d0aa976 Renamed back to 2017-03-30 14:10:15 -04:00
tjlaboss
95d644f711 Merge branch 'get_surfs' of github.com:tjlaboss/openmc into get_surfs 2017-03-30 14:09:12 -04:00
tjlaboss
e4984311c3 Renamed update_surfaces back to get_surfaces 2017-03-30 14:08:38 -04:00
tjlaboss
5cc6e6a684 Changed if statement for surfaces
Corrected `if not surfaces` to `if surfaces is None`
2017-03-30 14:06:17 -04:00
tjlaboss
a01b87d628 Reverted rename of get_surfaces() 2017-03-30 14:03:17 -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
a002e58ee8 Addressed changes suggested by @paulromano 2017-03-29 20:01:18 -04:00
Will Boyd
fd79f41bc4 Added default setting for prism boundary type parameter to docstring 2017-03-07 08:14:48 -05:00
Will Boyd
2909cbbb25 Added boundary conditions to rectangular and hexagonal prisms 2017-03-07 08:12:11 -05:00
Paul Romano
f97154c6c0 Correctly write deferred-length character to HDF5 datasets 2017-03-03 09:17:55 -06:00
Paul Romano
01254d0b3d Make Universe, Lattice, and Material.from_hdf5 methods 2017-02-22 17:00:25 -06:00
Paul Romano
58bb9c18ee Address easy comments from @wbinventor 2017-02-22 14:50:16 -06:00
Paul Romano
8f2efa19dd Create Mesh.from_hdf5() and Surface.from_hdf5() methods 2017-02-21 21:26:25 -06:00
Will Boyd
07a025065e Fixed typos in rectangular prism docstring per comments by @paulromano 2017-02-09 09:59:01 -05:00
Will Boyd
369edbbc40 Added a method to create a rectangular prism to PyAPI 2017-02-03 09:46:05 -05:00
Paul Romano
9a3f3d1560 Use clever tricks to simplify Boolean geometry expressions 2016-12-14 06:57:51 -06:00
Paul Romano
5a126d086e Use six.string_types instead of basestring 2016-10-06 21:55:12 -05:00
Paul Romano
de009f4c34 Use six.add_metaclass to be compatible with Python 2 and 3 2016-10-06 21:55:12 -05:00
Paul Romano
c7a0b716d2 General cleanup -- both bugs and style issues -- based on running pylint 2016-07-02 11:04:25 +07:00
Paul Romano
07be6306ce Add Surface.evaluate() methods and Region.__contains__ methods 2016-05-27 09:53:07 -05:00
Sterling Harper
af82534e8d Merge pull request #647 from paulromano/periodic
Add periodic boundary conditions
2016-05-25 12:42:43 -04:00
Paul Romano
1af96416ea Extend input so that user can specify periodic surface pairs. Also fix a bug. 2016-05-25 07:22:43 -05:00
Paul Romano
48ac499d8a Respond to @smharper suggestions on #647 2016-05-24 16:33:47 -05:00
Paul Romano
970cc4130a Fix hexagon region orientation 2016-05-16 16:28:57 -05:00
Paul Romano
32eb58774d Add make_hexagon_region() function 2016-05-10 22:08:10 -05:00