42 case(
dg::PER): s =
"PERIODIC";
break;
43 case(
dg::DIR): s =
"DIRICHLET";
break;
44 case(
dg::NEU): s =
"NEUMANN";
break;
47 default: s =
"Not specified!!";
68 if( s==
"PER"||s==
"per"||s==
"periodic"||s==
"Periodic" || s ==
"PERIODIC")
70 if( s==
"DIR"||s==
"dir"||s==
"dirichlet"||s==
"Dirichlet" || s ==
"DIRICHLET")
72 if( s==
"NEU"||s==
"neu"||s==
"neumann"||s==
"Neumann" || s==
"NEUMANN")
74 if( s==
"NEU_DIR"||s==
"neu_dir" )
76 if( s==
"DIR_NEU"||s==
"dir_neu" )
78 throw std::runtime_error(
"Boundary condition '"+s+
"' not recognized!");
89 if( bound ==
DIR)
return NEU;
90 if( bound ==
NEU)
return DIR;
124 throw std::runtime_error(
"Direction '"+s+
"' not recognized!");
145 default: s =
"Not specified!!";
Error classes or the dg library.
static bc inverse(bc bound)
invert boundary condition
Definition: enums.h:87
coo3d
3d contra- and covariant coordinates
Definition: enums.h:177
bc
Switch between boundary conditions.
Definition: enums.h:15
space
Space of DG coefficients.
Definition: enums.h:164
static bc str2bc(std::string s)
convert a string to a bc
Definition: enums.h:66
static std::string bc2str(bc bcx)
write a string describing boundary condition to an output stream
Definition: enums.h:37
static direction str2direction(std::string s)
convert a string to a direction
Definition: enums.h:116
direction
Direction of a discrete derivative.
Definition: enums.h:97
coo2d
2d coordinates
Definition: enums.h:171
static std::string direction2str(enum direction dir)
convert a direciton to string
Definition: enums.h:137
@ NEU_DIR
Neumann on left, Dirichlet on right boundary.
Definition: enums.h:19
@ PER
periodic boundaries
Definition: enums.h:16
@ NEU
Neumann on both boundaries.
Definition: enums.h:20
@ DIR
homogeneous dirichlet boundaries
Definition: enums.h:17
@ DIR_NEU
Dirichlet on left, Neumann on right boundary.
Definition: enums.h:18
@ xspace
Configuration space "nodal values".
Definition: enums.h:166
@ lspace
DG Polynomial space "modal values".
Definition: enums.h:165
@ backward
backward derivative (cell to the left and current cell)
Definition: enums.h:99
@ forward
forward derivative (cell to the right and current cell)
Definition: enums.h:98
@ centered
centered derivative (cell to the left and right and current cell)
Definition: enums.h:100
This is the namespace for all functions and classes defined and used by the discontinuous Galerkin li...