How krishnamurthybusam/lithium-ion-cell-modeling works
This repository is an engineering study and reusable toolkit for modeling the LG INR21700 M50 lithium-ion cell. The user-facing workflow moves from electrochemical fundamentals through a from-scratch SPM and full-cell DFN analysis, then parameter fitting, thermal and aging studies, and design/drive-cycle investigations; results can be recorded and queried with SQL. Reusable parameters, the SPM solver, plotting helpers, and persistence code support that work. The README documents the broader notebook capabilities; unsampled notebook internals are represented only where documented, so some relationships are omitted.
Main entry points: parameters.py Cell parameters · plotting.py Plot helpers · 02_single_particle_model_from_scratch.py SPM study · 07_doe_drivecycles_and_design.py Design studies
Components 16
Cell modeling
- Fundamentals
notebooks/01_fundamentals_and_theory.py - SPM study
notebooks/02_single_particle_model_from_scratch.py - DFN study
notebooks/03_dfn_full_cell_model.py
Engineering studies
- Parameter fitting
notebooks/04_parameter_estimation_and_validation.py - Thermal study
notebooks/05_thermal_coupling_and_dynamics.py - Aging study
notebooks/06_degradation_and_aging.py - Design studies
notebooks/07_doe_drivecycles_and_design.py - Test report
reports
Reusable code
- SPM solver
src/spm_from_scratch.py - Cell parameters
src/parameters.py - Plot helpers
src/plotting.py
Results storage
- SQL workflow
notebooks/08_data_management_sql.py - SQL persistence
src/sql_utils.py - SQL database
data
Other components
- Cell engineer
- PyBaMM
Connections 33
- Cell engineer → Fundamentals: starts with
README.md - Cell engineer → SPM study: runs notebooks
README.md - Cell engineer → DFN study: runs notebooks
README.md - Cell engineer → Parameter fitting: runs notebooks
README.md - Cell engineer → Thermal study: runs notebooks
README.md - Cell engineer → Aging study: runs notebooks
README.md - Cell engineer → Design studies: runs notebooks
README.md - Cell engineer → SQL workflow: runs notebooks
README.md - Fundamentals → Cell parameters: uses
notebooks/01_fundamentals_and_theory.py - Fundamentals → Plot helpers: uses
notebooks/01_fundamentals_and_theory.py - SPM study → SPM solver: runs
notebooks/02_single_particle_model_from_scratch.py - SPM study → Cell parameters: uses
notebooks/02_single_particle_model_from_scratch.py - SPM study → Plot helpers: uses
notebooks/02_single_particle_model_from_scratch.py - SPM solver → Cell parameters: loads inputs
src/spm_from_scratch.py - SPM study → PyBaMM: validates against
README.md - DFN study → PyBaMM: simulates with
notebooks/03_dfn_full_cell_model.py - DFN study → Cell parameters: uses
notebooks/03_dfn_full_cell_model.py - DFN study → Plot helpers: uses
notebooks/03_dfn_full_cell_model.py - Parameter fitting → PyBaMM: simulates with
notebooks/04_parameter_estimation_and_validation.py - Parameter fitting → Cell parameters: uses
notebooks/04_parameter_estimation_and_validation.py - Parameter fitting → Plot helpers: uses
notebooks/04_parameter_estimation_and_validation.py - Thermal study → PyBaMM: simulates with
notebooks/05_thermal_coupling_and_dynamics.py - Thermal study → Cell parameters: uses
notebooks/05_thermal_coupling_and_dynamics.py - Thermal study → Plot helpers: uses
notebooks/05_thermal_coupling_and_dynamics.py - Aging study → PyBaMM: cycles with
notebooks/06_degradation_and_aging.py - Aging study → Plot helpers: uses
notebooks/06_degradation_and_aging.py - Design studies → PyBaMM: simulates with
notebooks/07_doe_drivecycles_and_design.py - Design studies → Cell parameters: uses
notebooks/07_doe_drivecycles_and_design.py - Design studies → Plot helpers: uses
notebooks/07_doe_drivecycles_and_design.py - Design studies → Test report: generates
README.md - SQL workflow → SQL persistence: uses
notebooks/08_data_management_sql.py - SQL workflow → Cell parameters: uses
notebooks/08_data_management_sql.py - SQL persistence → SQL database: writes and queries
src/sql_utils.py