Commit graph

7602 commits

Author SHA1 Message Date
walshjon
9ec044ec2e disallow target energy greater than is used in SIGMA1 2018-02-17 14:09:37 -08:00
Paul Romano
5c4ea0d640 Replace Chain.index_reaction with Chain.reactions.
Now the ReactionRates controls all the indexing needed to build a depletion
matrix. Got all tests fixed here too. Decided to add get/set methods on
ReactionRates which take strings.
2018-02-17 14:31:04 -06:00
Paul Romano
c9abcfc0a1 Make ReactionRates a subclass of ndarray, simplifying mapping dictionaries 2018-02-17 10:28:24 -06:00
Sterling Harper
ad4a5da040 Move lattice get_local_xyz to C++ 2018-02-16 18:25:52 -05:00
Sterling Harper
efc77b74fe Move lattice get_indices and are_valid to C++ 2018-02-16 17:49:42 -05:00
Sterling Harper
ec14970caf Add C++ HexLattice distance_to_boundary 2018-02-16 15:22:08 -05:00
Paul Romano
a6c095c4e9 Bugfix for Python 3.4 2018-02-15 15:37:41 -06:00
Paul Romano
05afc55a88 Give deplete.Chain some special methods to make it more Pythonic 2018-02-15 15:34:00 -06:00
Paul Romano
3bbd177453 Have unpack_tallies_and_normalize return an OperatorResult 2018-02-15 14:53:11 -06:00
Paul Romano
8a41bac17a Removing a few attributes on OpenMCOperator 2018-02-15 14:31:03 -06:00
Sterling Harper
81cc98010b Implement a C++ HexLattice constructor 2018-02-15 14:55:06 -05:00
Paul Romano
bc4d631883 Get rid of deplete.Materials class that wasn't used 2018-02-15 11:02:48 -06:00
Paul Romano
b62e25bcf5 Simplify integrator implementations by separating out function for depletion 2018-02-15 10:39:16 -06:00
Paul Romano
998a562a33 Have Operator() return a namedtuple (simplifies integrators quite a bit) 2018-02-15 09:47:37 -06:00
Paul Romano
484a023888 Move more attributes to abc.Settings 2018-02-15 07:03:01 -06:00
Paul Romano
b3106a6504 Make Operator a context manager. Smart handling of output_dir 2018-02-15 06:37:46 -06:00
Sterling Harper
11336f875f Add C++ RectLattice distance_to_boundary 2018-02-14 17:48:24 -05:00
Paul Romano
730623246f Rename results.h5 -> depletion_results.h5. Use /materials in HDF5 file 2018-02-14 15:36:00 -06:00
Paul Romano
fc6b3bd9d9 Make Results.from_hdf5 a classmethod 2018-02-14 13:39:40 -06:00
Paul Romano
f494fecf21 Change Operator.eval() -> Operator.__call__() 2018-02-14 12:57:56 -06:00
Paul Romano
939d47cffa Simplify OpenMCSettings class (can properly delegate to openmc.Settings) 2018-02-14 12:46:23 -06:00
Paul Romano
dba919c610 Convert deplete unit tests to use pytest 2018-02-14 11:24:24 -06:00
Sterling Harper
98af5ed6be Fix complex cell tokenization 2018-02-14 12:20:49 -05:00
Paul Romano
1ee27edc8c Rename DepletionChain -> Chain 2018-02-14 10:45:39 -06:00
Paul Romano
43147b70eb Change xml_write -> export_to_xml, xml_read -> from_xml for consistency 2018-02-14 10:17:30 -06:00
Paul Romano
26852f79f4 Add tqdm to dependencies. Install mpi4py on Travis 2018-02-14 07:22:16 -06:00
Paul Romano
ef99788ff4 Get rid of OpenMCSettings.openmc_call, which doesn't make sense anymore 2018-02-14 06:37:17 -06:00
Paul Romano
3b31892816 Make sure entropy/UFS mesh index get cleared during finalize 2018-02-13 15:08:05 -06:00
Paul Romano
2e358a2ca4 Release resources properly from Operator class 2018-02-13 15:08:05 -06:00
Paul Romano
592fae536f Fix file locations for depletion tests. Convert regression ones to pytest 2018-02-13 15:08:05 -06:00
Paul Romano
8549f22e14 Move depletion tests into normal regression/unit test directories 2018-02-13 15:08:05 -06:00
Paul Romano
0a772252cc Fix bug in openmc_tally_set_scores (for depletion reactions) 2018-02-13 15:08:05 -06:00
Paul Romano
37f552a5dc Fix deplete imports 2018-02-13 15:08:05 -06:00
Paul Romano
f8764416d2 Copy OpenDeplete files from commit 2d804c227a 2018-02-13 15:08:05 -06:00
Paul Romano
4d240dc303
Merge pull request #963 from nelsonag/nuclide_xs
Moving methods in cross_sections.F90 to attributes of Nuclide and Material objects
2018-02-13 06:25:57 -06:00
Adam Nelson
718474fb49 Cleaned up index_inelastic_scatter a bit to address comments in #963" 2018-02-13 06:35:50 -05:00
Paul Romano
3a82d1e913
Merge pull request #967 from smharper/boric_acid
Add convenience function for boric acid Materials
2018-02-12 12:51:45 -06:00
Sterling Harper
d34bdf9b98 Address #967 comments 2018-02-11 18:39:06 -05:00
Sterling Harper
e0d6640c4f Add make_borated_water and water_density to docs 2018-02-11 15:29:41 -05:00
Sterling Harper
9c53c085d6 Change boric_acid to borated_water; add more units 2018-02-11 15:01:51 -05:00
Sterling Harper
a06190ee40 Add convenience function for boric acid Materials 2018-02-10 02:23:50 -05:00
Sterling Harper
bb4ac5a7b2 Add IAPWS water density data 2018-02-10 01:04:45 -05:00
Adam Nelson
563b165891 Adjusted indentation 2018-02-09 18:56:39 -05:00
Sterling Harper
1b095929a0
Merge pull request #966 from paulromano/kgen-clear-fix
Fix bug with clearing generation-wise k values
2018-02-09 14:28:14 -05:00
Paul Romano
4298c50c3f Use numpy 1.13 when testing since float formatting changed in 1.14 2018-02-09 09:28:09 -06:00
Paul Romano
899b6b6799 Make sure k_generation and entropy are cleared before loading state point 2018-02-08 15:34:39 -06:00
Paul Romano
dacf650eaf Fix bug with clearing k_generation and entropy 2018-02-08 14:32:28 -06:00
Sterling Harper
0f49193b29 Remove C++ regex to support GCC < 4.9 2018-02-07 16:37:36 -05:00
Sterling Harper
8b31730ec4 Update Travis GCC to v5 for C++11 regex 2018-02-07 13:42:18 -05:00
Sterling Harper
e243dd8c73 Merge remote-tracking branch 'upstream/develop' into c_cell 2018-02-07 13:13:17 -05:00