feat: Enable additional constraint options for initial equilibrium reaction solve - #4145
Open
frankfeifan wants to merge 28 commits into
Open
frankfeifan wants to merge 28 commits into
frankfeifan wants to merge 28 commits into
Conversation
…lityConcentration
…lityConcentration
…lityConcentration
…lityConcentration
… it in GEOS rather than HPCReact for now
…lityConcentration
…lityConcentration
…ion' into feat/frankfei/activityModelAPI
…lityConcentration
…/HPCReactEnforceConstraints Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…/activityModelAPI Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…eactEnforceConstraints Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
frankfeifan
requested review from
corbett5,
rrsettgast and
wrtobin
as code owners
September 16, 2026 04:00
frankfeifan
requested review from
herve-gross and
jhuang2601
as code owners
September 16, 2026 04:00
frankfeifan
requested review from
cssherman and
joshua-white
as code owners
September 16, 2026 04:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR aims to plug in the new feature in
HPCReact(GEOS-DEV/HPCReact#25) that allows for additional constraint options for the initial equilibrium solve. Previously, we only have one constraint type which is based on target aggregate/total concentrations.Specific changes include:
A new
primarySpeciesConstraintTypesinput that defines the constraint type for each primary species during initial equilibrium solve. Available options includeaggregateConcentration,pX,chargeBalance, andmineralEquilibrium. (mineralEquilibriumnot yet implemented though).The old
primarySpeciesAggregateConcentrationfield specification becomesprimarySpeciesConstraintValue, read in whatever units each species' constraint implies.Input checking method
checkPrimarySpeciesConstraintsduringpostInputInitializationthat checks the length of theprimarySpeciesConstraintTypesinput list, ensureschargeBalanceis not applied on a neutral species and at most one species carrying the charge balance constraint.Merge the activity model development first, add initial constitutive relations api HPCReact#17, feat: Plug in HPCReact Activity Model #4140
Merge HPCReact PR first feat: Add additional constraint options for enforceEquilibrium HPCReact#25
Need rebaseline