19 #include "libmesh/side.h" 
   20 #include "libmesh/edge_edge3.h" 
   21 #include "libmesh/face_quad8.h" 
   22 #include "libmesh/enum_io_package.h" 
   23 #include "libmesh/enum_order.h" 
   47 #ifdef LIBMESH_ENABLE_AMR 
   54       {    1.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000 }, 
 
   55       {    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000,    0.00000,    0.00000 }, 
 
   56       {  -0.250000,  -0.250000,  -0.250000,  -0.250000,   0.500000,   0.500000,   0.500000,   0.500000 }, 
 
   57       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000 }, 
 
   58       {   0.375000,  -0.125000,    0.00000,    0.00000,   0.750000,    0.00000,    0.00000,    0.00000 }, 
 
   59       {  -0.187500,  -0.187500,  -0.187500,  -0.187500,   0.750000,   0.375000,   0.250000,   0.375000 }, 
 
   60       {  -0.187500,  -0.187500,  -0.187500,  -0.187500,   0.375000,   0.250000,   0.375000,   0.750000 }, 
 
   61       {   0.375000,    0.00000,    0.00000,  -0.125000,    0.00000,    0.00000,    0.00000,   0.750000 }  
 
   67       {    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000,    0.00000,    0.00000 }, 
 
   68       {    0.00000,    1.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000 }, 
 
   69       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000,    0.00000 }, 
 
   70       {  -0.250000,  -0.250000,  -0.250000,  -0.250000,   0.500000,   0.500000,   0.500000,   0.500000 }, 
 
   71       {  -0.125000,   0.375000,    0.00000,    0.00000,   0.750000,    0.00000,    0.00000,    0.00000 }, 
 
   72       {    0.00000,   0.375000,  -0.125000,    0.00000,    0.00000,   0.750000,    0.00000,    0.00000 }, 
 
   73       {  -0.187500,  -0.187500,  -0.187500,  -0.187500,   0.375000,   0.750000,   0.375000,   0.250000 }, 
 
   74       {  -0.187500,  -0.187500,  -0.187500,  -0.187500,   0.750000,   0.375000,   0.250000,   0.375000 }  
 
   80       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000 }, 
 
   81       {  -0.250000,  -0.250000,  -0.250000,  -0.250000,   0.500000,   0.500000,   0.500000,   0.500000 }, 
 
   82       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000 }, 
 
   83       {    0.00000,    0.00000,    0.00000,    1.00000,    0.00000,    0.00000,    0.00000,    0.00000 }, 
 
   84       {  -0.187500,  -0.187500,  -0.187500,  -0.187500,   0.375000,   0.250000,   0.375000,   0.750000 }, 
 
   85       {  -0.187500,  -0.187500,  -0.187500,  -0.187500,   0.250000,   0.375000,   0.750000,   0.375000 }, 
 
   86       {    0.00000,    0.00000,  -0.125000,   0.375000,    0.00000,    0.00000,   0.750000,    0.00000 }, 
 
   87       {  -0.125000,    0.00000,    0.00000,   0.375000,    0.00000,    0.00000,    0.00000,   0.750000 }  
 
   93       {  -0.250000,  -0.250000,  -0.250000,  -0.250000,   0.500000,   0.500000,   0.500000,   0.500000 }, 
 
   94       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000,    0.00000 }, 
 
   95       {    0.00000,    0.00000,    1.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000 }, 
 
   96       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000 }, 
 
   97       {  -0.187500,  -0.187500,  -0.187500,  -0.187500,   0.375000,   0.750000,   0.375000,   0.250000 }, 
 
   98       {    0.00000,  -0.125000,   0.375000,    0.00000,    0.00000,   0.750000,    0.00000,    0.00000 }, 
 
   99       {    0.00000,    0.00000,   0.375000,  -0.125000,    0.00000,    0.00000,   0.750000,    0.00000 }, 
 
  100       {  -0.187500,  -0.187500,  -0.187500,  -0.187500,   0.250000,   0.375000,   0.750000,   0.375000 }  
 
  131                             const unsigned int s)
 const 
  133   libmesh_assert_less (s, 
n_sides());
 
  139 std::vector<unsigned>
 
  142   libmesh_assert_less(s, 
n_sides());
 
  175   libmesh_assert_less (s, this->
n_sides());
 
  200       libmesh_error_msg(
"Invalid side s = " << s);
 
  207                                     unsigned int side_node)
 const 
  209   libmesh_assert_less (side, this->
n_sides());
 
  220   libmesh_assert_less (i, this->
n_sides());
 
  223     return libmesh_make_unique<Side<Edge3,Quad8>>(
this,i);
 
  227       std::unique_ptr<Elem> edge = libmesh_make_unique<Edge3>();
 
  231       for (
auto n : edge->node_index_range())
 
  232         edge->set_node(n) = this->
node_ptr(Quad8::side_nodes_map[i][n]);
 
  241                             const unsigned int i)
 
  243   this->simple_build_side_ptr<Quad8>(side, i, 
EDGE3);
 
  253                          std::vector<dof_id_type> & conn)
 const 
  316             libmesh_error_msg(
"Invalid sf = " << sf);
 
  391       libmesh_error_msg(
"Unsupported IO package " << iop);
 
  408   for (
unsigned d=0; d<LIBMESH_DIM; ++d)
 
  411       for (
unsigned int p=1; p != 8; ++p)
 
  412         center += this->
point(p)(d);
 
  416       for (
unsigned int p=0; p != 8; ++p)
 
  419       pmin(d) = center - hd;
 
  420       pmax(d) = center + hd;
 
  450     a1 = -x0/4 + x1/4 + x2/4 - x3/4 - x5/2 + x7/2,
 
  451     b1 = -x0/2 - x1/2 + x2/2 + x3/2 + x4 - x6,
 
  452     c1 = x0/2 + x1/2 + x2/2 + x3/2 - x4 - x6,
 
  453     d1 = x0/4 - x1/4 + x2/4 - x3/4,
 
  455     a2 = -x0/4 - x1/4 + x2/4 + x3/4 + x4/2 - x6/2,
 
  456     b2 = -x0/2 + x1/2 + x2/2 - x3/2 - x5 + x7,
 
  457     c2 = x0/4 - x1/4 + x2/4 - x3/4,
 
  458     d2 = x0/2 + x1/2 + x2/2 + x3/2 - x5 - x7,
 
  462   const unsigned int N = 3;
 
  464   const Real w[N] = {5./9, 8./9, 5./9};
 
  467   for (
unsigned int i=0; i<N; ++i)
 
  468     for (
unsigned int j=0; j<N; ++j)
 
  469       vol += w[i] * w[j] * 
cross_norm(q[j]*q[j]*a1 + q[i]*q[j]*b1 + q[i]*c1 + q[j]*d1 + e1,
 
  470                                       q[i]*q[i]*a2 + q[i]*q[j]*b2 + q[i]*c2 + q[j]*d2 + e2);
 
  478                                                         const unsigned int v)
 const 
  480   libmesh_assert_greater_equal (n, this->
n_vertices());
 
  481   libmesh_assert_less (n, this->
n_nodes());
 
  482   libmesh_assert_less (v, 2);
 
  489 std::pair<unsigned short int, unsigned short int>
 
  492   libmesh_assert_greater_equal (n, this->
n_vertices());
 
  493   libmesh_assert_less (n, this->
n_nodes());
 
  499   return std::pair<unsigned short int, unsigned short int>