Skip to content

Commit

Permalink
Modifications to deplete_with_transfer_rates regression test suite (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
eepeterson committed Nov 27, 2023
1 parent 9830efa commit cad9fdc
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 3 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 4 additions & 3 deletions tests/regression_tests/deplete_with_transfer_rates/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def model():
geometry = openmc.Geometry([cell_f, cell_w])

settings = openmc.Settings()
settings.particles = 500
settings.particles = 100
settings.inactive = 0
settings.batches = 2
settings.batches = 10

return openmc.Model(geometry, materials, settings)

Expand All @@ -63,6 +63,7 @@ def test_transfer_rates(run_in_tmpdir, model, rate, dest_mat, power, ref_result)
transfer_elements = ['Xe']

op = CoupledOperator(model, chain_file)
op.round_number = True
integrator = openmc.deplete.PredictorIntegrator(
op, [1], power, timestep_units = 'd')
integrator.add_transfer_rate('f', transfer_elements, rate,
Expand All @@ -82,5 +83,5 @@ def test_transfer_rates(run_in_tmpdir, model, rate, dest_mat, power, ref_result)
res_ref = openmc.deplete.Results(path_reference)
res_test = openmc.deplete.Results(path_test)

assert_atoms_equal(res_ref, res_test, 1e-4)
assert_atoms_equal(res_ref, res_test, 1e-6)
assert_reaction_rates_equal(res_ref, res_test)

0 comments on commit cad9fdc

Please sign in to comment.