19 #include "libmesh/side.h" 
   20 #include "libmesh/edge_edge3.h" 
   21 #include "libmesh/face_quad9.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,    0.00000 }, 
 
   55       {    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000,    0.00000,    0.00000,    0.00000 }, 
 
   56       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000 }, 
 
   57       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000 }, 
 
   58       {   0.375000,  -0.125000,    0.00000,    0.00000,   0.750000,    0.00000,    0.00000,    0.00000,    0.00000 }, 
 
   59       {    0.00000,    0.00000,    0.00000,    0.00000,   0.375000,    0.00000,  -0.125000,    0.00000,   0.750000 }, 
 
   60       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,  -0.125000,    0.00000,   0.375000,   0.750000 }, 
 
   61       {   0.375000,    0.00000,    0.00000,  -0.125000,    0.00000,    0.00000,    0.00000,   0.750000,    0.00000 }, 
 
   62       {   0.140625, -0.0468750,  0.0156250, -0.0468750,   0.281250, -0.0937500, -0.0937500,   0.281250,   0.562500 }  
 
   68       {    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000,    0.00000,    0.00000,    0.00000 }, 
 
   69       {    0.00000,    1.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000 }, 
 
   70       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000,    0.00000,    0.00000 }, 
 
   71       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000 }, 
 
   72       {  -0.125000,   0.375000,    0.00000,    0.00000,   0.750000,    0.00000,    0.00000,    0.00000,    0.00000 }, 
 
   73       {    0.00000,   0.375000,  -0.125000,    0.00000,    0.00000,   0.750000,    0.00000,    0.00000,    0.00000 }, 
 
   74       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,   0.375000,    0.00000,  -0.125000,   0.750000 }, 
 
   75       {    0.00000,    0.00000,    0.00000,    0.00000,   0.375000,    0.00000,  -0.125000,    0.00000,   0.750000 }, 
 
   76       { -0.0468750,   0.140625, -0.0468750,  0.0156250,   0.281250,   0.281250, -0.0937500, -0.0937500,   0.562500 }  
 
   82       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000 }, 
 
   83       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000 }, 
 
   84       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000,    0.00000 }, 
 
   85       {    0.00000,    0.00000,    0.00000,    1.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000 }, 
 
   86       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,  -0.125000,    0.00000,   0.375000,   0.750000 }, 
 
   87       {    0.00000,    0.00000,    0.00000,    0.00000,  -0.125000,    0.00000,   0.375000,    0.00000,   0.750000 }, 
 
   88       {    0.00000,    0.00000,  -0.125000,   0.375000,    0.00000,    0.00000,   0.750000,    0.00000,    0.00000 }, 
 
   89       {  -0.125000,    0.00000,    0.00000,   0.375000,    0.00000,    0.00000,    0.00000,   0.750000,    0.00000 }, 
 
   90       { -0.0468750,  0.0156250, -0.0468750,   0.140625, -0.0937500, -0.0937500,   0.281250,   0.281250,   0.562500 }  
 
   96       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000 }, 
 
   97       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000,    0.00000,    0.00000 }, 
 
   98       {    0.00000,    0.00000,    1.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000 }, 
 
   99       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,    1.00000,    0.00000,    0.00000 }, 
 
  100       {    0.00000,    0.00000,    0.00000,    0.00000,    0.00000,   0.375000,    0.00000,  -0.125000,   0.750000 }, 
 
  101       {    0.00000,  -0.125000,   0.375000,    0.00000,    0.00000,   0.750000,    0.00000,    0.00000,    0.00000 }, 
 
  102       {    0.00000,    0.00000,   0.375000,  -0.125000,    0.00000,    0.00000,   0.750000,    0.00000,    0.00000 }, 
 
  103       {    0.00000,    0.00000,    0.00000,    0.00000,  -0.125000,    0.00000,   0.375000,    0.00000,   0.750000 }, 
 
  104       {  0.0156250, -0.0468750,   0.140625, -0.0468750, -0.0937500,   0.281250,   0.281250, -0.0937500,   0.562500 }  
 
  139                             const unsigned int s)
 const 
  141   libmesh_assert_less (s, 
n_sides());
 
  147 std::vector<unsigned>
 
  150   libmesh_assert_less(s, 
n_sides());
 
  186   libmesh_assert_less (s, this->
n_sides());
 
  211       libmesh_error_msg(
"Invalid side s = " << s);
 
  225                                     unsigned int side_node)
 const 
  227   libmesh_assert_less (side, this->
n_sides());
 
  238   libmesh_assert_less (i, this->
n_sides());
 
  241     return libmesh_make_unique<Side<Edge3,Quad9>>(
this,i);
 
  245       std::unique_ptr<Elem> edge = libmesh_make_unique<Edge3>();
 
  249       for (
auto n : edge->node_index_range())
 
  250         edge->set_node(n) = this->
node_ptr(Quad9::side_nodes_map[i][n]);
 
  259                             const unsigned int i)
 
  261   this->simple_build_side_ptr<Quad9>(side, i, 
EDGE3);
 
  268                          std::vector<dof_id_type> & conn)
 const 
  314             libmesh_error_msg(
"Invalid sf = " << sf);
 
  377       libmesh_error_msg(
"Unsupported IO package " << iop);
 
  394   for (
unsigned d=0; d<LIBMESH_DIM; ++d)
 
  398       for (
unsigned int p=0; p != 8; ++p)
 
  401       pmin(d) = center - hd;
 
  402       pmax(d) = center + hd;
 
  428     a1 = x0/2 + x1/2 + x2/2 + x3/2 - x4 - x5 - x6 - x7 + 2*x8,
 
  429     b1 = -x0/4 + x1/4 + x2/4 - x3/4 - x5/2 + x7/2,
 
  430     c1 = -x0/2 - x1/2 + x2/2 + x3/2 + x4 - x6,
 
  432     e1 = x0/4 - x1/4 + x2/4 - x3/4,
 
  435     b2 = -x0/4 - x1/4 + x2/4 + x3/4 + x4/2 - x6/2,
 
  436     c2 = -x0/2 + x1/2 + x2/2 - x3/2 - x5 + x7,
 
  437     d2 = x0/4 - x1/4 + x2/4 - x3/4,
 
  442   const unsigned int N = 3;
 
  444   const Real w[N] = {5./9, 8./9, 5./9};
 
  447   for (
unsigned int i=0; i<N; ++i)
 
  448     for (
unsigned int j=0; j<N; ++j)
 
  450         cross_norm(q[i]*q[j]*q[j]*a1 + q[j]*q[j]*b1 + q[j]*q[i]*c1 + q[i]*d1 + q[j]*e1 + f1,
 
  451                    q[i]*q[i]*q[j]*a2 + q[i]*q[i]*b2 + q[j]*q[i]*c2 + q[i]*d2 + q[j]*e2 + f2);
 
  473       libmesh_error_msg(
"Invalid n = " << n);
 
  480                                                         const unsigned int v)
 const 
  482   libmesh_assert_greater_equal (n, this->
n_vertices());
 
  483   libmesh_assert_less (n, this->
n_nodes());
 
  489         libmesh_assert_less (v, 4);
 
  490         return static_cast<unsigned short int>(v);
 
  495         libmesh_assert_less (v, 2);
 
  504 std::pair<unsigned short int, unsigned short int>
 
  507   libmesh_assert_greater_equal (n, this->
n_vertices());
 
  508   libmesh_assert_less (n, this->
n_nodes());
 
  514   return std::pair<unsigned short int, unsigned short int>