Skip to content
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

v0.2.3 release #1095

Merged
merged 277 commits into from
Jul 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
277 commits
Select commit Hold shift + click to select a range
6ffd0a2
Merge branch 'develop' into issue-632-average-second-dimension
valentinsulzer Jun 1, 2020
37c468a
#1015 add least squares solver
valentinsulzer Jun 1, 2020
e6ee84b
Add sei current and associated beta coefficient
felipe-salinas Jun 2, 2020
90162c5
Original file
felipe-salinas Jun 2, 2020
2b8d03c
adds Full porosity
felipe-salinas Jun 2, 2020
27342fd
Adds leading order porosity
felipe-salinas Jun 2, 2020
bd65b49
Adds leading order porosity
felipe-salinas Jun 2, 2020
ddc9e40
Beta coefficients and initial condition porosity
felipe-salinas Jun 2, 2020
b42b5a8
Adds X-averaged j_sei
felipe-salinas Jun 2, 2020
015931a
Adds ec reaction limited
felipe-salinas Jun 2, 2020
de368e2
Add test for ec reaction limited
felipe-salinas Jun 2, 2020
f31be98
Adds test for ex reaction limited
felipe-salinas Jun 2, 2020
a16fdaf
Adds reference performance tests
felipe-salinas Jun 2, 2020
384220a
Replaced by full order
felipe-salinas Jun 2, 2020
966f908
adds Ramadass2004
felipe-salinas Jun 2, 2020
022b613
Create dummy
felipe-salinas Jun 2, 2020
d58c8c4
Graphite of referenced paper
felipe-salinas Jun 2, 2020
0a058b9
Delete dummy
felipe-salinas Jun 2, 2020
be3838c
Create dummy
felipe-salinas Jun 2, 2020
4029d0a
Cathode of referenced paper
felipe-salinas Jun 2, 2020
13e781e
Create dummy
felipe-salinas Jun 2, 2020
8a68dc9
Cell geometry
felipe-salinas Jun 2, 2020
3afdfb5
Delete dummy
felipe-salinas Jun 2, 2020
cd0f9ba
Delete dummy
felipe-salinas Jun 2, 2020
f415bcf
Create dummy
felipe-salinas Jun 2, 2020
57cea0e
Electrolyte from reference
felipe-salinas Jun 2, 2020
91a598d
Delete dummy
felipe-salinas Jun 2, 2020
f8024f0
Create dummy
felipe-salinas Jun 2, 2020
0433800
Add files via upload
felipe-salinas Jun 2, 2020
248e776
Delete dummy
felipe-salinas Jun 2, 2020
67b04b0
Create dummy
felipe-salinas Jun 2, 2020
a43b93d
A separate type to allow changes in example
felipe-salinas Jun 2, 2020
5740132
Delete dummy
felipe-salinas Jun 2, 2020
9ac2259
#1015 add bounds to variables and disc
valentinsulzer Jun 2, 2020
d84f9f1
#1015 trying to add constraints to solvers
valentinsulzer Jun 2, 2020
2a21e30
#1015 add some different tests
valentinsulzer Jun 2, 2020
49a490c
Merge pull request #1 from pybamm-team/develop
felipe-salinas Jun 5, 2020
ce006e7
Merge branch 'issue-836-add-lithium-plating' into Update
felipe-salinas Jun 5, 2020
2359e1f
Merge pull request #2 from felipe-salinas/Update
felipe-salinas Jun 5, 2020
c70e1fc
Update sei_parameters.py
felipe-salinas Jun 5, 2020
2f5295d
Update README.md
felipe-salinas Jun 5, 2020
5f7f7cf
Update README.md
felipe-salinas Jun 5, 2020
6c9d3cf
Merge branch 'develop' into issue-632-average-second-dimension
valentinsulzer Jun 6, 2020
97f1d31
#632 fix flake8
valentinsulzer Jun 6, 2020
5e80930
#1049 simplied compare scripts
brosaplanella Jun 11, 2020
13a38f9
flake8
brosaplanella Jun 11, 2020
5984c4f
#1049 set logger to INFO
brosaplanella Jun 11, 2020
5fd818d
Merge branch 'develop' into issue-632-average-second-dimension
valentinsulzer Jun 12, 2020
45de6f4
#632 fix some tests, remove __getitem__
valentinsulzer Jun 12, 2020
3edd39a
#632 fixing tests
valentinsulzer Jun 12, 2020
451f766
#632 fix unit tests
valentinsulzer Jun 13, 2020
fb88e8f
#1051 fix 2D plot bug
rtimms Jun 14, 2020
0118999
#1048 set tests
brosaplanella Jun 14, 2020
ca5fad4
#1048 added base Landesfeind functions
brosaplanella Jun 14, 2020
e0fe386
#1048 added EC:DMC 1:1 but still not working
brosaplanella Jun 14, 2020
7573c8f
#1044 added Colab badge
brosaplanella Jun 14, 2020
51fb217
#1044 added extra installation line
brosaplanella Jun 14, 2020
38f7bf1
#1030 start adding length scales
valentinsulzer Jun 14, 2020
6a0376c
#632 fix examples
valentinsulzer Jun 14, 2020
e354928
Merge pull request #1050 from ferranbrosa/issue-1049-simplify-compare…
valentinsulzer Jun 14, 2020
c4ab4d1
#1030 fix tests and simplify quickplot
valentinsulzer Jun 14, 2020
cad9822
#1030 fix tests and examples
valentinsulzer Jun 15, 2020
873c943
#632 merge develop
valentinsulzer Jun 15, 2020
76a64d6
#1051 more quickplot tests
rtimms Jun 15, 2020
908dbdf
#632 coverage
valentinsulzer Jun 15, 2020
7f742f8
#1030 fix integration tests
valentinsulzer Jun 15, 2020
acae2e2
#1015 merge develop
valentinsulzer Jun 15, 2020
ab045b4
#1015 merge 632
valentinsulzer Jun 15, 2020
16064d8
Merge pull request #1055 from pybamm-team/issue-1051-2D-plot-bug
rtimms Jun 16, 2020
cb52a11
#1015 fix tests (can't think of good tests)
valentinsulzer Jun 16, 2020
41f053c
Merge branch 'develop' into issue-632-average-second-dimension
valentinsulzer Jun 16, 2020
0a43a73
#632 changelog and ferran comment
valentinsulzer Jun 16, 2020
f3d3640
Merge branch 'develop' into issue-1030-length-scales-models
valentinsulzer Jun 16, 2020
10e8d7a
Merge branch 'issue-632-average-second-dimension' into issue-1030-len…
valentinsulzer Jun 16, 2020
ddb4ce7
Merge branch 'develop' into issue-1015-algebraic-solver
valentinsulzer Jun 16, 2020
00cbe19
Merge pull request #1057 from pybamm-team/issue-632-average-second-di…
valentinsulzer Jun 16, 2020
0c0a44c
Merge branch 'develop' into issue-1030-length-scales-models
valentinsulzer Jun 16, 2020
5caf51b
#1030 changelog
valentinsulzer Jun 16, 2020
0acca47
Merge branch 'develop' into issue-1015-algebraic-solver
valentinsulzer Jun 16, 2020
6e709ce
#1015 allow list entries in vector and fix bug with updating ics
valentinsulzer Jun 16, 2020
9aa952c
#1030 fix quickplot test
valentinsulzer Jun 16, 2020
50fb37e
Merge pull request #1058 from pybamm-team/issue-1030-length-scales-mo…
valentinsulzer Jun 16, 2020
e7eaa59
#1011 first attempt. quite hacky
valentinsulzer Jun 16, 2020
2e152eb
#1011 fix flake8
valentinsulzer Jun 16, 2020
dd8b944
#1044 tried a fix for tests
brosaplanella Jun 17, 2020
bfada1e
flake8
brosaplanella Jun 17, 2020
97bcc53
#1011 remove model_options from simulation.specs
valentinsulzer Jun 17, 2020
9ee0000
#1044 added Colab badge
brosaplanella Jun 14, 2020
f364b45
#1044 added extra installation line
brosaplanella Jun 14, 2020
5e10dfe
#1044 tried a fix for tests
brosaplanella Jun 17, 2020
31f274b
#1044 modified to catch lines with magic
brosaplanella Jun 17, 2020
4587ad7
#1044 fixed notebooks
brosaplanella Jun 17, 2020
f566dbe
Merge branch 'issue-1044-google-colab' of https://github.com/ferranbr…
brosaplanella Jun 17, 2020
f833499
added #1044
brosaplanella Jun 17, 2020
5be75ef
#1044 removed commented line
brosaplanella Jun 17, 2020
4d075b2
#1044 fixed typo
brosaplanella Jun 17, 2020
048b82b
#1044 remove binder badge and add Google Colab badge
brosaplanella Jun 17, 2020
b078d8f
#1048 set tests
brosaplanella Jun 14, 2020
3ddef54
#1048 added base Landesfeind functions
brosaplanella Jun 14, 2020
0c16119
#1048 added EC:DMC 1:1 but still not working
brosaplanella Jun 14, 2020
532ed27
flake8
brosaplanella Jun 17, 2020
7ecc65b
#1048 remove base electrolyte folder and old test
brosaplanella Jun 19, 2020
c4fc572
#1048 added Landesfeind parameters test
brosaplanella Jun 19, 2020
16ef250
#1048 fixed EC-DMC electrolyte
brosaplanella Jun 19, 2020
4adee94
#1048 added EC-EMC electrolyte
brosaplanella Jun 19, 2020
9cdf761
#1048 added EMC-FEC electrolyte
brosaplanella Jun 19, 2020
889e2a6
Merge branch 'issue-1048-reformat-landesfeind-electrolyte' of https:/…
brosaplanella Jun 19, 2020
c9d2082
#1048 flake8
brosaplanella Jun 19, 2020
74122fb
#1048 remove old Landesfeind parameter set
brosaplanella Jun 19, 2020
199d852
#1048 CHANGELOG
brosaplanella Jun 20, 2020
17460e8
Merge pull request #1061 from ferranbrosa/issue-1044-google-colab
valentinsulzer Jun 21, 2020
6a5a79f
#1040 update install instructions
valentinsulzer Jun 21, 2020
40e2d73
#1046 add citations info
valentinsulzer Jun 21, 2020
6fc969c
#887 add casadi warning to KLU solver
valentinsulzer Jun 21, 2020
b72be66
changes for release
valentinsulzer Jun 21, 2020
fef513d
#1048 fixed typos
brosaplanella Jun 22, 2020
36d6ea2
#1048 set tests
brosaplanella Jun 14, 2020
fa330a2
#1048 added base Landesfeind functions
brosaplanella Jun 14, 2020
05664d5
#1048 added EC:DMC 1:1 but still not working
brosaplanella Jun 14, 2020
6b3de3c
flake8
brosaplanella Jun 17, 2020
e3f4b33
#1048 remove base electrolyte folder and old test
brosaplanella Jun 19, 2020
5c3ebb5
#1048 added Landesfeind parameters test
brosaplanella Jun 19, 2020
741bd49
#1048 fixed EC-DMC electrolyte
brosaplanella Jun 19, 2020
dc049dc
#1048 added EC-EMC electrolyte
brosaplanella Jun 19, 2020
12cb5cc
#1048 added EMC-FEC electrolyte
brosaplanella Jun 19, 2020
8ff853c
#1048 flake8
brosaplanella Jun 19, 2020
3ddefde
#1048 remove old Landesfeind parameter set
brosaplanella Jun 19, 2020
84fc9ed
#1048 CHANGELOG
brosaplanella Jun 20, 2020
3a03134
#1048 fixed typos
brosaplanella Jun 22, 2020
b2a9121
#1048 fixed more typos
brosaplanella Jun 22, 2020
fa65ccd
Merge branch 'issue-1048-reformat-landesfeind-electrolyte' of https:/…
brosaplanella Jun 22, 2020
feb1e1e
#1066 add numpy function sqrt, sin, cos and exp to convert_to_casadi
martinjrobins Jun 22, 2020
eb32c9b
#1066 update changelog
martinjrobins Jun 22, 2020
c235bde
#1066 get rid of print statement
martinjrobins Jun 22, 2020
afefa83
#1066 add hyperbolic functions
martinjrobins Jun 22, 2020
b25b434
#1066 fix deprecations
valentinsulzer Jun 22, 2020
feec211
Merge branch 'issue-1066-additional-casadi-funcitons' into release-fo…
valentinsulzer Jun 22, 2020
6ca17ec
update date
valentinsulzer Jun 22, 2020
bc7745a
#1066 use nans when evaluating for shape to avoid runtime warnings
valentinsulzer Jun 22, 2020
67f0fc1
#1066 add test for numpy special functions
martinjrobins Jun 23, 2020
6c7a06e
Merge pull request #1067 from pybamm-team/issue-1066-additional-casad…
valentinsulzer Jun 23, 2020
cc0af0e
Merge branch 'develop' into release-for-colab
valentinsulzer Jun 23, 2020
1bd8dfc
#1048 set tests
brosaplanella Jun 14, 2020
5a4c310
#1048 added base Landesfeind functions
brosaplanella Jun 14, 2020
9bd04e4
#1048 added EC:DMC 1:1 but still not working
brosaplanella Jun 14, 2020
6c984db
flake8
brosaplanella Jun 17, 2020
320ceac
#1048 remove base electrolyte folder and old test
brosaplanella Jun 19, 2020
67d6f2e
#1048 added Landesfeind parameters test
brosaplanella Jun 19, 2020
5be6e1c
#1048 fixed EC-DMC electrolyte
brosaplanella Jun 19, 2020
5526e1c
#1048 added EC-EMC electrolyte
brosaplanella Jun 19, 2020
8a0cece
#1048 added EMC-FEC electrolyte
brosaplanella Jun 19, 2020
1cd1703
#1048 flake8
brosaplanella Jun 19, 2020
8ca2c67
#1048 remove old Landesfeind parameter set
brosaplanella Jun 19, 2020
a43d708
#1048 CHANGELOG
brosaplanella Jun 20, 2020
db2f502
#1048 fixed typos
brosaplanella Jun 22, 2020
583fd6f
#1048 added base Landesfeind functions
brosaplanella Jun 14, 2020
984397d
#1048 added EC:DMC 1:1 but still not working
brosaplanella Jun 14, 2020
aae0a7b
#1048 remove base electrolyte folder and old test
brosaplanella Jun 19, 2020
24ed701
#1048 fixed EC-DMC electrolyte
brosaplanella Jun 19, 2020
868e86e
#857 scikit deprecations
valentinsulzer Jun 23, 2020
449b515
#1048 added EC-EMC electrolyte
brosaplanella Jun 19, 2020
cc10301
#1048 added EMC-FEC electrolyte
brosaplanella Jun 19, 2020
6e527e2
#1048 fixed typos
brosaplanella Jun 22, 2020
e278dca
#1048 fixed more typos
brosaplanella Jun 22, 2020
431ebbc
Merge branch 'issue-1048-reformat-landesfeind-electrolyte' of https:/…
brosaplanella Jun 23, 2020
5a0f56e
#1070 add length scales
rtimms Jun 23, 2020
c559519
#1070 changelog
rtimms Jun 23, 2020
ead16e9
Merge remote-tracking branch 'felipe/issue-836-add-lithium-plating' i…
valentinsulzer Jun 23, 2020
903ab78
Merge pull request #1064 from ferranbrosa/issue-1048-reformat-landesf…
valentinsulzer Jun 23, 2020
5585046
Merge pull request #1071 from pybamm-team/issue-1070-effective-cc-len…
rtimms Jun 23, 2020
bdd34a6
#836 reformat SEI parameters
valentinsulzer Jun 23, 2020
c689ca0
Merge branch 'develop' into issue-836-add-lithium-plating
valentinsulzer Jun 23, 2020
6ac31d4
#836 merge develop
valentinsulzer Jun 23, 2020
5441c14
Merge branch 'develop' into release-for-colab
valentinsulzer Jun 23, 2020
7f84951
#836 fix parameter scalings
valentinsulzer Jun 23, 2020
6da288e
#857 fix scikit finite element
valentinsulzer Jun 23, 2020
64520df
#836 fix tests
valentinsulzer Jun 23, 2020
d0e2487
#1015 merge develop
valentinsulzer Jun 23, 2020
cc041dd
#836 fix example
valentinsulzer Jun 24, 2020
7263f0a
Merge pull request #1059 from pybamm-team/issue-1015-algebraic-solver
valentinsulzer Jun 24, 2020
53108d8
#1077 update quickplot for fem
rtimms Jun 24, 2020
baff47b
#1077 changelog
rtimms Jun 24, 2020
bce5841
Merge pull request #1074 from pybamm-team/issue-857-scikit-fem
valentinsulzer Jun 24, 2020
712ed9b
Merge pull request #1078 from pybamm-team/issue-1077-2Dys-quickplot
rtimms Jun 24, 2020
9aeae8b
#836 coverage
valentinsulzer Jun 24, 2020
28eb1be
Merge branch 'develop' of github.com:pybamm-team/PyBaMM into issue-83…
valentinsulzer Jun 24, 2020
c43ceb6
#836 fix lead-acid tests
valentinsulzer Jun 24, 2020
12cf829
#1075 update default var pts
rtimms Jun 24, 2020
fbddd16
#1075 changelog
rtimms Jun 24, 2020
6e22279
#836 update refs
valentinsulzer Jun 24, 2020
64f89ba
#836 fix docs
valentinsulzer Jun 24, 2020
7da7414
Merge pull request #1081 from pybamm-team/issue-1075-default-rpts
rtimms Jun 24, 2020
cc5d9f1
Merge pull request #1073 from pybamm-team/issue-836-add-lithium-plating
valentinsulzer Jun 24, 2020
f77c46d
Merge branch 'develop' into issue-1011-model-new-copy
valentinsulzer Jun 25, 2020
13ba177
rescaling integrator
valentinsulzer Jun 27, 2020
3f5915e
#1079 added references so they appear in the docs
brosaplanella Jun 27, 2020
c5a7206
#1079 added new notebooks
brosaplanella Jun 28, 2020
667b8f3
#1082 some easy casadi solver fixes
valentinsulzer Jun 28, 2020
af4062d
#1082 remove test.py
valentinsulzer Jun 28, 2020
08c8941
#1011 remove sim.specs and sim.reset
valentinsulzer Jun 29, 2020
c865c05
#1011 fix examples
valentinsulzer Jun 29, 2020
4f7de25
#1080 require t_eval
rtimms Jun 29, 2020
b1be536
#1079 added error if format is not recognised
brosaplanella Jun 29, 2020
c9db546
#1079 Rob's comments
brosaplanella Jun 29, 2020
0292b06
#1079 update CHANGELOG
brosaplanella Jun 29, 2020
bff20e4
#1080 fix examples
rtimms Jun 29, 2020
71834c0
#1087 added extrapolation to endpoints for 2D processed variables
brosaplanella Jun 29, 2020
5d52fe3
#1087 fixed tests
brosaplanella Jun 29, 2020
bfd52bf
#1087 flake8
brosaplanella Jun 29, 2020
9d83563
fixed typo
brosaplanella Jun 29, 2020
3d9390e
#1079 changed to DFN model so plot changes with time
brosaplanella Jun 29, 2020
2d5f326
#1087 CHANGELOG
brosaplanella Jun 29, 2020
ed0ac73
#1082 fix integration tests
valentinsulzer Jun 29, 2020
92678f3
#1082 fix another integration test
valentinsulzer Jun 29, 2020
f6fa982
#1011 debugging
valentinsulzer Jun 29, 2020
952dc3e
#1082 loosen tols
valentinsulzer Jun 29, 2020
863ea6a
Merge branch 'develop' into release-for-colab
valentinsulzer Jun 29, 2020
0b1f4f8
remove ida klu warning as python format doesn't always work
valentinsulzer Jun 29, 2020
d10bfa5
#1011 fix example again
valentinsulzer Jun 29, 2020
002ad15
#1080 changelog
rtimms Jun 30, 2020
7f35218
Merge pull request #1083 from ferranbrosa/issue-1079-update-getting-s…
valentinsulzer Jun 30, 2020
a4a57f8
Merge pull request #1088 from ferranbrosa/issue-1087-endpoints-interp…
valentinsulzer Jun 30, 2020
9bacc5a
Merge branch 'develop' into issue-1082-casadi
valentinsulzer Jun 30, 2020
066b88f
#1082 changelog
valentinsulzer Jun 30, 2020
579e136
#1011 merge develop
valentinsulzer Jun 30, 2020
0f0bbaa
#1011 add tests for deprecations and colab
valentinsulzer Jun 30, 2020
fcbbd78
#1011 changelog
valentinsulzer Jun 30, 2020
ce4ca81
#1082 print dimensional t and dt_max
valentinsulzer Jun 30, 2020
1ed10f6
Merge branch 'develop' into issue-1080-require-t_eval
rtimms Jun 30, 2020
eab9e32
#1080 fix notebooks
rtimms Jun 30, 2020
fc2204a
Merge pull request #1089 from pybamm-team/issue-1082-casadi
valentinsulzer Jun 30, 2020
3d4d533
Merge branch 'develop' into issue-1011-model-new-copy
valentinsulzer Jun 30, 2020
874b3f7
#1011 coverage
valentinsulzer Jun 30, 2020
9dda53c
Merge branch 'develop' into issue-1080-require-t_eval
rtimms Jun 30, 2020
bb11539
#1080 update notebooks
rtimms Jun 30, 2020
5333fba
#1080 revert dt_max
rtimms Jun 30, 2020
0077553
Merge pull request #1086 from pybamm-team/issue-1080-require-t_eval
valentinsulzer Jun 30, 2020
e0c0811
Merge branch 'develop' into issue-1011-model-new-copy
valentinsulzer Jul 1, 2020
61da8c7
#1011 merge develop
valentinsulzer Jul 1, 2020
a6ddfd1
Merge pull request #1090 from pybamm-team/issue-1011-model-new-copy
valentinsulzer Jul 1, 2020
9d84c72
merge
valentinsulzer Jul 1, 2020
6fafe55
version number
rtimms Jul 1, 2020
8586fdd
Only update entropic variables if reactio_name is empty
TomTranter Jul 1, 2020
60d0d5a
Merge pull request #1091 from pybamm-team/release-for-colab
valentinsulzer Jul 1, 2020
73af41c
Merge branch 'develop' into issue-1092-entropic-fix
valentinsulzer Jul 1, 2020
baedfdf
#1092 flake8
valentinsulzer Jul 1, 2020
33e695e
Merge pull request #1093 from pybamm-team/issue-1092-entropic-fix
valentinsulzer Jul 1, 2020
8ba3538
#1096 fix sei typo
rtimms Jul 1, 2020
e1d956d
#1096 changelog
rtimms Jul 1, 2020
56c0383
Merge pull request #1097 from pybamm-team/issue-1096-sei-bug
valentinsulzer Jul 1, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
# [v0.2.3](https://github.com/pybamm-team/PyBaMM/tree/v0.2.3) - 2020-07-01

This release enables the use of [Google Colab](https://colab.research.google.com/github/pybamm-team/PyBaMM/blob/master/) for running example notebooks, and adds some small new features and bug fixes.

## Features

- Reformatted Getting Started notebooks ([#1083](https://github.com/pybamm-team/PyBaMM/pull/1083))
- Reformatted Landesfeind electrolytes ([#1064](https://github.com/pybamm-team/PyBaMM/pull/1064))
- Adapted examples to be run in Google Colab ([#1061](https://github.com/pybamm-team/PyBaMM/pull/1061))
- Added some new solvers for algebraic models ([#1059](https://github.com/pybamm-team/PyBaMM/pull/1059))
- Added `length_scales` attribute to models ([#1058](https://github.com/pybamm-team/PyBaMM/pull/1058))
- Added averaging in secondary dimensions ([#1057](https://github.com/pybamm-team/PyBaMM/pull/1057))
- Added SEI reaction based on Yang et. al. 2017 and reduction in porosity ([#1009](https://github.com/pybamm-team/PyBaMM/issues/1009))

## Optimizations

- Reformatted CasADi "safe" mode to deal with events better ([#1089](https://github.com/pybamm-team/PyBaMM/pull/1089))

## Bug fixes

- Fixed a bug in `InterstitialDiffusionLimited` ([#1097](https://github.com/pybamm-team/PyBaMM/pull/1097))
- Fixed `Simulation` to keep different copies of the model so that parameters can be changed between simulations ([#1090](https://github.com/pybamm-team/PyBaMM/pull/1090))
- Fixed `model.new_copy()` to keep custom submodels ([#1090](https://github.com/pybamm-team/PyBaMM/pull/1090))
- 2D processed variables can now be evaluated at the domain boundaries ([#1088](https://github.com/pybamm-team/PyBaMM/pull/1088))
- Update the default variable points to better capture behaviour in the solid particles in li-ion models ([#1081](https://github.com/pybamm-team/PyBaMM/pull/1081))
- Fix `QuickPlot` to display variables discretised by FEM (in y-z) properly ([#1078](https://github.com/pybamm-team/PyBaMM/pull/1078))
- Add length scales to `EffectiveResistance` models ([#1071](https://github.com/pybamm-team/PyBaMM/pull/1071))
- Allowed for pybamm functions exp, sin, cos, sqrt to be used in expression trees that
are converted to casadi format ([#1067](https://github.com/pybamm-team/PyBaMM/pull/1067))
- Fix a bug where variables that depend on y and z were transposed in `QuickPlot` ([#1055](https://github.com/pybamm-team/PyBaMM/pull/1055))

## Breaking changes

- `Simulation.specs` and `Simulation.set_defaults` have been deprecated. Users should create a new `Simulation` object for each different case instead ([#1090](https://github.com/pybamm-team/PyBaMM/pull/1090))
- The solution times `t_eval` must now be provided to `Simulation.solve()` when not using an experiment or prescribing the current using drive cycle data ([#1086](https://github.com/pybamm-team/PyBaMM/pull/1086))

# [v0.2.2](https://github.com/pybamm-team/PyBaMM/tree/v0.2.2) - 2020-06-01

New SEI models, simplification of submodel structure, as well as optimisations and general bug fixes.
Expand Down
19 changes: 19 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,25 @@ All example notebooks should be listed in [examples/README.md](https://github.co

Where possible, notebooks are tested daily. A list of slow notebooks (which time-out and fail tests) is maintained in `.slow-books`, these notebooks will be excluded from daily testing.

## Citations

We aim to recognize all contributions by automatically generating citations to the relevant papers on which different parts of the code are built.
These will change depending on what models and solvers you use.
Adding the command

```python3
pybamm.print_citations()
```

to the end of a script will print all citations that were used by that script. This will print bibtex information to the terminal; passing a filename to `print_citations` will print the bibtex information to the specified file instead.

When you contribute code to PyBaMM, you can add your own papers that you would like to be cited if that code is used. First, add the bibtex for your paper to [CITATIONS.txt](pybamm/CITATIONS.txt). Then, add the line

```python3
pybamm.citations.register("your_paper_bibtex_identifier")
```

wherever code is called that uses that citation (for example, in functions or in the `__init__` method of a class such as a model or solver).

## Infrastructure

Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build](https://github.com/pybamm-team/PyBaMM/workflows/PyBaMM/badge.svg)](https://github.com/pybamm-team/PyBaMM/actions?query=workflow%3APyBaMM+branch%3Adevelop)
[![readthedocs](https://readthedocs.org/projects/pybamm/badge/?version=latest)](https://pybamm.readthedocs.io/en/latest/?badge=latest)
[![codecov](https://codecov.io/gh/pybamm-team/PyBaMM/branch/master/graph/badge.svg)](https://codecov.io/gh/pybamm-team/PyBaMM)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/pybamm-team/PyBaMM/master?filepath=examples%2Fnotebooks)
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/pybamm-team/PyBaMM/blob/master/)
[![black_code_style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

PyBaMM (Python Battery Mathematical Modelling) solves physics-based electrochemical DAE models by using state-of-the-art automatic differentiation and numerical solvers. The Doyle-Fuller-Newman model can be solved in under 0.1 seconds, while the reduced-order Single Particle Model and Single Particle Model with electrolyte can be solved in just a few milliseconds. Additional physics can easily be included such as thermal effects, fast particle diffusion, 3D effects, and more. All models are implemented in a flexible manner, and a wide range of models and parameter sets (NCA, NMC, LiCoO2, ...) are available. There is also functionality to simulate any set of experimental instructions, such as CCCV or GITT, or specify drive cycles.
Expand All @@ -13,9 +13,9 @@ PyBaMM (Python Battery Mathematical Modelling) solves physics-based electrochemi
The easiest way to use PyBaMM is to run a 1C constant-current discharge with a model of your choice with all the default settings:
```python3
import pybamm
model = pybamm.lithium_ion.DFN() # Doyle-Fuller-Newman model
model = pybamm.lithium_ion.DFN() # Doyle-Fuller-Newman model
sim = pybamm.Simulation(model)
sim.solve()
sim.solve([0, 3600]) # solve for 1 hour
sim.plot()
```
or simulate an experiment such as CCCV:
Expand All @@ -42,7 +42,7 @@ For new users we recommend the [Getting Started](examples/notebooks/Getting%20St

Further details can be found in a number of [detailed examples](examples/notebooks/README.md), hosted here on
github. In addition, there is a [full API documentation](http://pybamm.readthedocs.io/),
hosted on [Read The Docs](readthedocs.io).
hosted on [Read The Docs](readthedocs.io).
Additional supporting material can be found
[here](https://github.com/pybamm-team/pybamm-supporting-material/).

Expand Down Expand Up @@ -92,6 +92,7 @@ pybamm.print_citations()
```

to the end of your script. This will print bibtex information to the terminal; passing a filename to `print_citations` will print the bibtex information to the specified file instead. A list of all citations can also be found in the [citations file](pybamm/CITATIONS.txt). In particular, PyBaMM relies heavily on [CasADi](https://web.casadi.org/publications/).
See [CONTRIBUTING.md](CONTRIBUTING.md#citations) for information on how to add your own citations when you contribute.

## How can I contribute to PyBaMM?

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# The short X.Y version
version = "0.2"
# The full version, including alpha/beta/rc tags
release = "0.2.2"
release = "0.2.3"


# -- General configuration ---------------------------------------------------
Expand Down
7 changes: 4 additions & 3 deletions docs/install/GNU-linux.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ User install
------------

We recommend to install PyBaMM within a virtual environment, in order
not to alter any distribution python files. To create a virtual
environment ``env`` within your current directory type:
not to alter any distribution python files.
First, make sure you are using python 3.6 or 3.7.
To create a virtual environment ``env`` within your current directory type:

.. code:: bash

python3 -m venv env
virtualenv env

You can then “activate” the environment using:

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Experiment events
=================================

.. autoclass:: pybamm.external_circuit.ExperimentEvents
:members:
1 change: 1 addition & 0 deletions docs/source/models/submodels/external_circuit/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ variable to be constant.

current_control_external_circuit
function_control_external_circuit
experiment_events
3 changes: 3 additions & 0 deletions docs/source/models/submodels/interface/sei.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ SEI models
:members:

.. autoclass:: pybamm.sei.SolventDiffusionLimited
:members:

.. autoclass:: pybamm.sei.EcReactionLimited
:members:
3 changes: 2 additions & 1 deletion examples/notebooks/Creating Models/1-an-ode-model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install pybamm -q # install PyBaMM if it is not installed\n",
"import pybamm\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt"
Expand Down Expand Up @@ -278,7 +279,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
"version": "3.6.8"
}
},
"nbformat": 4,
Expand Down
3 changes: 2 additions & 1 deletion examples/notebooks/Creating Models/2-a-pde-model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install pybamm -q # install PyBaMM if it is not installed\n",
"import pybamm\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt"
Expand Down Expand Up @@ -308,7 +309,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.7"
"version": "3.6.8"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install pybamm -q # install PyBaMM if it is not installed\n",
"import pybamm\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
Expand Down Expand Up @@ -330,7 +331,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.7"
"version": "3.6.8"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install pybamm -q # install PyBaMM if it is not installed\n",
"import pybamm\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
Expand Down Expand Up @@ -390,7 +391,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.7"
"version": "3.6.8"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install pybamm -q # install PyBaMM if it is not installed\n",
"import pybamm\n",
"import numpy as np\n",
"import os\n",
Expand Down Expand Up @@ -669,7 +670,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.7"
"version": "3.6.8"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,25 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Note: you may need to restart the kernel to use updated packages.\n"
]
}
],
"source": [
"%pip install pybamm -q # install PyBaMM if it is not installed\n",
"import pybamm"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We now load the model that we wish to run. For this notebook, we choose the single particle model with electrolyte (SPMe):"
"We now load the model that we wish to run. For this notebook, we choose the Doyle-Fuller-Newman (DFN) model:"
]
},
{
Expand All @@ -40,7 +49,7 @@
"metadata": {},
"outputs": [],
"source": [
"model = pybamm.lithium_ion.SPMe()"
"model = pybamm.lithium_ion.DFN()"
]
},
{
Expand All @@ -63,16 +72,27 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"We can then call 'solve' on our simulation object to solve the model (by default the the model is solved for a 1C constant current discharge):"
"We can then call 'solve' on our simulation object to solve the model, passing the window of time to solve for in seconds (here 1 hour):"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"<pybamm.solvers.solution.Solution at 0x7f09715ea9b0>"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sim.solve()"
"sim.solve([0, 3600])"
]
},
{
Expand All @@ -90,12 +110,12 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "089df7a7f1f24690b734df6cf83bd550",
"model_id": "06ae219fb8b94fa3aad3b8907a41ed27",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"interactive(children=(FloatSlider(value=0.0, description='t', max=0.9999999999999999, step=0.05), Output()), _…"
"interactive(children=(FloatSlider(value=0.0, description='t', max=1.0, step=0.01), Output()), _dom_classes=('w…"
]
},
"metadata": {},
Expand All @@ -112,15 +132,8 @@
"source": [
"In this tutorial, we have solved a model with the inbuilt default settings. However, PyBaMM is designed to be highly customisable. Over the course of the getting started tutorials, we will see how various settings can be changed so that the model is appropriate for your situation. \n",
"\n",
"In [Tutorial 2](./Tutorial%202%20-%20Setting%20Parameter%20Values.ipynb) we cover setting and changing parameter values."
"In [Tutorial 2](./Tutorial%202%20-%20Compare%20models.ipynb) we cover how to simulate and compare different models."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Loading