rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Loading...
Searching...
No Matches
CylindricalFiniteVolume.h
Go to the documentation of this file.
1
13
14#ifndef RIZER_CYLINDRICAL_FINITE_VOLUME_H
15#define RIZER_CYLINDRICAL_FINITE_VOLUME_H
16
17namespace rizer {
18namespace numeric {
19
39inline double faceFlux(double r_face, double coef_face, double value_inner,
40 double value_outer, double spacing) {
41 return r_face * coef_face * (value_outer - value_inner) / spacing;
42}
43
48inline double annularVolume(double r_east, double r_west) {
49 return 0.5 * (r_east * r_east - r_west * r_west);
50}
51
52} // namespace numeric
53} // namespace rizer
54
55#endif // RIZER_CYLINDRICAL_FINITE_VOLUME_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].