From d9ebe23af5402609a910b8a8dd4b706235febfef Mon Sep 17 00:00:00 2001 From: "Steven C. DeCaluwe" Date: Mon, 25 Feb 2019 07:57:45 -0700 Subject: [PATCH] Adding note about required Cantera version to Lithium Ion Battery example. (#21) --- electrochemistry/lithium_ion_battery.ipynb | 30 ++++++++++++- .../batch_reactor_ignition_delay_NTC.ipynb | 42 ++++++------------- 2 files changed, 41 insertions(+), 31 deletions(-) diff --git a/electrochemistry/lithium_ion_battery.ipynb b/electrochemistry/lithium_ion_battery.ipynb index f253c81..82ae9fe 100644 --- a/electrochemistry/lithium_ion_battery.ipynb +++ b/electrochemistry/lithium_ion_battery.ipynb @@ -1,5 +1,32 @@ { "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Note: the example below requires Cantera 2.5.0a2 or newer\n", + "\n", + "If the stable release of 2.5.0 is not yet available, you might consider [building from source](https://cantera.org/install/compiling-install.html)." + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Runnning Cantera version: 2.5.0a2\n" + ] + } + ], + "source": [ + "import cantera as ct\n", + "print('Runnning Cantera version: ' + ct.__version__)" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -94,10 +121,9 @@ "\n", "from scipy.optimize import fsolve\n", "\n", + "# Used for timing our calculations:\n", "import time\n", "\n", - "import cantera as ct\n", - "\n", "# Plotting:\n", "import matplotlib.pyplot as plt\n", "import matplotlib as mpl\n", diff --git a/reactors/batch_reactor_ignition_delay_NTC.ipynb b/reactors/batch_reactor_ignition_delay_NTC.ipynb index 9ea09c1..637bc21 100644 --- a/reactors/batch_reactor_ignition_delay_NTC.ipynb +++ b/reactors/batch_reactor_ignition_delay_NTC.ipynb @@ -15,9 +15,7 @@ { "cell_type": "code", "execution_count": 1, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -51,9 +49,7 @@ { "cell_type": "code", "execution_count": 2, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -88,9 +84,7 @@ { "cell_type": "code", "execution_count": 3, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "# Define the reactor temperature and pressure\n", @@ -141,9 +135,7 @@ { "cell_type": "code", "execution_count": 5, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -200,9 +192,7 @@ { "cell_type": "code", "execution_count": 6, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "import matplotlib.pyplot as plt\n", @@ -228,9 +218,7 @@ { "cell_type": "code", "execution_count": 7, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "data": { @@ -1039,9 +1027,7 @@ { "cell_type": "code", "execution_count": 8, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "# Make a list of all the temperatures we would like to run simulations at\n", @@ -1071,7 +1057,6 @@ "cell_type": "code", "execution_count": 9, "metadata": { - "collapsed": false, "scrolled": false }, "outputs": [ @@ -1143,7 +1128,6 @@ "cell_type": "code", "execution_count": 10, "metadata": { - "collapsed": false, "scrolled": false }, "outputs": [ @@ -1952,23 +1936,23 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.11" + "pygments_lexer": "ipython3", + "version": "3.6.8" } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 }