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.
Fixes #67
Changes:
REACTION_MODEL_BULK
(previously alwaysREACTION_MODEL
)reaction_bulk
(previously mostlyreaction_bulk
, sometimesreaction
)The old version led to a lot of user errors; the newer version is more in more consistent and in in line with the particle reactions interface:
REACTION_MODEL_PARTICLES
reaction_particle
It does introduce some breaking changes in the interface but since reactions are quite new, there probably are actually very few people who use them. We could still read from the old location and throw a DeprecationWarning or, even better, this might also be a good opportunity to think again about how to realize #18.
Open question: Ambiguity in parameter naming
The proposed change still leaves some ambiguity in the naming of the parameters within the parameters branch.
From a discussion in the CADET Forum:
Thus, even though, we're defining a bulk reaction, we have to use the suffix
_liquid
for bulk reactions in that particular unit instead of_bulk
:More consistent would be:
However, this gets tricky as soon as solid phase reactions also have to be considered (which are part of the particles interface) and we still want to be able to make cross-phase reactions between liquid (in this case, bulk) phase, and solid phase...
Proposal:
Since the parameters themselves also have the suffices
_bulk
,_liquid
, and_solid
, we might simply unify the parameters reaction_model_bulk, and reaction_model_particle into onereaction_model
/reaction
field.This would require:
_bulk
parameters for the lumped rate model without pores (if we continue using the particle reactions interface internally)An interesting discussion with @lieres also led to the conclusion that in future we might want to provide even more flexibility with reactions (e.g. not only cross-phase but also cross-zone) which would also require modifying the interface in some way.