From charlesreid1

Revision as of 17:42, 13 January 2014 by Admin (talk | contribs) (→‎0D Reaction)

Cantera Evaluation of Properties

Some notes, from an algorithmic perspective, on hooking up Cantera with a finite-volume solver for computing solutions:

Fipy and Cantera/Algorithm Notes

0D Reaction

A Fipy script that will solve an ODE of the form:

$ \frac{d C_j }{dt} = \sum_{i=1}^{N_{rxns}} r_{ij} $

where the reaction source terms are computed by Cantera.

A simple transient problem with Fipy:

Turning the simple transient problem into a reactor model with Fipy and Cantera:

1D Diffusion

A 1D diffusion problem solved by Fipy, with diffusion coefficients computed by Cantera. Illustrates how to solve a variable-diffusivity problem and sweep over the solution.

Fipy and Cantera/1D Diffusion