Commit graph

256 commits

Author SHA1 Message Date
Paul Romano
bc09d1ef55 adding back files to be reviewed 2019-10-28 11:55:45 -05:00
Paul Romano
ae28233110 deleting all files to prepare for review 2019-10-28 11:48:19 -05:00
Paul Romano
87541e969c
Merge pull request #1363 from smharper/source_azimuth_fix
Rotate azimuthal distributions to match conventional coordinate systems
2019-10-02 21:35:26 -05:00
Sterling Harper
45aeb35aa9 Rotate azimuthal distributions by pi/2 2019-09-24 15:15:30 -04:00
Andrew Johnson
72212f60a2
Use internal tallies to compute quantities for depletion
Tallies created by internal depletion helpers are marked
as internal using the openmc.lib.Tally.writeable property.
This is done to resolve issue #1327 where statepoint files could
grow to be quite large after tallying reaction rates across many
burnable materials for all nuclides of interest.

A check is added in the depletion regression test to ensure that
no additional tallies are loaded to the StatePoint.
2019-09-20 10:50:38 -05:00
rockfool
fbaa780731 remove the surface.py first 2019-09-16 14:03:05 -04:00
Jiankai Yu
37df7e6a3c add regression test for white boundary condition 2019-09-15 15:29:01 -04:00
Jiankai Yu
c377231d8d add regression test for white boundary condition 2019-09-15 15:27:45 -04:00
Paul Romano
bbb0b78383 Rename openmc.capi -> openmc.lib 2019-09-13 10:38:26 -05:00
Paul Romano
d85df13ae7 Make surfaces take coefficients as first arguments 2019-09-04 15:10:53 -05:00
Paul Romano
12ec18796a Respond to @drewejohnson comments on #1320 2019-08-23 13:17:03 -05:00
Paul Romano
37c0fff7ed Update filter_mesh test to cover a few cases in mesh.cpp that were missed 2019-08-21 10:42:35 -05:00
Paul Romano
da18820a88 Add a nuclide with Maxwell fission spectrum to energy_laws test 2019-08-21 10:42:35 -05:00
Paul Romano
36bfa08eae Update filter_energyfun test 2019-08-21 10:42:35 -05:00
Paul Romano
92433b255c Update filter_mesh test 2019-08-21 10:42:35 -05:00
Paul Romano
c245f78148 Update mgxs_library_mesh test 2019-08-21 10:42:35 -05:00
Paul Romano
e1d2a9d802 Update tally_arithmetic test 2019-08-21 10:42:35 -05:00
Paul Romano
7bc96c822c Update tally_aggregation test 2019-08-21 10:42:35 -05:00
Paul Romano
fa11bacde7 Update void test (allowing fixed source tests to work with PyAPITestHarness too) 2019-08-21 10:42:35 -05:00
Paul Romano
961c5a025b Update lattice_multiple test 2019-08-21 10:42:35 -05:00
Paul Romano
f3ace1a5e2 Update tally_assumpsep test 2019-08-21 10:42:35 -05:00
Paul Romano
4fd59d1f8d Update score_current test 2019-08-21 10:42:35 -05:00
Andrew Johnson
becda0c2c2
Merge branch 'develop' into bug-restart-mpi 2019-08-07 13:50:42 -05:00
Andrew Johnson
0fdef55d42
Create ResultsList from file using from_hdf5
The new class method ResultsList.from_hdf5 should be
used to load in results data, rather than passing
the file name into the __init__ method. __init__
passes directly to list.__init__ now.

The motivation for this is to resolve the depletion
restart with MPI bug #1275. To do this, each Operator
will create it's own ResultsList and distribute reaction
rates and densities according to what materials are burned
on this process. Rather than use a normal list, this Operator
expects the various accessor methods like get_atoms to be
present on self.prev_res
2019-08-05 16:09:49 -05:00
Andrew Johnson
b9683dbdba
Merge branch 'develop' into integrator-class
Need new travis.yml to pass CI
2019-07-30 15:58:49 -05:00
Andrew Johnson
2ee14a4a0f
Write new step-specific statepoint files at BOS, EOL
Closes #1283 by writing a statepoint file at the beginning
of every depletion step [BOS] and at the final transport simulation,
[EOL]. These files are named "openmc_simulation_n<N>.h5", where
<N> represents the current depletion step, including restart
steps. The new files are written using the C API.

It is worth noting that OpenMC will still write statepoint files
after each intermediate transport simulation used by various
depletion schemes. This commit makes no effort to move or delete
these files, nor stop their creation. It is not clear how,
using the python nor C API, one can stop OpenMC from
writing a statepoint file.

The source bank is not written to these files as this causes
a segmentation fault.

Comparisons of k_combined pull from all statepoints,
reference depletion_results file, and test depletion_results
file have been added to depletion regression test.
2019-07-30 15:23:30 -05:00
Paul Romano
a3d34b5b64
Merge pull request #1299 from pshriwise/dagmc_mat_temps
DagMC Material Temperatures
2019-07-24 22:35:52 -05:00
Paul Romano
5178272ca8
Merge pull request #1295 from pshriwise/bounding_boxes
Bounding box updates
2019-07-24 22:34:36 -05:00
Paul Romano
020c0c306f Fix bug in delayed group index in MG mode tallies 2019-07-22 10:10:53 -05:00
Patrick Shriwise
347f4d7dd5 Separating dagmc cell temperature checks into unit tests. 2019-07-20 12:51:59 -05:00
Patrick Shriwise
89c75a7b82 Sharing model between tests. 2019-07-20 12:51:59 -05:00
Patrick Shriwise
da152b9b0f Updating DagMC s.t. their temperatures can be set using material temps. Also addressig a bug in closing an hdf5 dataset and adding tests. 2019-07-20 12:51:59 -05:00
Paul Romano
481361ae79 Use strings in representation of particle filter 2019-07-19 07:40:48 -05:00
Patrick Shriwise
933a5c4770 Updates based on suggestions from @paulromano. 2019-07-18 22:21:55 -05:00
Patrick Shriwise
72e92e9ad0 More updates. Adding complex cell test to unit tests. 2019-07-18 18:14:57 -05:00
Andrew Johnson
f0bb600271
Remove predictor function for deplete.PredictorIntegrator
The depletion function openmc.deplete.predictor has been removed
in favor of a class-based approach. The following syntax will
replicate the behavior of the predictor integration scheme:

>>> from openmc.deplete import PredictorIntegrator
>>> predictor = PredictorIntegrator(operator, time, power)
>>> predictor.integrate()`

The expression can be reduced to a single line:

>>> PredictorIntegrator(operator, time, power).integrate()
2019-07-17 13:39:05 -05:00
Patrick Shriwise
b373fd5931 Finalizing the capi after the complex cell test. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
77d40effb1 Adding a test for complex cell bounding boxes. 2019-07-16 16:52:30 -05:00
Andrew Johnson
76f3ddc597
Update source regression test true input
pytest --update tests/regression/source

Temperature is written as an attribute for a material,
not a new subelement
2019-07-09 08:15:36 -05:00
Andrew Johnson
f52593ac4a
Update depletion regression test data: store k uncertainties
Uncertainties are stored as of commit 141959dab
Regression test data updated with
pytest --update tests/regression_tests/deplete/test.py
2019-07-02 14:42:31 -05:00
Paul Romano
da5f7440b1 Remove get_ from get_hexagonal_prism, get_rectangular_prism 2019-06-18 06:17:54 -05:00
Paul Romano
c0f90effcd Merge branch 'develop' into rotate-lattice 2019-06-18 06:17:33 -05:00
Sterling Harper
2c0b16e73d
Merge pull request #1216 from dryuri92/newhex
Support different orientations for hexagonal lattices
2019-06-17 15:21:49 -04:00
Paul Romano
7ca97676aa
Merge pull request #1260 from pshriwise/overlap_plotting
Overlap plotting
2019-06-17 07:08:12 -05:00
Paul Romano
41bb3cf6be
Merge pull request #1255 from pshriwise/dagmc_rayhist
Adding RayHistory to DagMC
2019-06-17 07:04:40 -05:00
Patrick Shriwise
cb3f878d11 Renaming test. Altering includes in surface/cell.h to isolate external package includes. 2019-06-16 22:02:03 -05:00
Patrick Shriwise
7096b44633 Updating test results after rebase to account for changes in develop. 2019-06-14 12:36:45 -05:00
Patrick Shriwise
48959ab84c Updating test name 2019-06-14 11:15:17 -05:00
Patrick Shriwise
8d1098400c PEP8 corrections to plot overlap test. 2019-06-14 11:15:16 -05:00
Patrick Shriwise
8946bbd238 Adding a test plotting overlap regions. 2019-06-14 11:15:16 -05:00