-
-
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
I2376 bpx #2555
Conversation
…lation, still problems with diffusivity
…tivity equatinos
Codecov ReportBase: 99.73% // Head: 99.61% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #2555 +/- ##
===========================================
- Coverage 99.73% 99.61% -0.13%
===========================================
Files 270 271 +1
Lines 19376 19553 +177
===========================================
+ Hits 19324 19477 +153
- Misses 52 76 +24
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
pybamm_dict[domain.pre_name + "active material volume fraction"] = ( | ||
pybamm_dict[domain.pre_name + "surface area per unit volume [m-1]"] | ||
* pybamm_dict[domain.short_pre_name + "particle radius [m]"] | ||
) / 3.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doing it this way round is very strange
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, some cool python functionality I didn't know about in here :)
Not specifying active volume fraction is weird but that's a BPX thing so 🤷
@@ -0,0 +1,377 @@ | |||
from bpx import BPX, Function, InterpolatedTable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be a private file with private function names (all start with underscore). I know we haven't been good about this in the past but better late than never (see #2427 )
Description
Add functionality to create
pybamm.ParameterValues
from a BPX standard json file.Fixes #2376
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ flake8
$ python run-tests.py --unit
$ cd docs
and then$ make clean; make html
You can run all three at once, using
$ python run-tests.py --quick
.Further checks: