mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Update transfer volumes test with PredictorIntegrator
This commit is contained in:
parent
dae48b77e0
commit
d3a7e73320
1 changed files with 5 additions and 4 deletions
|
|
@ -4,7 +4,8 @@
|
|||
"""
|
||||
|
||||
from pytest import approx
|
||||
import openmc.deplete
|
||||
import openmc
|
||||
from openmc.deplete import PredictorIntegrator, ResultsList
|
||||
|
||||
from tests import dummy_operator
|
||||
|
||||
|
|
@ -18,13 +19,13 @@ def test_transfer_volumes(run_in_tmpdir):
|
|||
# Perform simulation using the predictor algorithm
|
||||
dt = [0.75]
|
||||
power = 1.0
|
||||
openmc.deplete.predictor(op, dt, power, print_out=False)
|
||||
PredictorIntegrator(op, dt, power).integrate()
|
||||
|
||||
# Load the files
|
||||
res = openmc.deplete.ResultsList(op.output_dir / "depletion_results.h5")
|
||||
res = ResultsList(op.output_dir / "depletion_results.h5")
|
||||
|
||||
# Create a dictionary of volumes to transfer
|
||||
res[0].volume['1'] = 1.5
|
||||
res[0].volume['1'] = 1.5
|
||||
res[0].volume['2'] = 2.5
|
||||
|
||||
# Create dummy geometry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue