Skip to content

Tracking the implementation of reaction chains #7481

Backlog

Description

@lhy11009

After the last discussion with Rene, we agreed to open an issue to track the implementation of reaction chains in ASPECT (@gassmoeller , @buchanankerswell ).

The purpose of this issue is to:

  • Keep track of ongoing development and planned changes.
  • Make code reviews easier.
  • Avoid duplicating development efforts.
  • Discuss open questions and work out solutions together.

We can use this issue to collect related PRs, share progress, and discuss implementation details.

Activity

  1. lhy11009 commented on Nov 24, 2026

    @lhy11009
    ContributorAuthor

    On my side :
    PRS - #7331, #7332 , Issues- #7402, #7406

  2. buchanankerswell commented on Nov 24, 2026

    @buchanankerswell
    Contributor

    Thanks @lhy11009.

    From my side (3 PRs in order):

    First (priority): #7319
    Second (priority): buchanankerswell#1
    Third (WIP): #7119

    My PRs are integrated, so they will need to be merged in order #7319 -> buchanankerswell#1 -> #7119. The last is WIP, so it does not need immediate attention.


    Road map (my opinion)

    1st priority: PR #7319
    2nd priority: PR buchanankerswell#1

    Those PRs resolve issue #7287, which I think should be addressed before any integration of the ReactionChain class in other parts of ASPECT. Then I think the remaining issues and PRs can be tackled in any order, but you probably have a specific order in mind.

    Remaining Priorities (in any order)

    PR #7119
    PR #7331
    PR #7332
    Issue #7402
    PR #7406

    I haven't had a chance to look at PRs #7406 or #7332. I will try to review them soon and make some comments. However, as I said above, I think the overshooting issue (#7287) should be resolved in ASPECT main (PRs #7319 and buchanankerswell#1) before any significant developing happens.

  3. lhy11009 commented on Nov 24, 2026

    @lhy11009
    ContributorAuthor

    @buchanankerswell , I agree, I think we should first plan on resolving #7287. I'll plan to look at #7319 first tomorrow and learn where the curve is.

  4. lhy11009 commented on Nov 24, 2026

    @lhy11009
    ContributorAuthor

    Yes, I think we should let Rene review #7319. I have also submitted #7482 to complement your PR by addressing overshoots and undershoots directly within the operator-splitting substeps.

    Together, these two PRs should provide a solid fix for this issue.

  5. buchanankerswell commented on Nov 25, 2026

    @buchanankerswell
    Contributor

    Yes, I think we should let Rene review #7319. I have also submitted #7482 to complement your PR by addressing overshoots and undershoots directly within the operator-splitting substeps.

    Together, these two PRs should provide a solid fix for this issue.

    Thanks @lhy11009. I think PR #7319 should be an easy review since it is more of a safeguard until we can get the over/under shoot issue ironed out.

    I would ask that @gassmoeller spend more of his time on the critical issue, which is enforcing [0, 1] bounds directly on the operator split integration before writing the compositional fields back to the solution. Both PRs buchanankerswell#1 and #7482 aim to address this, but with slightly different approaches.

    On one hand, your PR #7482 specifically checks for reaction_progress type compositional fields, enforces only [0, 1] bounds, and everything is handled by the simulator.

    On the other hand, my PR buchanankerswell#1 has no specific checks for compositional field type, enforces both [0, 1] bounds and monotonicity, and handles everything through a no-op override hook that is implemented in the material model.

    I hope @gassmoeller can guide us towards the most appropriate strategy here.

    One thing to ask is what reaction_progress type compositional fields represent. ReactionChain assumes they are an ordered set of reactions, and thus need both [0, 1] bounds and monotonicity enforced (handled by ReactionChain<dim>::clamp_cumulative_progress()). If they are meant to be used more generally to describe arbitrary unordered reactions, then monotonicity does not need to be enforced.

    I guess both options should be allowed, either within the simulator (like #7482) or via an override (like buchanankerswell#1).

  6. lhy11009 commented on Nov 26, 2026

    @lhy11009
    ContributorAuthor

    Yes, I think it makes sense to enforce this behavior at both levels: operator splitting and the material model. In addition, we can use the tolerance as a safeguard by setting it to a small value.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions