Skip to content

Update Code for Dependency Changes#33

Closed
mleot wants to merge 11 commits into
TomTranter:updatefrom
mleot:update-for-dependencies
Closed

Update Code for Dependency Changes#33
mleot wants to merge 11 commits into
TomTranter:updatefrom
mleot:update-for-dependencies

Conversation

@mleot

@mleot mleot commented Feb 2, 2024

Copy link
Copy Markdown
Contributor

Primary Changes were to the openpnm function calls to reflect V3.0 and above syntax.

@mleot

mleot commented Feb 6, 2024

Copy link
Copy Markdown
Contributor Author

@TomTranter I did a few more tests to see whether the liionpack steps or the OpenPNM steps were causing the slowdown, and I think I've determined it is indeed openpnm taking a long time to solve. I am using their updated methods to obtain the transient solution, but there is an option to use the legacy solver, or use a different integrator. Using the alternate integrator did speed things up by some amount.

@mleot mleot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TomTranter I have determined the cause for poor performance is the lack of methods available for scipy integrators. I believe the problem is stiff, and RK45 is a poor suited integrator for stiff problems. There is already a pull request in the works for adding the other integrators to openpnm: PMEAL/OpenPNM#2880

@TomTranter

Copy link
Copy Markdown
Owner

@mleot I pinned the version we were using for OpenPNM to avoid these kinds of thing. I haven't kept pace with the developments there and thought going forward we would want to solve the thermal problem and global electrical problem in PyBaMM - I'm not sure it's worth pursuing updating OpenPNM

@mleot mleot changed the base branch from main to update February 7, 2024 20:39
@mleot

mleot commented Feb 7, 2024

Copy link
Copy Markdown
Contributor Author

Closing this pull request

@mleot mleot closed this Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants