Go to the documentation of this file.
18 #ifndef LIBMESH_PERIODIC_BOUNDARY_BASE_H
19 #define LIBMESH_PERIODIC_BOUNDARY_BASE_H
22 #include "libmesh/libmesh_config.h"
24 #ifdef LIBMESH_ENABLE_PERIODIC
27 #include "libmesh/point.h"
28 #include "libmesh/dense_matrix.h"
152 #endif // LIBMESH_ENABLE_PERIODIC
154 #endif // LIBMESH_PERIODIC_BOUNDARY_BASE_H
bool has_transformation_matrix() const
virtual Point get_corresponding_pos(const Point &pt) const =0
This function should be overridden by derived classes to define how one finds corresponding nodes on ...
void set_variable(unsigned int var)
virtual ~PeriodicBoundaryBase()
Destructor.
The base class for defining periodic boundaries.
The libMesh namespace provides an interface to certain functionality in the library.
std::set< unsigned int > variables
Set of variables for this periodic boundary, empty means all variables possible.
virtual std::unique_ptr< PeriodicBoundaryBase > clone(TransformationType t=FORWARD) const =0
If we want the DofMap to be able to make copies of references and store them in the underlying map,...
A Point defines a location in LIBMESH_DIM dimensional Real space.
boundary_id_type myboundary
The boundary ID of this boundary and its counterpart.
bool is_my_variable(unsigned int var_num) const
const DenseMatrix< Real > & get_transformation_matrix() const
Get the transformation matrix, if it is defined.
void merge(const PeriodicBoundaryBase &pb)
const std::set< unsigned int > & get_variables() const
Get the set of variables for this periodic boundary condition.
PeriodicBoundaryBase()
Constructor.
std::unique_ptr< DenseMatrix< Real > > _transformation_matrix
A DenseMatrix that defines the mapping of variables on this boundary and the counterpart boundary.
boundary_id_type pairedboundary
void set_transformation_matrix(const DenseMatrix< Real > &matrix)
Set the transformation matrix.