Commit graph

1359 commits

Author SHA1 Message Date
Paul Romano
7ef5174274 Move test chain directly into test_deplete_chain 2018-02-21 10:50:18 -06:00
Paul Romano
d7f1904e41 Move simple chains into tests directory 2018-02-21 10:50:18 -06:00
Paul Romano
f3758e5330 Fix broken tests on Py3.4, 3.5 2018-02-20 09:30:50 -06:00
Paul Romano
236e7f8b9e Add format spec for depletion chain XML file 2018-02-20 00:05:53 -06:00
Paul Romano
c9f8daa0ab Fix in ReactionRates class. More documentation updates 2018-02-19 23:17:50 -06:00
Paul Romano
a9df0465f0 Start cleaning up documentation 2018-02-19 22:51:53 -06:00
Paul Romano
a460782691 Get rid of extra Settings class 2018-02-19 17:52:17 -06:00
Paul Romano
ccfee55115 Make timesteps and power specified in integrator functions 2018-02-19 17:26:44 -06:00
Paul Romano
704a131f2d Some refactoring of AtomNumber. Get rid of burn_mat_to_ind 2018-02-19 16:49:45 -06:00
Paul Romano
fe547feb74 Don't keep track of non-burnable materials 2018-02-19 13:15:07 -06: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
05afc55a88 Give deplete.Chain some special methods to make it more Pythonic 2018-02-15 15:34:00 -06:00
Paul Romano
8a41bac17a Removing a few attributes on OpenMCOperator 2018-02-15 14:31:03 -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
b3106a6504 Make Operator a context manager. Smart handling of output_dir 2018-02-15 06:37:46 -06: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
f494fecf21 Change Operator.eval() -> Operator.__call__() 2018-02-14 12:57:56 -06:00
Paul Romano
dba919c610 Convert deplete unit tests to use pytest 2018-02-14 11:24:24 -06: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
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
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
Paul Romano
dacf650eaf Fix bug with clearing k_generation and entropy 2018-02-08 14:32:28 -06:00
Paul Romano
848305b8d3 Skip multipole-related tests if OPENMC_MULTIPOLE_LIBRARY is not set 2018-02-06 13:27:01 -05:00
Paul Romano
bc4c7d9372 Add option in openmc.Settings for log_grid_bins (and remove DD) 2018-02-05 07:35:48 -06:00
Paul Romano
6044edc24a Add simple test for openmc.Settings 2018-02-05 07:35:48 -06:00
Paul Romano
2027920fdd Add unit tests for openmc.RectLattice and openmc.HexLattice 2018-02-05 07:35:48 -06: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
347243876f Combine volume calculations into a single unit test 2018-02-05 07:35:48 -06:00
Paul Romano
1a93883b67 Add tests for openmc.Universe 2018-02-05 07:35:48 -06:00
Paul Romano
b573ad50cf Add test for Region.from_expression 2018-02-05 07:35:48 -06:00
Paul Romano
bf8c556b5a Unit tests for openmc.Cell 2018-02-05 07:35:48 -06:00
Paul Romano
f6fc24c808 Add unit tests for plots 2018-02-05 07:35:48 -06:00
Paul Romano
d75b715026 Add source tests and fix one failing test 2018-02-05 07:35:48 -06:00
Paul Romano
0d3845c327 Fix command-line arguments for regression tests 2018-02-05 07:35:19 -06:00
Paul Romano
920afa123e Make tests directory a package (for pytest) 2018-02-05 07:35:19 -06:00
Paul Romano
058402954f Add tests for multivariate distributions in openmc.stats 2018-02-05 07:35:18 -06:00
Paul Romano
4180d632a4 Add tests for univariate probability distributions 2018-02-05 07:35:18 -06:00
Paul Romano
d26165f524 Add tests for regions 2018-02-05 07:35:18 -06:00
Paul Romano
b0d35268f3 Add unit tests for surfaces 2018-02-05 07:35:18 -06:00
Paul Romano
1432742fbf More tests for material 2018-02-05 07:35:18 -06:00
Paul Romano
b81cbc29fb Add test for Material.add_volume_information 2018-02-05 07:35:18 -06:00
Paul Romano
894ec54ad7 Add unit tests for material classes 2018-02-05 07:35:18 -06:00
Paul Romano
9f7e5e85e7 Improve guessing in openmc.data.get_thermal_name 2018-01-09 06:22:55 -06:00