Skip to content

give option to specify custom chemistry_model paths#612

Merged
baperry2 merged 1 commit intoAMReX-Combustion:developmentfrom
baperry2:custom-chem
Jan 6, 2026
Merged

give option to specify custom chemistry_model paths#612
baperry2 merged 1 commit intoAMReX-Combustion:developmentfrom
baperry2:custom-chem

Conversation

@baperry2
Copy link
Copy Markdown
Collaborator

@baperry2 baperry2 commented Jan 6, 2026

Currently, users specify a Chemistry_Model from those found in PelePhysics/Mechanism. This PR gives the user the option to activate USE_CUSTOM_CHEMISTRY = TRUE, in which case Chemistry_Model is interpreted as a path to an arbitrary location. The goal is to make it easier for users to use nonstandard chemistry models more easily without having to make modifications to the PelePhysics submodule.

@d-montgomery
Copy link
Copy Markdown
Contributor

I needed this 2 weeks ago! Thanks for adding this option.

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

This PR introduces the USE_CUSTOM_CHEMISTRY option to allow users to specify custom chemistry model paths outside the standard PelePhysics/Mechanisms directory. This enhancement makes it easier for users to work with nonstandard chemistry models without modifying the PelePhysics submodule.

Key Changes

  • Added conditional logic in the makefile to handle custom chemistry model paths when USE_CUSTOM_CHEMISTRY = TRUE
  • Updated documentation across multiple tutorial files to explain the new feature
  • Modified path resolution to use direct paths for custom chemistry models while maintaining backward compatibility with standard models

Reviewed changes

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

Show a summary per file
File Description
Exec/Make.PeleLMeX Implements conditional logic to handle custom chemistry paths using Bpack/Blocs directly when USE_CUSTOM_CHEMISTRY = TRUE, otherwise using the standard PPdirs with Mechanisms/ prefix
Docs/sphinx/manual/Tutorials_TripleFlame.rst Documents the USE_CUSTOM_CHEMISTRY option and explains that Chemistry_Model can be interpreted as a path to custom models
Docs/sphinx/manual/Tutorials_HotBubble.rst Documents the USE_CUSTOM_CHEMISTRY option with explanation of custom chemistry model usage
Docs/sphinx/manual/Tutorials_FlowPastCyl.rst Documents the USE_CUSTOM_CHEMISTRY option with explanation of custom chemistry model usage
Docs/sphinx/manual/Tutorials_FlameSheet.rst Documents the USE_CUSTOM_CHEMISTRY option with explanation of custom chemistry model usage
Docs/sphinx/manual/Tutorials_BFSFlame.rst Documents the USE_CUSTOM_CHEMISTRY option with explanation of custom chemistry model usage

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

Chemistry_Model = drm19

Here, the model ``drm19``, contains 21 species and describe the chemical decomposition of methane.
Here, the model ``drm19``, contains 21 species and describe the chemical decomposition of methane. Advanced users may also specify
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

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

Subject-verb agreement error: "describe" should be "describes" since the subject is singular ("the model").

Copilot uses AI. Check for mistakes.
Chemistry_Model = drm19

Here, the model ``drm19`` contains 21 species and describe the chemical decomposition of methane.
Here, the model ``drm19`` contains 21 species and describe the chemical decomposition of methane. Advanced users may also specify
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

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

Subject-verb agreement error: "describe" should be "describes" since the subject is singular ("the model").

Suggested change
Here, the model ``drm19`` contains 21 species and describe the chemical decomposition of methane. Advanced users may also specify
Here, the model ``drm19`` contains 21 species and describes the chemical decomposition of methane. Advanced users may also specify

Copilot uses AI. Check for mistakes.
@baperry2 baperry2 enabled auto-merge (squash) January 6, 2026 21:54
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.

Works as expected and is a nice improvement to usability. My only suggestion, which doesn't need to be part of this PR, is that it would be nice if there was a list of some of the GNUmakefile options in LMeXControls.rst for quicker referencing.

@baperry2 baperry2 merged commit 3c62731 into AMReX-Combustion:development Jan 6, 2026
31 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.

3 participants