rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Toggle main menu visibility
Loading...
Searching...
No Matches
BoundaryConditions.h
Go to the documentation of this file.
1
11
12
#ifndef RIZER_BOUNDARY_CONDITIONS_H
13
#define RIZER_BOUNDARY_CONDITIONS_H
14
15
#include <functional>
16
#include <string>
17
#include <vector>
18
19
namespace
rizer
20
{
21
24
struct
NodeState
25
{
26
double
rho
= 0.0;
27
double
u_r
= 0.0;
28
double
Tg
= 0.0;
29
double
Te
= 0.0;
30
std::vector<double>
Y
;
31
};
32
37
enum class
OuterBc
38
{
46
AmbientGhost
,
54
PressureOutlet
55
};
56
64
OuterBc
parseOuterBc
(
const
std::string &mode);
65
89
using
GhostStateFn
= std::function<
NodeState
(
90
double
r_ghost,
double
t,
bool
is_inner_face,
const
NodeState
&interior)>;
91
92
}
// namespace rizer
93
94
#endif
// RIZER_BOUNDARY_CONDITIONS_H
rizer
Definition
ElectronReactions.cpp:11
rizer::parseOuterBc
OuterBc parseOuterBc(const std::string &mode)
Map an outer_bc_mode config string onto the enum.
Definition
BoundaryConditions.cpp:13
rizer::GhostStateFn
std::function< NodeState( double r_ghost, double t, bool is_inner_face, const NodeState &interior)> GhostStateFn
Fill the outer ghost cell from a closed-form solution, a fixed end state, or a mirror of the interior...
Definition
BoundaryConditions.h:89
rizer::OuterBc
OuterBc
Outer-boundary treatment (NUMERICS.md section 7).
Definition
BoundaryConditions.h:38
rizer::OuterBc::AmbientGhost
@ AmbientGhost
Fix rho, u_r, p, T and Y_s to ambient.
Definition
BoundaryConditions.h:46
rizer::OuterBc::PressureOutlet
@ PressureOutlet
Hold p = p_amb at the boundary face, extrapolate u_r/Tg/Te/Y_s with zero gradient,...
Definition
BoundaryConditions.h:54
rizer::NodeState
Primitive state at one radial node, as the ghost-state callback sees it and returns it.
Definition
BoundaryConditions.h:25
rizer::NodeState::Te
double Te
Electron temperature [K].
Definition
BoundaryConditions.h:29
rizer::NodeState::Y
std::vector< double > Y
Species mass fractions [-], length K.
Definition
BoundaryConditions.h:30
rizer::NodeState::Tg
double Tg
Heavy-pool temperature [K].
Definition
BoundaryConditions.h:28
rizer::NodeState::u_r
double u_r
Radial velocity [m/s].
Definition
BoundaryConditions.h:27
rizer::NodeState::rho
double rho
Mass density [kg/m^3].
Definition
BoundaryConditions.h:26
rizer
cantera_ext
models
nrp
BoundaryConditions.h
Generated by
1.18.0