Skip to content

Add a derived variable for element fractions#624

Merged
baperry2 merged 6 commits intoAMReX-Combustion:developmentfrom
baperry2:der-elem-frac
Feb 17, 2026
Merged

Add a derived variable for element fractions#624
baperry2 merged 6 commits intoAMReX-Combustion:developmentfrom
baperry2:der-elem-frac

Conversation

@baperry2
Copy link
Copy Markdown
Collaborator

Only supported for Fuego and SRK EOS.

Will need AMReX-Combustion/PelePhysics#653

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new derived field for element mass fractions (“element_fractions”) intended for Fuego and SRK EOS configurations, and wires it into plotting/regression inputs.

Changes:

  • Register a new derived quantity element_fractions (conditional on EOS identifier being Fuego/SRK).
  • Implement pelelmex_derelementfrac and expose it in the derive function header.
  • Add element_fractions to the FlameSheet regression test amr.derive_plot_vars.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
Source/PeleLMeX_Setup.cpp Registers the new derived variable and assigns per-component names.
Source/PeleLMeX_DeriveFunc.cpp Implements the GPU kernel that computes element fractions via EOS conversion.
Source/PeleLMeX_DeriveFunc.H Declares the new derive function.
Exec/RegTests/FlameSheet/flamesheet-drm19-2d.inp Requests element_fractions in plot-derived outputs for the regtest.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Source/PeleLMeX_Setup.cpp Outdated
Comment thread Source/PeleLMeX_Setup.cpp
Comment thread Source/PeleLMeX_DeriveFunc.cpp
Comment thread Source/PeleLMeX_DeriveFunc.cpp
Copy link
Copy Markdown
Contributor

@d-montgomery d-montgomery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

@baperry2 baperry2 merged commit ab5601f into AMReX-Combustion:development Feb 17, 2026
18 of 56 checks passed
@baperry2 baperry2 deleted the der-elem-frac branch February 17, 2026 22:34
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.

3 participants