22 #include "libmesh/cell_prism.h"    23 #include "libmesh/cell_prism6.h"    24 #include "libmesh/face_quad4.h"    25 #include "libmesh/face_tri3.h"    87   libmesh_assert_less (s, this->
n_sides());
   106       libmesh_error_msg(
"Invalid side " << s);
   114   libmesh_assert_less (s, this->
n_sides());
   133       libmesh_error_msg(
"Invalid side " << s);
   140                                     unsigned int side_node)
 const   142   libmesh_assert_less (side, this->
n_sides());
   156                                     unsigned int edge_node)
 const   158   libmesh_assert_less(edge, this->
n_edges());
   168   libmesh_assert_less (i, this->
n_sides());
   170   std::unique_ptr<Elem> face;
   178         face = std::make_unique<Tri3>();
   185         face = std::make_unique<Quad4>();
   189       libmesh_error_msg(
"Invalid side i = " << i);
   193   for (
auto n : face->node_index_range())
   202                       const unsigned int i)
   204   libmesh_assert_less (i, this->
n_sides());
   212         if (!side.get() || side->type() != 
TRI3)
   224         if (!side.get() || side->type() != 
QUAD4)
   233       libmesh_error_msg(
"Invalid side i = " << i);
   239   for (
auto n : side->node_index_range())
   246                              const unsigned int s)
 const   249   libmesh_assert_less (s, this->
n_sides());
   251   for (
unsigned int i = 0; i != 4; ++i)
   260                             const unsigned int s)
 const   262   libmesh_assert_less (e, this->
n_edges());
   263   libmesh_assert_less (s, this->
n_sides());
   272   libmesh_assert_less(e, this->
n_edges());
   281   libmesh_assert_less (side_in, 5);
   282   static const unsigned int prism_opposites[5] =
   284   return prism_opposites[side_in];
   298 std::vector<unsigned int>
   301   libmesh_assert_less(n, this->
n_nodes());
   318                                  const Real eps)
 const   320   const Real & xi = p(0);
   321   const Real & eta = p(1);
   322   const Real & zeta = p(2);
   325   return ((xi   >=  0.-eps) &&
   329           ((xi + eta) <= 1.+eps));
 static const unsigned int side_nodes_map[num_sides][nodes_per_side]
This maps the  node of the  side to element node numbers. 
static const int num_edges
virtual dof_id_type low_order_key(const unsigned int s) const override
const unsigned int invalid_uint
A number which is used quite often to represent an invalid or uninitialized value for an unsigned int...
virtual unsigned int n_nodes() const override
virtual bool is_face(const unsigned int i) const =0
virtual dof_id_type key() const
virtual unsigned int n_sides() const override final
virtual std::unique_ptr< Elem > side_ptr(const unsigned int i) override final
virtual unsigned int local_side_node(unsigned int side, unsigned int side_node) const override
The libMesh namespace provides an interface to certain functionality in the library. 
static const int num_children
static const unsigned short int _second_order_adjacent_vertices[9][2]
Matrix that tells which vertices define the location of mid-side (or second-order) nodes...
virtual unsigned int n_children() const override final
virtual bool is_flipped() const override final
T triple_product(const TypeVector< T > &a, const TypeVector< T > &b, const TypeVector< T > &c)
static const Real _master_points[18][3]
Master element node locations. 
virtual bool is_child_on_side(const unsigned int c, const unsigned int s) const override final
static const unsigned int adjacent_edges_map[6][3]
This maps the  Prism vertex to the (in this case) 3 edge ids adjacent to the node. 
static const unsigned short int _second_order_vertex_child_index[18]
Vector that names the child vertex index for each second order node. 
virtual std::vector< unsigned int > sides_on_edge(const unsigned int e) const override final
virtual unsigned int local_edge_node(unsigned int edge, unsigned int edge_node) const override
virtual unsigned int n_vertices() const override final
virtual bool is_edge_on_side(const unsigned int e, const unsigned int s) const override final
static const unsigned short int _second_order_vertex_child_number[18]
Vector that names a child sharing each second order node. 
static const int nodes_per_side
virtual unsigned int opposite_side(const unsigned int s) const override final
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
subdomain_id_type subdomain_id() const
virtual unsigned int n_edges() const override final
static const unsigned int edge_sides_map[9][2]
This maps each edge to the sides that contain said edge. 
virtual bool is_vertex(const unsigned int i) const =0
static const int num_sides
Geometric constants for all Prisms. 
static const int nodes_per_edge
virtual bool on_reference_element(const Point &p, const Real eps=TOLERANCE) const override final
static const unsigned int edge_nodes_map[num_edges][nodes_per_edge]
This maps the  node of the  edge to element node numbers. 
static dof_id_type compute_key(dof_id_type n0)
virtual std::vector< unsigned int > edges_adjacent_to_node(const unsigned int n) const override
static const unsigned int side_elems_map[num_sides][nodes_per_side]
This maps the child elements with the associated side of the parent element. 
A Point defines a location in LIBMESH_DIM dimensional Real space. 
dof_id_type node_id(const unsigned int i) const
const Point & point(const unsigned int i) const
virtual bool is_edge(const unsigned int i) const =0
bool is_internal(const unsigned int i) const