Skip to content

Commit

Permalink
Issue 2111 custom transport efficiency (#3437)
Browse files Browse the repository at this point in the history
* log transport efficiency

* logsqrt_transport

* adding linear transport efficiency

* half_transport_effciency added

* add tortuosity factor submodel

* add multiple tortuosity models

* add tortuosity factor to model examples

* Update submodel options and add citations. Also change the solid phase volume fraction to be (1-porosity) rather than the active material volume fraction

* Update notebook and index for docs, get rid of unnecessary Bruggeman file

* Update docs

* Forgot the new file

* Update title underline and add well_posed tests

* style: pre-commit fixes

* Add some missing tests

* Update the transport efficieny print_name and add a bit more to notebook

* Split the models into separate classes

* style: pre-commit fixes

* Update docs and add citations

* style: pre-commit fixes

* Change docs to footcite

* style: pre-commit fixes

* Update pybamm/models/submodels/transport_efficiency/tortuosity_factor.py

Co-authored-by: Ferran Brosa Planella <Ferran.Brosa-Planella@warwick.ac.uk>

* style: pre-commit fixes

* Remove image from notebook

* remove .virtual_documents

* Update syntax for style

* style: pre-commit fixes

* Update index.rst

* Adjust reference to Shen and Chen

* style: pre-commit fixes

* Add footbibliography to rst files

* style: pre-commit fixes

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>

* Update CITATIONS.bib

---------

Co-authored-by: Ferran Brosa Planella <Ferran.Brosa-Planella@warwick.ac.uk>
Co-authored-by: Julia Wind <Julia.Wind@ife.no>
Co-authored-by: amirDahari1 <amir.dahari@mail.huji.ac.il>
Co-authored-by: Tom.Maull <Tom.Maull@wae.com>
Co-authored-by: amirDahari1 <31094949+amirDahari1@users.noreply.github.com>
Co-authored-by: Julia Wind <60978412+juliawind@users.noreply.github.com>
Co-authored-by: Ruimin-S <r.song22@imperial.ac.uk>
Co-authored-by: Isaac Squires <55202483+isaacsquires@users.noreply.github.com>
Co-authored-by: Ruimin-S <123746946+Ruimin-S@users.noreply.github.com>
Co-authored-by: isaacsquires <isaacsquires@me.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Valentin Sulzer <valentinsulzer@hotmail.com>
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
  • Loading branch information
14 people committed May 13, 2024
1 parent c687134 commit 1dae0bd
Show file tree
Hide file tree
Showing 30 changed files with 1,319 additions and 266 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Features

- Transport efficiency submodel has new options from the literature relating to different tortuosity factor models and also a new option called "tortuosity factor" for specifying the value or function directly as parameters ([#3437](https://github.com/pybamm-team/PyBaMM/pull/3437))
- Added `plot_thermal_components` to plot the contributions to the total heat generation in a battery ([#4021](https://github.com/pybamm-team/PyBaMM/pull/4021))
- Added functions for normal probability density function (`pybamm.normal_pdf`) and cumulative distribution function (`pybamm.normal_cdf`) ([#3999](https://github.com/pybamm-team/PyBaMM/pull/3999))
- "Basic" models are now compatible with experiments ([#3995](https://github.com/pybamm-team/PyBaMM/pull/3995))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Bruggeman Transport Efficiency Model
====================================

.. autoclass:: pybamm.transport_efficiency.Bruggeman
:members:

.. footbibliography::

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Cation-Exchange Membrane Transport Efficiency Model
===================================================

.. autoclass:: pybamm.transport_efficiency.CationExchangeMembrane
:members:

.. footbibliography::
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Heterogeneous Catalyst Transport Efficiency Model
=================================================

.. autoclass:: pybamm.transport_efficiency.HeterogeneousCatalyst
:members:

.. footbibliography::
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Hyperbola of Revolution Transport Efficiency Model
==================================================

.. autoclass:: pybamm.transport_efficiency.HyperbolaOfRevolution
:members:

.. footbibliography::
11 changes: 9 additions & 2 deletions docs/source/api/models/submodels/transport_efficiency/index.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
transport_efficiency
Transport Efficiency
====================

.. toctree::
:maxdepth: 1

base_transport_efficiency
bruggeman_transport_efficiency
bruggeman
cation_exchange_membrane
heterogeneous_catalyst
hyperbola_of_revolution
ordered_packing
overlapping_spheres
random_overlapping_cylinders
tortuosity_factor
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Ordered Packing Transport Efficiency Model
==========================================

.. autoclass:: pybamm.transport_efficiency.OrderedPacking
:members:

.. footbibliography::
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Overlapping Spheres Transport Efficiency Model
==============================================

.. autoclass:: pybamm.transport_efficiency.OverlappingSpheres
:members:

.. footbibliography::
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Random Overlapping Cylinders Transport Efficiency Model
=======================================================

.. autoclass:: pybamm.transport_efficiency.RandomOverlappingCylinders
:members:

.. footbibliography::
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Tortuosity Factor Transport Efficiency Model
============================================

.. autoclass:: pybamm.transport_efficiency.TortuosityFactor
:members:

.. footbibliography::
1 change: 1 addition & 0 deletions docs/source/examples/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ The notebooks are organised into subfolders, and can be viewed in the galleries
notebooks/models/submodel_cracking_DFN_or_SPM.ipynb
notebooks/models/loss_of_active_materials.ipynb
notebooks/models/thermal-models.ipynb
notebooks/models/tortuosity_models.ipynb
notebooks/models/unsteady-heat-equation.ipynb
notebooks/models/using-model-options_thermal-example.ipynb
notebooks/models/using-submodels.ipynb
Expand Down
562 changes: 329 additions & 233 deletions docs/source/examples/notebooks/models/latexify.ipynb

Large diffs are not rendered by default.

0 comments on commit 1dae0bd

Please sign in to comment.