Cantera One-D Domains
From charlesreid1
Domain1D class cantera/src/interfaces/python/Cantera/OneD/onedim.py
One-dimensional domains can be stacked together into Stack objects.
Each one-dimensional domain has some number of points associated with it. In each cell, it contains a set of components, and solves a set of equations.
Physics
(The equations being solved)
Numerics
Tolerances and bounds for each variable can be set using the setBounds and setTolerances methods.
The grid itself can be initialized by specifying locations of particular points, using the setupGrid method:
d.setupGrid([0.0, 0.1, 0.2, 0.3, 0.4, 0.5])
The one-dimensional domain's grid, name, and a description can be set using the set method.
Boundaries
Boundaries are themselves 1D objects, with temperatures and compositions. They can have a specified mass flowrate, and if
Surfaces
Surfaces are boundaries that have kinetics and kinetic equations associated with them. You can turn the kinetics on or off.
Misc.
Question: if you have a Domain1D object with a bunch of points, and you stack it with another Boundary Domain1D object, is the boundary object a single cell?
Answer: Yes. See cantera/src/src/oneD/boundaries1D.cpp and cantera/src/include/cantera/oneD/Domain1D.h. The boundary is initialized like this:
Bdry1D::Bdry1D() : Domain1D(1, 1, 0.0),
which means, according to the constructor, there is only one variable and one point in the domain.