From charlesreid1

No edit summary
Line 15: Line 15:
where the reaction source terms are computed by Cantera.
where the reaction source terms are computed by Cantera.


[[Fipy and Cantera/0D Reaction]]
A simple transient problem with Fipy:
* [[Fipy/Simple_Transient_Problem]]
 
Turning the simple transient problem into a reactor model with Fipy and Cantera:
* [[Fipy and Cantera/0D Reaction]]


=1D Diffusion=
=1D Diffusion=

Revision as of 17:42, 13 January 2014

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