Skip to content

Volume calculation enhancements #1702

Open

Description

@paulromano

A user made two good suggestions regarding volume calculations:

  1. Add a max_iteration attribute for the user to set that prevents volume calculations from running forever if the trigger threshold is too low.
  2. Add an option to not calculate atom densities if the user is only interested in the total volume (this would provide a workaround for Volume calculation doesn't work with MG cross sections #1698)

Activity

  1. vitmog commented on Oct 30, 2025

    @vitmog
    Contributor

    Is it right that the second suggestion is not actual anymore after the fix of #1698?
    Currently, volume calculation works both with and without mention of cross-section parameters definition but it still requires path to a library defined either the OPENMC_CROSS_SECTIONS environment variable or the openmc.Materials.cross_sections parameter. Strictly speaking, it is redundant for volumes but seems to be necessary for any possible following usage of OpenMC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions