Skip to content

Commit

Permalink
#880 updated notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Scottmar93 committed Mar 18, 2020
1 parent e3e6a16 commit 63f68c0
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion examples/notebooks/Creating Models/1-an-ode-model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
"version": "3.7.5"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion examples/notebooks/Creating Models/2-a-pde-model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
"version": "3.7.5"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
"version": "3.7.5"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
"version": "3.7.5"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions examples/notebooks/Creating Models/5-a-simple-SEI-model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
"c_inf_dim = pybamm.Parameter(\"Bulk electrolyte solvent concentration\")\n",
"\n",
"def D_dim(cc):\n",
" return pybamm.FunctionParameter(\"Diffusivity\", cc)\n",
" return pybamm.FunctionParameter(\"Diffusivity\", {\"Solvent concentration [mol.m-3]\": cc})\n",
"\n",
"# dimensionless parameters\n",
"k = k_dim * L_0_dim / D_dim(c_inf_dim)\n",
Expand Down Expand Up @@ -591,7 +591,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "b2a5f649a3b64685ad9510649f130829",
"model_id": "efe1fe18458a42d88056baf689f6da80",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -653,7 +653,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
"version": "3.7.5"
}
},
"nbformat": 4,
Expand Down
18 changes: 9 additions & 9 deletions examples/notebooks/parameter-values.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/scripts/create-model.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


def D_dim(cc):
return pybamm.FunctionParameter("Diffusivity", cc)
return pybamm.FunctionParameter("Diffusivity", {"Concentration [mol.m-3]": cc})


# dimensionless parameters
Expand Down
3 changes: 3 additions & 0 deletions squared.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

def squared(x):
return x ** 2

0 comments on commit 63f68c0

Please sign in to comment.