-
-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow variables to have more than 3 domains #1580
Comments
Not sure |
I see @tinosulzer. I could be mistaken, but it looks to me that But, a new use-case with the size domain would be, e.g. starting from a symbol with domains domains = {
"primary": "negative particle",
"secondary": "negative particle size",
"tertiary": "current collector"
} and broadcasting to domains = {
"primary": "negative particle",
"secondary": "negative particle size",
"tertiary": "negative electrode",
"quaternary": "current collector"
} Is this possible with |
I'm willing to take a shot at this (adding quaternary domains), but any other suggestions of how to implement this are definitely welcome! |
Oh yeah I think you're right. Secondary broadcast is actually for squeezing in a domain in the 2nd position and moving 2nd position to 3rd position, so we do need a new tertiary. Definitely good to have someone else look at this part of the code! |
Summary
Currently variables can have a maximum of 3 domains, i.e. a
"primary"
domain and two auxiliary domains,"secondary"
and"tertiary"
. This could be extended to allow"quaternary"
etc. domains (or changed to allow any number of domains).Also, a
TertiaryBroadcast()
(or a generalization) could be defined, similar toPrimaryBroadcast()
andSecondaryBroadcast()
.Motivation
Necessary in order to add particle-size distributions to the DFN framework, where some variables live on 4 different domains , e.g.
(Even if some domains are 0D in practice, they can push others off the domain list before the domains are discretized.)
A
TertiaryBroadcast()
would then be used for e.g. broadcasting the "X-averaged" concentration distribution to the "electrode" domains (which would be added in the"tertiary"
position).Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: