rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Loading...
Searching...
No Matches
CylindricalFiniteVolume.h File Reference

Pure-arithmetic primitives for a 1D cylindrical (radial) finite-volume discretization of the operator (1/r) d/dr( r * coef * dphi/dr ): one face's conductive/diffusive flux, and the annular cell volume between two faces. More...

Go to the source code of this file.

Namespaces

namespace  rizer
namespace  rizer::numeric

Functions

double rizer::numeric::faceFlux (double r_face, double coef_face, double value_inner, double value_outer, double spacing)
 Conductive/diffusive flux across one radial cell face: r_face * coef_face * (value_outer - value_inner) / spacing.
double rizer::numeric::annularVolume (double r_east, double r_west)
 Annular cell volume per unit axial length between two face radii, 0.5 * (r_east^2 - r_west^2) [m^2].

Detailed Description

Pure-arithmetic primitives for a 1D cylindrical (radial) finite-volume discretization of the operator (1/r) d/dr( r * coef * dphi/dr ): one face's conductive/diffusive flux, and the annular cell volume between two faces.

Shared by PlasmaChannel1D (2T reacting channel: generic over component and face coefficient, ghost-node wall BC) and ThermalPlasmaColumn1D (steady LTE column: single T component, hardcoded kappa, algebraic Dirichlet wall row). Both assemble the SAME two formulas below; they differ only in how they derive face radius/spacing/coefficient and in their wall treatment, which stays local to each caller.

Definition in file CylindricalFiniteVolume.h.