The base class for defining periodic boundaries. 更多...
#include <periodic_boundary_base.h>
Public 类型 | |
| enum | TransformationType { FORWARD =0, INVERSE =1 } |
Public 成员函数 | |
| PeriodicBoundaryBase () | |
| Constructor. 更多... | |
| PeriodicBoundaryBase (const PeriodicBoundaryBase &other) | |
| Copy constructor. 更多... | |
| virtual | ~PeriodicBoundaryBase ()=default |
| Destructor. 更多... | |
| 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 the periodic boundary pair. 更多... | |
| 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, this class must be clone'able, i.e. 更多... | |
| void | set_variable (unsigned int var) |
| void | merge (const PeriodicBoundaryBase &pb) |
| bool | is_my_variable (unsigned int var_num) const |
| bool | has_transformation_matrix () const |
| const DenseMatrix< Real > & | get_transformation_matrix () const |
| Get the transformation matrix, if it is defined. 更多... | |
| void | set_transformation_matrix (const DenseMatrix< Real > &matrix) |
| Set the transformation matrix. 更多... | |
| const std::set< unsigned int > & | get_variables () const |
| Get the set of variables for this periodic boundary condition. 更多... | |
Public 属性 | |
| boundary_id_type | myboundary |
| The boundary ID of this boundary and its counterpart. 更多... | |
| boundary_id_type | pairedboundary |
Protected 属性 | |
| std::set< unsigned int > | variables |
| Set of variables for this periodic boundary, empty means all variables possible. 更多... | |
| std::unique_ptr< DenseMatrix < Real > > | _transformation_matrix |
| A DenseMatrix that defines the mapping of variables on this boundary and the counterpart boundary. 更多... | |
The base class for defining periodic boundaries.
在文件 periodic_boundary_base.h 第 48 行定义.
| libMesh::PeriodicBoundaryBase::PeriodicBoundaryBase | ( | ) |
Constructor.
在文件 periodic_boundary_base.C 第 34 行定义.
| libMesh::PeriodicBoundaryBase::PeriodicBoundaryBase | ( | const PeriodicBoundaryBase & | other | ) |
Copy constructor.
在文件 periodic_boundary_base.C 第 42 行定义.
|
virtualdefault |
Destructor.
|
pure virtual |
If we want the DofMap to be able to make copies of references and store them in the underlying map, this class must be clone'able, i.e.
have a kind of virtual construction mechanism. The user can also pass a flag to enable an 'inverse transformation' to be cloned from a forward transformation. The simplest way to implement a clone function like this is in terms of a copy constructor, see periodic_boundary.h.
在 libMesh::PeriodicBoundary 内被实现.
|
pure virtual |
This function should be overridden by derived classes to define how one finds corresponding nodes on the periodic boundary pair.
在 libMesh::PeriodicBoundary 内被实现.
| const DenseMatrix< Real > & libMesh::PeriodicBoundaryBase::get_transformation_matrix | ( | ) | const |
Get the transformation matrix, if it is defined.
Throw an error if it is not defined.
在文件 periodic_boundary_base.C 第 86 行定义.
参考 _transformation_matrix , 以及 has_transformation_matrix().
| const std::set< unsigned int > & libMesh::PeriodicBoundaryBase::get_variables | ( | ) | const |
Get the set of variables for this periodic boundary condition.
在文件 periodic_boundary_base.C 第 109 行定义.
参考 variables.
| bool libMesh::PeriodicBoundaryBase::has_transformation_matrix | ( | ) | const |
在文件 periodic_boundary_base.C 第 79 行定义.
参考自 get_transformation_matrix().
| bool libMesh::PeriodicBoundaryBase::is_my_variable | ( | unsigned int | var_num | ) | const |
在文件 periodic_boundary_base.C 第 71 行定义.
参考 variables.
| void libMesh::PeriodicBoundaryBase::merge | ( | const PeriodicBoundaryBase & | pb | ) |
在文件 periodic_boundary_base.C 第 64 行定义.
参考 variables.
参考自 libMesh::DofMap::add_periodic_boundary().
| void libMesh::PeriodicBoundaryBase::set_transformation_matrix | ( | const DenseMatrix< Real > & | matrix | ) |
Set the transformation matrix.
When calling this method we require the following conditions: 1) matrix is square with size that matches this->variables.size() 2) the list of variables in this->variables set must all have the same FE type Both of these conditions are asserted in DBG mode.
在文件 periodic_boundary_base.C 第 96 行定义.
参考 _transformation_matrix , 以及 variables.
| void libMesh::PeriodicBoundaryBase::set_variable | ( | unsigned int | var | ) |
在文件 periodic_boundary_base.C 第 57 行定义.
参考 variables.
|
protected |
A DenseMatrix that defines the mapping of variables on this boundary and the counterpart boundary.
This is necessary for periodic-boundaries with vector-valued quantities (e.g. velocity or displacement) on a sector of a circular domain, for example, since in that case we must map each variable to a corresponding linear combination of all the variables. We store the DenseMatrix via a unique_ptr, and an uninitialized pointer is treated as equivalent to the identity matrix.
在文件 periodic_boundary_base.h 第 146 行定义.
参考自 get_transformation_matrix(), has_transformation_matrix(), PeriodicBoundaryBase() , 以及 set_transformation_matrix().
| boundary_id_type libMesh::PeriodicBoundaryBase::myboundary |
The boundary ID of this boundary and its counterpart.
在文件 periodic_boundary_base.h 第 58 行定义.
参考自 libMesh::DofMap::add_periodic_boundary() , 以及 libMesh::PeriodicBoundary::PeriodicBoundary().
| boundary_id_type libMesh::PeriodicBoundaryBase::pairedboundary |
|
protected |
Set of variables for this periodic boundary, empty means all variables possible.
在文件 periodic_boundary_base.h 第 134 行定义.
参考自 get_variables(), is_my_variable(), merge(), set_transformation_matrix() , 以及 set_variable().
1.8.5