rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Loading...
Searching...
No Matches
DiffusiveFlux.h
Go to the documentation of this file.
1
81
82#ifndef RIZER_DIFFUSIVE_FLUX_H
83#define RIZER_DIFFUSIVE_FLUX_H
84
85namespace rizer
86{
87 namespace numeric
88 {
89
109 inline double faceFlux(double r_face, double coef_face, double value_inner,
110 double value_outer, double spacing)
111 {
112 return r_face * coef_face * (value_outer - value_inner) / spacing;
113 }
114
119 inline double annularVolume(double r_east, double r_west)
120 {
121 return 0.5 * (r_east * r_east - r_west * r_west);
122 }
123
124 } // namespace numeric
125} // namespace rizer
126
127#endif // RIZER_DIFFUSIVE_FLUX_H
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_inne...
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].