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
Paul Romano
1e57cb8407
Respond to @wbinventor comments on #632
2016-04-26 07:08:03 -05:00
Paul Romano
f622300b7f
Various improvements/fixes to Python API. Also fix MPI F08 binding issue.
2016-04-25 08:29:36 -05:00
Paul Romano
fa1ca34094
Respond to @wbinventor comments on #626
2016-04-14 15:57:59 -05:00
Paul Romano
14dc134869
Complete overhaul of Python API documentation
2016-04-14 07:22:31 -05:00
Paul Romano
7afebb029b
Address @wbinventor comments on #516
2015-12-03 07:31:02 -06:00
Paul Romano
48d5f2219d
Fix error in bounding boxes for y- and z-planes.
2015-12-02 13:48:59 -06:00
Paul Romano
8506f32c4f
Ability to determine bounding boxes for Regions
2015-12-02 08:48:58 -06:00
Will Boyd
857a2c5734
All object names in Python API now initialized to an empty string
2015-11-03 10:19:42 -05:00
Will Boyd
5e5a423b32
Merge branch 'develop' into mgxs
2015-10-24 10:14:14 -04:00
Will Boyd
b9a439da11
Python API now allows IDs to be greater than or equal to zer
2015-10-12 23:16:45 -04:00
Paul Romano
80b0a1ad25
Add support in Python API for quadric surfaces
2015-10-09 09:36:00 +07:00
Will Boyd
54f40eed32
Moved Python builtin routines to beginning of each Python API class
2015-10-08 14:23:19 -04:00
Paul Romano
cfb17517eb
Overload __invert__ for Halfspace (return opposite Halfspace)
2015-10-05 07:45:55 +07:00
Paul Romano
4c2e0f5f82
Add examples in docstrings for Halfspace, Intersection, Union, and Complement
2015-10-04 21:47:52 +07:00
Paul Romano
3ca7279bd8
Merge branch 'develop' into complex-cells
...
Conflicts:
openmc/opencg_compatible.py
openmc/surface.py
2015-10-04 10:22:48 +07:00
Will Boyd
e7cba5b22c
Fixed minor issues with OpenCG surface coefficient properties in compatibility module
2015-10-03 14:54:46 -04:00
Paul Romano
71dfde8d12
Adopt shorthand notation for half-spaces and regions in Python API
...
Surfaces now have __neg__ and __pos__ operators, and regions have __and__,
__or__, and __invert__. This makes the syntax for complex regions much less
bulky.
2015-10-03 09:26:50 +07:00