1 #ifndef ABSORBING_ENDS_H
2 #define ABSORBING_ENDS_H
51 double alpha(
const double alpha0,
const double x)
const
58 const double sn = std::sin(M_PI_2 * std::min(s /
length, 1.0));
59 return alpha0 + (
alpha_max - alpha0) * sn * sn;
index
Definition: node.h:33
header to define struct Node
Definition: absorbing_ends.h:26
bool enable
Definition: absorbing_ends.h:28
double alpha_max
Definition: absorbing_ends.h:37
Nodes::index axis
Definition: absorbing_ends.h:31
double alpha(const double alpha0, const double x) const
Definition: absorbing_ends.h:51
std::vector< std::string > regions
Definition: absorbing_ends.h:40
double length
Definition: absorbing_ends.h:34
double lo
Definition: absorbing_ends.h:44
double hi
Definition: absorbing_ends.h:48