Commit graph

53 commits

Author SHA1 Message Date
Adam G Nelson
b704480f9f Fixed python-side conversion of MGXS mesh to a lattice for input. 2018-06-19 07:03:54 -04:00
tjlaboss
75dc4131dc Long live PEP8 2018-05-22 13:36:50 -04:00
tjlaboss
a47f3abbde New class method, Mesh.fromRectLattice() 2018-05-21 17:13:37 -04:00
Adam G Nelson
1d2ebb71f8 Implemented Expansion filters in to the MGXS classes and removed the old score-based expansions 2018-04-27 19:45:38 -04:00
Paul Romano
d41ac48467 Force all filters to have a .bins attribute that makes sense 2018-03-28 15:56:03 -05:00
Paul Romano
bd5b7afc2d Fix bug related to bin ordering for mesh filters 2018-03-16 13:47:01 -05:00
Paul Romano
c428cee667 Remove __future__ and six imports 2018-02-05 23:14:30 -05:00
Paul Romano
b771fb7ae3 Remove eq/hash on Mesh and Tally 2017-12-17 07:16:06 +07:00
Paul Romano
ca009e211e Manage unique IDs via new IDManagerMixin that uses class variables 2017-06-07 20:12:51 -05:00
Adam Nelson
f722d77cd4 Fixed the generation of meshes and implemented // as suggested by @paulromano 2017-03-04 12:51:36 -05:00
Adam Nelson
14f6185744 resolved @wbinventor comments on the mesh and executor 2017-02-26 05:39:20 -05:00
Adam Nelson
fc3df18eab Added an openmc.run mode (summary, which just shows the timing and summary results; fixed the generation of cells from a mesh (incorrect ordering of universes in the lattice), xs_shapes for delayed groups had wrong ordering (fixed) in openmc.MGXSLibrary and openmc.Plotter, fixed error in multi-group plots which only plotted one group not all, fixed issue with setting max order to 0 for Legendre scattering (not legendre converted to tabular w/in OpenMC, the default), removed superfluous xs assignments in MG mode which only slowed things down 2017-02-25 08:17:10 -05:00
Paul Romano
8f2efa19dd Create Mesh.from_hdf5() and Surface.from_hdf5() methods 2017-02-21 21:26:25 -06:00
tjlaboss
464cd99d3c Removed method Mesh.__eq__() 2017-02-08 18:28:38 -05:00
tjlaboss
87894b3e57 Mesh is now a child of EqualityMixin 2017-02-08 18:27:35 -05:00
Paul Romano
be470d2615 Get rid of self._*_file attributes 2016-12-14 06:56:38 -06:00
Paul Romano
0454e66a11 Merge branch 'develop' into scopatz-six 2016-10-18 23:01:03 -05:00
Adam Nelson
22df8cfe41 Incorporated @paulromano comments 2016-10-18 05:23:50 -04:00
Adam Nelson
c446f10e5a Last @paulromano comment I held off on. Didnt update all mgxs h5 libraries yet as future comments from others will require I do that anyways. 2016-10-10 15:33:14 -04:00
Adam Nelson
935d72af0d Resolution of @paulromano comments 2016-10-10 15:19:47 -04:00
Paul Romano
5a126d086e Use six.string_types instead of basestring 2016-10-06 21:55:12 -05:00
Adam Nelson
c5dc4fad3d Updating to resolve @samuelshaner comments 2016-09-19 20:44:06 -04:00
Adam Nelson
1f4187d761 Merged w 1d mesh PR 2016-09-19 19:20:18 -04:00
Adam Nelson
255aba1fc0 Updated ipython notebook, fixed minor corrections throughout, and added h5 wrapper functions in hdf5_interface so the various from_hdf5 routines dont have to call low-level functions directly 2016-09-10 11:28:08 -04:00
Sam Shaner
8f1b6c64ca Got mesh tallies (including currents) working for 1D and 2D 2016-09-05 12:24:09 -04:00
Adam Nelson
7e5326d705 Removed unused variables, cleaned up other code base, fixed all the bugs (seems to work now!), set default MGXS library temperature (via the API) to 294K to be consistent with the default w/in OpenMC. Looking good folks. Next up is re-implementing the user-facing option for converting Legendre to tabular (it shouldnt be in the library like it was before), implementing a script to convert from xml to h5, and switching the library format to use sparse scattering matrices instead of dense 2016-09-04 15:40:02 -04:00
Paul Romano
08219585f9 Fix two documentation issues 2016-08-20 16:50:14 -05:00
Adam Nelson
256f0b93eb Resolving comments from @samuelshaner and @wbinventor 2016-08-18 19:27:32 -04:00
Adam Nelson
ef2f6bdc7c Addressing comments 2016-08-06 11:52:55 -04:00
Adam Nelson
2025306f9a Added capability to use MGXS with a mesh domain in create_mg_mode and create_mg_library. 2016-08-06 06:43:25 -04: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
d16e3fca89 Remove many __deepcopy__ implementations 2016-06-01 07:56:45 -05:00
wbinventor@gmail.com
7be1b7a609 Now using hash(repr(self)) instead of hash(str(self)) in Python API 2015-12-01 10:13:37 -05:00
wbinventor@gmail.com
4be3c64da9 Added __hash__ routines to all Python classes based on __repr__ methods 2015-11-29 09:00:47 -05: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
b9a439da11 Python API now allows IDs to be greater than or equal to zer 2015-10-12 23:16:45 -04:00
Will Boyd
67971b5c60 Cleaned up docstring comments in filter.py and cross.py 2015-10-03 00:04:01 -04:00
Will Boyd
976d6ccece Made changes to Python API to support move to PEP8 compliance in OpenCG 2015-10-02 17:22:49 -04:00
Will Boyd
78d14133db Updated OpenCG compatiblity module to reflect move to PEP8 use of underscores in place of camelCase 2015-10-02 01:25:41 -04:00
Will Boyd
e05ab41527 Fixed merge conflicts with develop branch 2015-09-25 16:24:06 -04:00
Paul Romano
b0ea5b8ae0 Fix handling of mesh type 2015-09-21 10:00:51 +07:00
Paul Romano
8753f23059 Change StructuredMesh to RegularMesh. Write type as 'regular'. 2015-09-20 14:04:34 +07:00
Will Boyd
a886a16b04 Improved comments for Python API openmc.mgxs.EnergyGroups class 2015-09-12 21:36:19 -04:00
Will Boyd
5bfab3a481 Major bug fixes and extensions to tally arithmetic for MGXS generation 2015-09-11 00:26:11 -04:00
Will Boyd
d0afb964b7 Removed quotations around string args in __repr__ methods 2015-08-03 21:48:45 -07:00
Will Boyd
bf15c255c3 Added double quotes around exception msgs in Python API 2015-08-03 21:32:06 -07:00
Paul Romano
06d531aa39 Add check_greater_than and check_less_than functions 2015-06-30 16:19:53 +07:00
Paul Romano
98206be1fe Use collections.Iterable rather than collections.Sequence. Unfortunately
ndarrays are not sequences.
2015-06-29 07:50:07 +07:00
Paul Romano
a7a740d08c Add check_type, check_length, and check_value functions that reduce redundancy 2015-06-29 07:50:07 +07:00
Paul Romano
5aaf9974e9 Use collections.Sequence, numbers.Real, and numbers.Integral for checking for
appropriate types. This eliminates the checkvalue module.
2015-06-29 07:50:07 +07:00