Commit graph

42 commits

Author SHA1 Message Date
agarwalrounak
3d6f950ec5 Fix typo 2019-05-17 15:24:29 -04:00
Steven DeCaluwe
16c6329ee7 Fixing a few typos in electrochemistry/lithium_ion_battery.ipynb 2019-03-19 12:08:52 -06:00
Bryan W. Weber
058a5a04da
Update litium_ion_battery example
Put the title of the example as the first cell, so the website example
renderer shows something useful as the example summary. Fix small typos
in some math content. Use notebook matplotlib magic for plots.
2019-03-19 11:45:26 -04:00
Bryan W. Weber
d7dee2e579
Update Notebooks for more recent Cantera version
Use 2.5.0a2 (git hash 471041a2) to run the examples. Update some
formatting in comments and docstrings. Move imports to the top of
Notebooks. Set the matplotlib magic before importing matplotlib.
Fix deprecation warnings from Pandas about argmax and set_value.
2019-03-19 11:43:25 -04:00
Steven DeCaluwe
66b4d26ff5 Updating Cantera version language in Li battery example. 2019-02-25 11:24:29 -07:00
Steven C. DeCaluwe
d9ebe23af5
Adding note about required Cantera version to Lithium Ion Battery example. (#21) 2019-02-25 07:57:45 -07:00
Steven C. DeCaluwe
a167ec0eb8
Adding Lithium ion battery Jupyter Notebook Example (#20)
The new example demonstrates use of the BinarySolutionTabulatedThermo
class, to calculate the open circuit potential for a standard Li ion
battery (graphite anode, LCO cathode) for a range of anode and cathode
Li stoichiometries.

The notebook demonstrates cell potential calculations via two methods:
a kinetic method where the current is set to zero and the correct
electric potentials are fit using scipy.optimize.fsolve, and a
thermodynamic method whereby the equilibrium potential at each
electrode interface is calculated according to the gibbs free energy
of reaction.

The notebook can readily be extended to simulate charge-discharge of
the battery, and preliminary functionality for such an extension is
already programmed into the notebook.
2019-02-22 16:56:50 -07:00
Bryan W. Weber
07e5c2afe7 Add license from Cantera and add Code of Conduct note to README 2019-01-07 12:10:01 -05:00
Ray Speth
a880093137 Regenerate output for surface PFR example 2018-09-07 23:20:53 -04:00
Ray Speth
40f0b28c5e Revise comments and explanatory text for surface PFR example 2018-09-07 23:20:53 -04:00
Ray Speth
5d1d9f4918 Adjust plotting in surface PFR example 2018-09-07 23:20:53 -04:00
Ray Speth
1d65a5ff84 Use np.hstack instead of nested np.append calls 2018-09-07 23:20:53 -04:00
Ray Speth
c987456128 Formatting / PEP8 cleanup of 1D_pfr_surfchem 2018-09-07 23:20:53 -04:00
Ray Speth
b8b1022c2f Fix midpoint temperature in SiF4-NH3 mechanism
The correct midpoint temperature is 1000 K, despite what it says in the original
input file. This can be easily verified by plotting the high and low temperature
polynomials and noting that the differences in cp/R, h/RT, and s/R are all zero
at 1000 K, but not at the stated midpoint temperature of 600 K.
2018-09-07 23:20:53 -04:00
yuj056
db403dc82c Add 1D plug flow reactor model with surface chemistry 2018-09-07 23:20:53 -04:00
Ray Speth
e593ad2d67 Update documentation links to point to new website
Fixes #16
2018-08-24 21:56:30 -04:00
Ray Speth
7a46682668 Switch to environment.yml for Binder setup 2018-08-23 23:54:05 -04:00
Ray Speth
08b1ac73d5 Search both dev and main channels for Cantera packages
This will get the release version when it is more up to date than the dev
channel.
2018-08-23 00:13:11 -04:00
Bryan W. Weber
eaf2a902e6
Rename tutorial 2017-09-01 11:00:17 -04:00
Bryan W. Weber
aea088b112
Change help function to ? in tutorial 2017-09-01 11:00:17 -04:00
Bryan W. Weber
f59c7eb5bb
Fix code formatting of some text in tutorial 2017-09-01 11:00:17 -04:00
Bryan W. Weber
4fcaf84563
iPython -> Jupyter in README 2017-09-01 11:00:17 -04:00
Ryan Crisanti
415863fee9
Cantera Python Tutorial
All that was done here was the Cantera Python Tutorial from the Cantera
website was transferred into a Jupyter Notebook.  Some language was
changed in order to keep things sensible, but most was kept the same as
the original.
2017-09-01 11:00:17 -04:00
decaluwe
a7fcd53801 Merge pull request #11 from decaluwe/NonIdealShock
Adding example for non-ideal reactor.
2017-08-16 09:46:24 -06:00
Steven DeCaluwe
c65d3b26bd Moving .py file exports to main Cantera repo.
Notebooks from the 'reactors' folder are exported as py files, and
moved to interfaces/cython/cantera/examples/reactors in the main
Cantera repository.
2017-08-04 13:29:43 -06:00
Steven DeCaluwe
f927636698 Adding example for non-ideal reactor, folder for py files
This PR has two main changes:
1. Adding a jupyter notebook example to the reactors folder for
a constant-volume, adiabatic reactor.  This is employed within
the context of IDT calculations in high-pressure shock tubes.
I'd be happy to add Comparison to experimental data, pending
publication of a manuscript currently under consideration (and
coauthor permission).

This largely follows the routines established in the batch reactor
example, and states as much in the notebook.

2. It occurs to me that some users might be interested in seeing
the examples as py files, but don't want to bother with installing
Jupyter and figuring out how to use it (while these steps are easy,
they still might represent a barrier to some users).

For the three notebooks in this folder, then, I've saved the notebooks
as simple py files and added them to a folder labeled as such.
2017-08-04 12:55:54 -06:00
Santosh Shanbhogue
e77e213abb Add icons to landing page to make more appealing 2016-09-20 18:52:31 -04:00
Santosh Shanbhogue
118dd56071 Add continuous reactor example
Resolves #6
2016-09-20 18:52:31 -04:00
Santosh Shanbhogue
a1cfe4f919 Fix y-axis label. Add note about get_state returning mass fractions
The original figure labeled the y-axis as plotting mole fractions of OH. But this was a value obtained from get_state() and hence should be mass-fractions.
2016-09-17 20:37:26 -04:00
Santosh Shanbhogue
7ec95b1dc6 Fix broken link in TOC in landing page 2016-09-01 23:01:08 -04:00
Ray Speth
6ae18ad0d1 Add checkpoint files to .gitignore 2016-09-01 22:29:38 -04:00
Santosh Shanbhogue
a0801e83e1 Add batch reactor example demonstrating NTC behavior
Resolves #4
2016-09-01 22:29:29 -04:00
Santosh Shanbhogue
973ff00b60 Add TOC and FAQ to landing page
Resolves #3
2016-08-16 22:33:54 -04:00
Ray Speth
6b54ffa4e8 Add README.md with link to Binder 2016-08-14 22:53:03 -04:00
Ray Speth
1ad617854b Make flame examples default to Python 3 2016-08-14 22:37:03 -04:00
Ray Speth
293fe1ac12 Point Dockerfile to Cantera conda organization 2016-08-14 22:21:06 -04:00
Santosh Shanbhogue
41eed580e1 Add flame speed example with sensitivity analysis
Resolves #2
2016-08-14 22:18:38 -04:00
Santosh Shanbhogue
b1e8cef230 Added notebook for twin premixed flame
Resolves #1
2016-08-11 23:14:57 -04:00
Ray Speth
cf5730459d Add flame temperature example 2016-08-04 12:14:45 -04:00
Ray Speth
a7f71729a2 Try Dockerfile for Binder interoperability 2016-08-01 18:16:16 -04:00
Ray Speth
4a66076564 Add environment.yml to enable compatibility with Binder 2016-08-01 17:37:14 -04:00
Ray Speth
ef8acb0bed Add example for computing heating values 2016-08-01 14:44:40 -04:00