rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Loading...
Searching...
No Matches
BoundaryConditions.cpp
Go to the documentation of this file.
2
3#include <stdexcept>
4#include <string>
5
6namespace rizer
7{
8
9 // ------------------------------------------------------------------------------ //
10 // Free functions //
11 // ------------------------------------------------------------------------------ //
12
13 OuterBc parseOuterBc(const std::string &mode)
14 {
15 if (mode == "ambient_ghost")
17 if (mode == "pressure_outlet")
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
Outer-boundary vocabulary for the 1D radial channel: which treatment is applied, the primitive state ...
OuterBc parseOuterBc(const std::string &mode)
Map an outer_bc_mode config string onto the enum.
OuterBc
Outer-boundary treatment (NUMERICS.md section 7).
@ AmbientGhost
Fix rho, u_r, p, T and Y_s to ambient.
@ PressureOutlet
Hold p = p_amb at the boundary face, extrapolate u_r/Tg/Te/Y_s with zero gradient,...