19#include "libmesh/libmesh_config.h"
21#ifdef LIBMESH_ENABLE_PERIODIC
23#include "libmesh/periodic_boundary_base.h"
25#include "libmesh/boundary_info.h"
43 myboundary(o.myboundary),
44 pairedboundary(o.pairedboundary),
45 variables(o.variables)
89 "Transformation matrix is not defined");
The BoundaryInfo class contains information relevant to boundary conditions including storing faces,...
Defines a dense matrix for use in Finite Element-type computations.
The base class for defining periodic boundaries.
std::set< unsigned int > variables
Set of variables for this periodic boundary, empty means all variables possible.
bool has_transformation_matrix() const
const DenseMatrix< Real > & get_transformation_matrix() const
Get the transformation matrix, if it is defined.
bool is_my_variable(unsigned int var_num) const
const std::set< unsigned int > & get_variables() const
Get the set of variables for this periodic boundary condition.
std::unique_ptr< DenseMatrix< Real > > _transformation_matrix
A DenseMatrix that defines the mapping of variables on this boundary and the counterpart boundary.
PeriodicBoundaryBase()
Constructor.
void set_variable(unsigned int var)
void set_transformation_matrix(const DenseMatrix< Real > &matrix)
Set the transformation matrix.
void merge(const PeriodicBoundaryBase &pb)
The libMesh namespace provides an interface to certain functionality in the library.