From charlesreid1

No edit summary
Line 5: Line 5:
[[Fipy and Cantera/Algorithm Notes]]
[[Fipy and Cantera/Algorithm Notes]]


=0D Reaction=
=Fipy-Only Pieces=


A Fipy script that will solve an ODE of the form:
A simple transient problem with Fipy:
* [[Fipy/Simple_Transient_Problem]]
 
=0D Reaction Equation=
 
A Fipy script that will solve a very simple 0D reaction equation:


<math>
<math>
Line 13: Line 18:
</math>
</math>


where the reaction source terms are computed by Cantera.
with reaction source terms computed by Cantera.
 
[[Fipy and Cantera/0D Reaction]]
 
==0D Reaction Model: Batch Reactor==


A simple transient problem with Fipy:
Filpy script that solves the 0D reaction equation, as well as other governing equations, for a 0D batch reactor model.
* [[Fipy/Simple_Transient_Problem]]


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


=1D Diffusion=
=1D Diffusion Equation=


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.
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]]
[[Fipy and Cantera/1D Diffusion]]
==1D Diffusion Model: Boundary Value Problem==
[[Fipy and Cantera/PFR Boundary Value Problem]]

Revision as of 17:50, 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

Fipy-Only Pieces

A simple transient problem with Fipy:

0D Reaction Equation

A Fipy script that will solve a very simple 0D reaction equation:

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

with reaction source terms computed by Cantera.

Fipy and Cantera/0D Reaction

0D Reaction Model: Batch Reactor

Filpy script that solves the 0D reaction equation, as well as other governing equations, for a 0D batch reactor model.

Fipy and Cantera/Batch Reactor

1D Diffusion Equation

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

1D Diffusion Model: Boundary Value Problem

Fipy and Cantera/PFR Boundary Value Problem