Skip to content

Commit 528a30a

Browse files
authored
Merge in doc updates from dev (#15)
1 parent f7af828 commit 528a30a

File tree

4 files changed

+40
-40
lines changed

4 files changed

+40
-40
lines changed

docs/src/index.md

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,59 @@
44
layout: home
55
66
hero:
7-
name: BattMo
8-
text: Framework for continuum modelling of lithium-ion batteries written in Julia
7+
name: BattMo.jl
8+
text: Fast open-source battery simulation
99
image:
1010
src: battmologo_stacked.png
1111
alt: BattMo
12-
tagline:
12+
tagline: 1D, 2D and 3D open-source P2D/PXD Lithium-Ion battery simulation
1313
actions:
1414
- theme: brand
1515
text: Getting started
1616
link: /man/intro
1717
- theme: alt
18-
text: View on Github
18+
text: Github
1919
link: https://github.com/sintefmath/BattMo.jl
2020
- theme: alt
21-
text: Run a battery cycle
21+
text: Simulate a battery
2222
link: /examples/example_cycle
23+
- theme: alt
24+
text: About
25+
link: https://batterymodel.com/
2326
2427
features:
2528
- icon: 🔋
26-
title: Feature 1
27-
details: Details 1
28-
link: /examples
29-
30-
- icon: ⏳
31-
title: Feature 2
32-
details: Details 2
29+
title: Accurate and open
30+
details: Validated on standard benchmarks. Automatic differentiation and Julia syntax means that the code is easy to read and edit. Based on proven computational core for other multiphysics domains.
3331
link: /examples
3432
3533
- icon: ⚡
36-
title: Details 3
37-
details: We have dark mode
34+
title: Fast and flexible
35+
details: Written in Julia, simulate with scripting syntax without sacrificing performance. Extensible with new features.
3836
link: /man/advanced
37+
38+
- icon: 🧱
39+
title: 1D, 2D and 3D
40+
details: One code handles both 1D models and complex 3D grids, with support for high-performance linear solvers for bigger models.
41+
link: /examples
42+
43+
- icon: 📈
44+
title: Ready for optimization and calibration
45+
details: Automatic differentiation allows for fast gradient-based optimization and parameter/model matching
46+
link: /examples
3947
---
4048
````
4149

42-
# BattMo.jl is a framework for continuum modelling of lithium-ion batteries written in Julia
50+
The Battery Modelling Toolbox (**BattMo**) is a resource for continuum modelling of electrochemical devices in MATLAB. The code features a pseudo X-dimensional (PXD) framework for the Doyle-Fuller-Newman model of lithium-ion battery cells. The code implements a subset of features from the [MATLAB version of BattMo](https://github.com/BattMoTeam/BattMo) with improved numerical performance. **BattMo.jl** is based on [Jutul.jl](https://github.com/sintefmath/Jutul.jl) and uses finite-volume discretizations and automatic differentiation to simulate models in 1D, 2D and 3D.
4351

44-
The Battery Modelling Toolbox (**BattMo**) is a resource for continuum modelling of electrochemical devices in MATLAB. The initial development features a pseudo X-dimensional (PXD) framework for the Doyle-Fuller-Newman model of lithium-ion battery cells. This is currently a early release that implements a subset of features from the [MATLAB version of BattMo](https://github.com/BattMoTeam/BattMo) with improved numerical performance. **BattMo.jl** is based on [Jutul.jl](https://github.com/sintefmath/Jutul.jl) and uses finite-volume discretizations and automatic differentiation to simulate models in 1D, 2D and 3D.
52+
The current implementation has many options for setting up simulation cases:
4553

46-
The current implementation has two options for setting up simulation cases:
54+
- Set up 1D, 2D and 3D grids using scripting syntax
55+
- Templates for different types of battery chemistry parameters in JSON format
56+
- Support for a variety of open formats
57+
- Read in input data prepared in the MATLAB version of BattMo (coin-cell, jellyroll, pouch)
58+
- Make use of common BattMo JSON format to run cases
4759

48-
- You can read in input data prepared in the MATLAB version of BattMo (general 3D grids)
49-
- Or you can use the common BattMo JSON format to run cases (primarily 1D grids)
5060

5161
## Installation
5262

@@ -89,6 +99,10 @@ lines!(ax, t, I)
8999
fig
90100
```
91101

102+
## Get involved
103+
104+
The code is open source [on GitHub](https://github.com/BattmoTeam/BattMo.jl). Pull requests, comments or issues are welcome!
105+
92106
## Acknowledgements
93107

94108
BattMo has received funding from the European Union’s Horizon 2020 innovation program under grant agreement numbers:

examples/example_3d_demo.jl

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# # 3D battery example
22
using Jutul, BattMo, GLMakie
3-
using StatsBase
4-
GLMakie.closeall()
5-
6-
##########################
7-
# setup input parameters #
8-
##########################
93

104
# ## Setup input parameters
115
name = "p2d_40_jl_chen2020"
@@ -70,11 +64,9 @@ scatterlines!(ax,
7064
markercolor = :black)
7165

7266
display(f)
67+
f
7368

74-
############################################
75-
# plot potential on grid at last time step #
76-
############################################
77-
69+
# ## Plot potential on grid at last time step #
7870
state = states[10]
7971

8072
function plot_potential(am, cc, label)

examples/example_battery.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
####################
2-
# Standard example #
3-
####################
1+
# A basic example
42

53
using Jutul, BattMo, GLMakie
64

@@ -152,7 +150,7 @@ if !do_json
152150
axislegend()
153151
end
154152

155-
display(f)
153+
f
156154

157155

158156

examples/example_cycle.jl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
# # Cycling a battery 40 times with a constant current constant voltage (CCCV) control
12
using BattMo, GLMakie
2-
3-
#name="model1D_50"
43
name = "p2d_40_cccv"
5-
64
fn = string(dirname(pathof(BattMo)), "/../test/data/jsonfiles/", name, ".json")
75
inputparams = readBattMoJsonInputFile(fn)
86

@@ -16,7 +14,7 @@ t = [state[:Control][:ControllerCV].time for state in states]
1614
E = [state[:Control][:Phi][1] for state in states]
1715
I = [state[:Control][:Current][1] for state in states]
1816

19-
17+
# ## Plot the results
2018
f = Figure(size = (1000, 400))
2119

2220
ax = Axis(f[1, 1],
@@ -54,9 +52,7 @@ scatterlines!(ax,
5452
marker = :cross,
5553
markercolor = :black)
5654

57-
58-
display(f)
59-
55+
f
6056

6157

6258

0 commit comments

Comments
 (0)