19 #include "libmesh/libmesh_config.h"
21 #ifdef LIBMESH_ENABLE_PERIODIC
23 #include "libmesh/periodic_boundary_base.h"
25 #include "libmesh/boundary_info.h"
35 myboundary(BoundaryInfo::invalid_id),
36 pairedboundary(BoundaryInfo::invalid_id)
43 myboundary(o.myboundary),
44 pairedboundary(o.pairedboundary),
45 variables(o.variables)
89 "Transformation matrix is not defined");
116 #endif // LIBMESH_ENABLE_PERIODIC
const std::set< unsigned int > & get_variables() const
Get the set of variables for this periodic boundary condition.
PeriodicBoundaryBase()
Constructor.
void merge(const PeriodicBoundaryBase &pb)
void set_variable(unsigned int var)
std::set< unsigned int > variables
Set of variables for this periodic boundary, empty means all variables possible.
void set_transformation_matrix(const DenseMatrix< Real > &matrix)
Set the transformation matrix.
bool is_my_variable(unsigned int var_num) const
The base class for defining periodic boundaries.
const DenseMatrix< Real > & get_transformation_matrix() const
Get the transformation matrix, if it is defined.
定义用于有限元类型计算的密集矩阵。 用于在求和成全局矩阵之前存储单元刚度矩阵。所有被覆盖的虚函数都记录在dense_matrix_base.h中。
std::unique_ptr< DenseMatrix< Real > > _transformation_matrix
A DenseMatrix that defines the mapping of variables on this boundary and the counterpart boundary...
bool has_transformation_matrix() const