-
-
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
Enable 2D processed variables for arbitrary domains #3200
Labels
difficulty: easy
A good issue for someone new. Can be done in a few hours
feature
in-progress
Assigned in the core dev monthly meeting
priority: low
No existing plans to resolve
Comments
brosaplanella
added
feature
difficulty: easy
A good issue for someone new. Can be done in a few hours
priority: low
No existing plans to resolve
labels
Jul 28, 2023
Similarly, in the 1D case, there's already an PyBaMM/pybamm/solvers/processed_variable.py Lines 191 to 193 in 695917e
|
brosaplanella
added a commit
that referenced
this issue
Aug 4, 2023
8 tasks
brosaplanella
added a commit
that referenced
this issue
Aug 4, 2023
brosaplanella
added a commit
that referenced
this issue
Aug 7, 2023
brosaplanella
added a commit
that referenced
this issue
Aug 7, 2023
brosaplanella
added a commit
that referenced
this issue
Aug 7, 2023
brosaplanella
added a commit
that referenced
this issue
Aug 7, 2023
brosaplanella
added a commit
that referenced
this issue
Aug 8, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
difficulty: easy
A good issue for someone new. Can be done in a few hours
feature
in-progress
Assigned in the core dev monthly meeting
priority: low
No existing plans to resolve
Description
At the moment, 2D processed variables use a series of
if
statements to check the domains on which to plot things, which end throwing an error if none of the cases is recognised.PyBaMM/pybamm/solvers/processed_variable.py
Lines 288 to 329 in 695917e
We should enable a generic case where, if none of the above, the model is plotted taking the secondary domain as horizontal axis and the primary domain as vertical axis (to match the batteries case particle-electrode). Potentially, we could let the user modify this.
Motivation
This would enable running non-battery models in PyBaMM and plotting them.
Possible Implementation
Change current
else
statement to assignself.first_dimension
andself.second_dimension
from primary and secondary domain variables. It seemsr_sol
,x_sol
et al are only used in testing.Additional context
No response
The text was updated successfully, but these errors were encountered: