MADNESS
version 0.9
|
This class is used to specify boundary conditions for all operatorsExterior boundary conditions (i.e., on the simulation domain) are associated with operators (not functions). The types of boundary conditions available are in the enum BCType. More...
#include <funcdefaults.h>
Public Member Functions | |
BoundaryConditions (BCType code=BC_FREE) | |
Constructor. Default boundary condition set to free space. More... | |
BoundaryConditions (const BoundaryConditions< NDIM > &other) | |
Copy constructor is deep. More... | |
BoundaryConditions< NDIM > & | operator= (const BoundaryConditions< NDIM > &other) |
Assignment makes deep copy. More... | |
BCType | operator() (std::size_t d, int i) const |
Returns value of boundary condition. More... | |
BCType & | operator() (std::size_t d, int i) |
Returns reference to boundary condition. More... | |
template<typename Archive > | |
void | serialize (const Archive &ar) |
std::vector< bool > | is_periodic () const |
Convenience for application of integral operators. More... | |
Static Public Member Functions | |
static const char * | code_as_string (BCType code) |
Translates code into human readable string. More... | |
This class is used to specify boundary conditions for all operators
Exterior boundary conditions (i.e., on the simulation domain) are associated with operators (not functions). The types of boundary conditions available are in the enum BCType.
The default boundary conditions are obtained from the FunctionDefaults. For non-zero Dirichlet and Neumann conditions additional information must be provided when derivative operators are constructed. For integral operators, only periodic and free space are supported.
|
inline |
Constructor. Default boundary condition set to free space.
|
inline |
Copy constructor is deep.
|
inlinestatic |
Translates code into human readable string.
code | Code for boundary condition |
|
inline |
Convenience for application of integral operators.
Referenced by madness::FunctionImpl< T, NDIM >::project_refine_op().
|
inline |
Returns value of boundary condition.
d | Dimension (0,...,NDIM-1) for boundary condition |
i | Side (0=left, 1=right) for boundary condition |
|
inline |
Returns reference to boundary condition.
d | Dimension (0,...,NDIM-1) for boundary condition |
i | Side (0=left, 1=right) for boundary condition |
|
inline |
Assignment makes deep copy.
|
inline |