Public Member Functions | |
CutOffFunctionBase (const double radius=1., const Point< dim >=Point< dim >(), const unsigned int n_components=1, const unsigned int select=CutOffFunctionBase< dim >::no_component) | |
void | new_center (const Point< dim > &p) |
void | new_radius (const double r) |
Static Public Attributes | |
static const unsigned int | no_component = numbers::invalid_unsigned_int |
Protected Attributes | |
Point< dim > | center |
double | radius |
const unsigned int | selected |
Functions::CutOffFunctionBase< dim >::CutOffFunctionBase | ( | const double | radius = 1. , |
|
const Point< dim > | = Point< dim >() , |
|||
const unsigned int | n_components = 1 , |
|||
const unsigned int | select = CutOffFunctionBase< dim >::no_component | |||
) |
Constructor. Arguments are the center of the ball and its radius.
If an argument select
is given and not -1, the cut-off function will be non-zero for this component only.
void Functions::CutOffFunctionBase< dim >::new_center | ( | const Point< dim > & | p | ) |
Move the center of the ball to new point p
.
void Functions::CutOffFunctionBase< dim >::new_radius | ( | const double | r | ) |
Set the radius of the ball to r
.
const unsigned int Functions::CutOffFunctionBase< dim >::no_component = numbers::invalid_unsigned_int [static] |
Value used in the constructor of this and derived classes to denote that no component is selected.
Point<dim> Functions::CutOffFunctionBase< dim >::center [protected] |
Center of the integration ball.
double Functions::CutOffFunctionBase< dim >::radius [protected] |
Radius of the ball.
const unsigned int Functions::CutOffFunctionBase< dim >::selected [protected] |
Component selected. If no_component
, the function is the same in all components.