rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Toggle main menu visibility
Loading...
Searching...
No Matches
BoundaryConditions.cpp
Go to the documentation of this file.
1
#include "
models/nrp/BoundaryConditions.h
"
2
3
#include <stdexcept>
4
#include <string>
5
6
namespace
rizer
7
{
8
9
// ------------------------------------------------------------------------------ //
10
// Free functions //
11
// ------------------------------------------------------------------------------ //
12
13
OuterBc
parseOuterBc
(
const
std::string &mode)
14
{
15
if
(mode ==
"ambient_ghost"
)
16
return
OuterBc::AmbientGhost
;
17
if
(mode ==
"pressure_outlet"
)
18
return
OuterBc::PressureOutlet
;
19
throw
std::invalid_argument(
20
"parseOuterBc: outer_bc_mode must be \"ambient_ghost\" or "
21
"\"pressure_outlet\", not \""
+
22
mode +
"\"."
);
23
}
24
25
}
// namespace rizer
BoundaryConditions.h
Outer-boundary vocabulary for the 1D radial channel: which treatment is applied, the primitive state ...
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::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
cantera_ext
models
nrp
BoundaryConditions.cpp
Generated by
1.18.0