Skip to content

Problem about generating group constants using mlotres_xs.py #204

Discussion options

You must be logged in to vote

The DiffusionCoefficient function in OpenMC is only available in v0.12.1 and newer.

As for the domain_dict, if you have more than one material, your input would look like:

domain_dict = openmc_xs.generate_openmc_tallies_xml(
    [1e-5, 748.5, 5.5308e3, 24.7875e3, 0.4979e6, 2.2313e6, 20e6],
    list(range(1, 9)),
    [fuel_mat, fuel_mat2],
    [fuel_mat.id, fuel_mat2.id],
    tallies_file,
)

Should I replace [fuel.id] with 1 ?

No. It should be the fuel's id. See OpenMC's Material properties: https://docs.openmc.org/en/latest/pythonapi/generated/openmc.Material.html

If I get OpenMC output files: statepoint_900_openmc.100.h5 , summary_900.h5 and so on, should I write moltres_xs.py input …

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@gwenchee
Comment options

@js-jixu
Comment options

@gwenchee
Comment options

@smpark7
Comment options

@js-jixu
Comment options

Answer selected by js-jixu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants