Skip to content

Conversation

@SteSeg
Copy link
Collaborator

@SteSeg SteSeg commented Jun 5, 2025

MERGE AFTER PR #57
In OpenmcBenchmark class the postprocess() method opens an openmc statepoint file, a mesh.h5m file (via pydagmc) and the benchmark specifications file. It retrieves all the tallies in the statepoint file, normalizes them over surface area or cell volume, if necessary (with the actual area/volume measure provided in the mesh file), converts them into xarray.DataSet and store them in a benchmark_result.h5 file.

The run() method wraps the openmc.run() method and calls the postprocessing() method right after. To run a benchmark simulation should be as easy as:

import openmc_fusion_benchmarks as ofb

ok = ofb.OpenmcBenchmark(name='oktavian_al')
ok.run()

@eepeterson eepeterson merged commit ffa451d into eepeterson:develop Jul 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants