https://github.com/bradyplanden/battphase.jl
2D Phase Field Implementation of a Lithium Metal Moving Boundary Anode
https://github.com/bradyplanden/battphase.jl
julia lithium-ion-batteries lithium-metal
Last synced: 11 months ago
JSON representation
2D Phase Field Implementation of a Lithium Metal Moving Boundary Anode
- Host: GitHub
- URL: https://github.com/bradyplanden/battphase.jl
- Owner: BradyPlanden
- License: bsd-3-clause
- Created: 2022-04-21T14:12:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-30T11:21:31.000Z (over 3 years ago)
- Last Synced: 2024-06-13T20:45:49.706Z (about 2 years ago)
- Topics: julia, lithium-ion-batteries, lithium-metal
- Language: Julia
- Homepage:
- Size: 215 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BattPhase.jl
[](https://bradyplanden.github.io/LiMetalPhaseFields.jl/stable)
[](https://bradyplanden.github.io/LiMetalPhaseFields.jl/dev)
[](https://github.com/bradyplanden/LiMetalPhaseFields.jl/actions/workflows/CI.yml?query=branch%3Amain)
[](https://codecov.io/gh/bradyplanden/LiMetalPhaseFields.jl)
BattPhase.jl provides a Julia framework for solving 2D lithium-metal phase field problems. This package is presented to support this [publication], please cite it if you use this work.
Install (Julia 1.7 and later)
-----------------------------
```julia
(v1.7) pkg> add https://github.com/BradyPlanden/BattPhase.jl
```
(Type `]` to enter package mode.)
## Results
The following results have been obtained utilising Julia 1.7.2, with `Threads.nthreads() = 1` and Pardiso.jl utilised for LinearAlgebra. Benchmark hardware was a 10980XE with 64Gb of memory. Visual results from the included `GaussSeed.jl` example are shown below,
The following table includes the median result for 7 benchmark samples up to 3202. Results above 3202 currently include 2 samples with a mean shown. Three significant figures are presented.
## Code Timing - Upwind Scheme
|Number of Node Points|Runge-Kutta 3 |Runge-Kutta 3 Approximation|
|:-:|:-:|:-:|
| 102 | 5.86 ms | 2.02 ms |
| 202 | 46.7 ms | 15.6 ms |
| 402| 262 ms | 87.7 ms |
| 802| 1.58 s | 532 ms|
| 1602 | 13.4 s | 4.57 s |
| 3202 | 121 s| 41.1 s|
| 6402 | 953 s| 315 s|
[publication]: https://doi.org/10.1149/1945-7111/ac86a7