Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gamma Uniform Mesh Converter #1213

Merged
merged 18 commits into from
May 15, 2023
Merged

Conversation

mgjarrett
Copy link
Contributor

@mgjarrett mgjarrett commented Mar 10, 2023

Description

Update gamma uniform mesh converter to avoid numerical diffusion of the neutron flux.

Previous uniform mesh converter updates were made to avoid direct numerical diffusion, which was happening when a parameter was mapped in both directions in the uniform mesh converter (both into and out of the uniform mesh). #992

An additional source of numerical diffusion was recently discovered through more indirect channels. When one parameter is mapped in one direction, and then another parameter is derived from that mapped parameter, and then mapped back to the original mesh, this causes numerical diffusion.

For example, when the neutron flux is originally read onto the uniform mesh and then mapped to the non-uniform mesh, there is an initial step of numerical diffusion which is unavoidable. When a gamma flux calculation is performed, the neutron flux is then mapped back to a uniform mesh to create the gamma source; this contributes more numerical diffusion. This latter instance of numerical diffusion can be avoided by re-reading the neutron flux directly onto the uniform mesh reactor instead of mapping it in from the non-uniform reactor. This PR aims to remove this unnecessary diffusion by not mapping flux or flux-derived parameters (like power) in the non-uniform -> uniform direction.


Checklist

  • This PR has only one purpose or idea.
  • Tests have been added/updated to verify that the new/changed code works.
  • The release notes (location doc/release/0.X.rst) are up-to-date with any bug fixes or new features.
  • The documentation is still up-to-date in the doc folder.
  • The dependencies are still up-to-date in setup.py.

@mgjarrett mgjarrett changed the title Update gamma umc Update gamma Uniform Mesh Converter Mar 20, 2023
@mgjarrett mgjarrett added the bug Something is wrong: Highest Priority label Mar 20, 2023
@mgjarrett mgjarrett marked this pull request as ready for review March 28, 2023 18:45
doc/release/0.2.rst Outdated Show resolved Hide resolved
@john-science
Copy link
Member

@mgjarrett This PR is waiting for a downstream project. Let's find a time to merge this "soon".

@albeanth albeanth marked this pull request as draft April 19, 2023 22:28
@albeanth
Copy link
Member

This PR is ready, but I am converting to draft while we figure out downstream merge dependencies.

@mgjarrett
Copy link
Contributor Author

This has been dormant for awhile because it was deprioritized in favor of other work in downstream repos. Merging with the up-to-date main now and making sure all of the CI still passes.

@mgjarrett mgjarrett marked this pull request as ready for review May 15, 2023 17:05
@mgjarrett mgjarrett merged commit e6ce737 into terrapower:main May 15, 2023
@mgjarrett mgjarrett deleted the updateGammaUMC branch May 15, 2023 17:10
drewj-usnctech added a commit to drewj-usnctech/armi that referenced this pull request Jun 1, 2023
* main: (23 commits)
  block converters preserve flags (terrapower#1271)
  Fixed float decimals v3 (terrapower#1283)
  Fixed string format error for snapshots (terrapower#1277)
  Pinning the versions of yamlize and ruamel (terrapower#1281)
  Releasing v0.2.7 (terrapower#1276)
  Creating verisons setting section (terrapower#1274)
  Adding to GlobalFluxOptions docstring (terrapower#1273)
  Harmonize material names and class names (terrapower#1270)
  Removing Component.getMassDensity (terrapower#1266)
  Cleaning up language for our versioning rules (terrapower#1175)
  Fixing the Settings Report in the Docs (terrapower#1264)
  Fixing getTemperatureAtDensity to use non-pseduo density (terrapower#1262)
  Fixing settings report docs from terrapower#1207 (terrapower#1263)
  Update test_components.py (terrapower#1261)
  Update gamma Uniform Mesh Converter (terrapower#1213)
  Updating way that settings report defaults are printed (terrapower#1207)
  Fixing UserPlugins.defineFlag (terrapower#1241)
  quick bug fix for PR 1239 (terrapower#1260)
  New Option to Control Lattice Physics Update Frequency (terrapower#1239)
  Fix a bug in database compare. (terrapower#1258)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong: Highest Priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants