You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracking the implementation of reaction chains #7481
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.
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.
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.
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.
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.
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).
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.
Activity
lhy11009 commentedon Nov 24, 2026
On my side :
PRS - #7331, #7332 , Issues- #7402, #7406
buchanankerswell commentedon Nov 24, 2026
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
ReactionChainclass 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.
lhy11009 commentedon Nov 24, 2026
@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.
lhy11009 commentedon Nov 24, 2026
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.
buchanankerswell commentedon Nov 25, 2026
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_progresstype 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_progresstype compositional fields represent.ReactionChainassumes they are an ordered set of reactions, and thus need both [0, 1] bounds and monotonicity enforced (handled byReactionChain<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).
lhy11009 commentedon Nov 26, 2026
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.