rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Loading...
Searching...
No Matches
rizer::numeric Namespace Reference

Functions

double 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 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].

Function Documentation

◆ annularVolume()

double rizer::numeric::annularVolume ( double r_east,
double r_west )
inline

Annular cell volume per unit axial length between two face radii, 0.5 * (r_east^2 - r_west^2) [m^2].

Parameters
r_eastOuter (east) face radius of the cell [m]
r_westInner (west) face radius of the cell [m] (0 at the axis)

Definition at line 48 of file CylindricalFiniteVolume.h.

◆ faceFlux()

double rizer::numeric::faceFlux ( double r_face,
double coef_face,
double value_inner,
double value_outer,
double spacing )
inline

Conductive/diffusive flux across one radial cell face: r_face * coef_face * (value_outer - value_inner) / spacing.

value_inner/value_outer are ordered by radius, not by which node is "current" at the call site: value_inner is always the value on the smaller-r side of this face, value_outer the value on the larger-r side – regardless of whether the caller is assembling a node's east or west face. Swapping the two flips the sign of the result.

Parameters
r_faceFace radius [m]
coef_faceFace transport coefficient, already averaged by the caller (e.g. the arithmetic mean of the two neighbouring nodes' kappa/kappa_e/rho*D) [W/m/K for Tg/Te conduction, kg/m/s for species diffusion]
value_innerSolution value on the smaller-r side of the face, in the component's own unit ([K] for Tg/Te, [-] for Y_k)
value_outerSolution value on the larger-r side of the face, same unit as value_inner
spacingRadial spacing across the face (node-to-node, or node-to-ghost at a wall) [m]

Definition at line 39 of file CylindricalFiniteVolume.h.