Maps between boundary ids and PeriodicBoundaryBase objects. More...
#include <periodic_boundaries.h>
Public Member Functions | |
PeriodicBoundaryBase * | boundary (boundary_id_type id) |
const PeriodicBoundaryBase * | boundary (boundary_id_type id) const |
PeriodicBoundaries () | |
~PeriodicBoundaries () | |
const Elem * | neighbor (boundary_id_type boundary_id, const PointLocatorBase &point_locator, const Elem *e, unsigned int side) const |
Maps between boundary ids and PeriodicBoundaryBase objects.
We're using a class instead of a typedef to allow forward declarations and future flexibility.
std::map
has no virtual destructor, so downcasting here would be dangerous.Definition at line 51 of file periodic_boundaries.h.
|
inline |
Definition at line 58 of file periodic_boundaries.h.
libMesh::PeriodicBoundaries::~PeriodicBoundaries | ( | ) |
Definition at line 32 of file periodic_boundaries.C.
PeriodicBoundaryBase * libMesh::PeriodicBoundaries::boundary | ( | boundary_id_type | id | ) |
Definition at line 40 of file periodic_boundaries.C.
References end.
Referenced by libMesh::FEGenericBase< FEOutputType< T >::type >::compute_periodic_constraints(), libMesh::FEAbstract::compute_periodic_node_constraints(), neighbor(), and libMesh::Elem::topological_neighbor().
const PeriodicBoundaryBase * libMesh::PeriodicBoundaries::boundary | ( | boundary_id_type | id | ) | const |
const Elem * libMesh::PeriodicBoundaries::neighbor | ( | boundary_id_type | boundary_id, |
const PointLocatorBase & | point_locator, | ||
const Elem * | e, | ||
unsigned int | side | ||
) | const |
Definition at line 61 of file periodic_boundaries.C.
References boundary(), libMesh::Elem::build_side_ptr(), libMesh::PeriodicBoundaryBase::get_corresponding_pos(), libMesh::PointLocatorBase::get_mesh(), libMesh::invalid_uint, mesh, libMesh::PeriodicBoundaryBase::pairedboundary, and side.
Referenced by libMesh::FEGenericBase< FEOutputType< T >::type >::compute_periodic_constraints(), libMesh::FEAbstract::compute_periodic_node_constraints(), and libMesh::Elem::topological_neighbor().