45 {0, 1, 4, 5, 10, 9, 99, 99, 99},
46 {1, 2, 4, 6, 11, 10, 99, 99, 99},
47 {2, 3, 4, 7, 12, 11, 99, 99, 99},
48 {3, 0, 4, 8, 9, 12, 99, 99, 99},
49 {0, 3, 2, 1, 8, 7, 6, 5, 13}
99 const unsigned int s)
const 101 libmesh_assert_less (s,
n_sides());
107 std::vector<unsigned>
110 libmesh_assert_less(s,
n_sides());
111 auto trim = (s == 4) ? 0 : 3;
116 const unsigned int e)
const 118 libmesh_assert_less (e,
n_edges());
144 libmesh_assert_less (s, this->
n_sides());
158 libmesh_error_msg(
"Invalid side s = " << s);
165 unsigned int side_node)
const 170 libmesh_assert_less(side_node, 9);
173 libmesh_assert(
side == 4 || side_node < 6);
182 libmesh_assert_less (i, this->
n_sides());
192 return libmesh_make_unique<Side<Tri6,Pyramid14>>(
this,i);
195 return libmesh_make_unique<Side<Quad9,Pyramid14>>(
this,i);
198 libmesh_error_msg(
"Invalid side i = " << i);
205 std::unique_ptr<Elem> face;
214 face = libmesh_make_unique<Tri6>();
219 face = libmesh_make_unique<Quad9>();
223 libmesh_error_msg(
"Invalid side i = " << i);
229 for (
unsigned n=0; n<face->n_nodes(); ++n)
230 face->set_node(n) = this->
node_ptr(Pyramid14::side_nodes_map[i][n]);
239 const unsigned int i)
241 libmesh_assert_less (i, this->
n_sides());
267 libmesh_error_msg(
"Invalid side i = " << i);
273 for (
auto n :
side->node_index_range())
274 side->set_node(n) = this->
node_ptr(Pyramid14::side_nodes_map[i][n]);
281 libmesh_assert_less (i, this->
n_edges());
283 return libmesh_make_unique<SideEdge<Edge3,Pyramid14>>(
this,i);
290 std::vector<dof_id_type> & )
const 301 libmesh_not_implemented();
307 libmesh_not_implemented();
311 libmesh_error_msg(
"Unsupported IO package " << iop);
335 libmesh_error_msg(
"Invalid node n = " << n);
341 const unsigned int v)
const 343 libmesh_assert_greater_equal (n, this->
n_vertices());
344 libmesh_assert_less (n, this->
n_nodes());
357 libmesh_assert_less (v, 2);
363 unsigned short node_list[8][2] =
375 return node_list[n-5][v];
381 libmesh_assert_less (v, 4);
385 return cast_int<unsigned short>(v);
389 libmesh_error_msg(
"Invalid n = " << n);
409 x0/4 - x1/4 + x10 + x11 - x12 - x2/4 + x3/4 - 3*x6/2 + 3*x8/2 - x9,
410 -x0/2 + x1/2 - 2*x10 - 2*x11 + 2*x12 + x2/2 - x3/2 + 3*x6/2 - 3*x8/2 + 2*x9,
411 x0/4 - x1/4 + x10 + x11 - x12 - x2/4 + x3/4 - x6/2 + x8/2 - x9,
412 x0/4 - x1/4 + x2/4 - x3/4,
413 -3*x0/4 + 3*x1/4 - x10 + x11 - x12 - 3*x2/4 + 3*x3/4 + x9,
414 x0/2 - x1/2 + x10 - x11 + x12 + x2/2 - x3/2 - x9,
415 -x0/4 + x1/4 + x2/4 - x3/4 - x6/2 + x8/2,
416 x0/4 - x1/4 - x2/4 + x3/4 + x6/2 - x8/2,
420 -x0/2 - x1/2 + x2/2 + x3/2 + x5 - x7,
421 x0/2 + x1/2 - x2/2 - x3/2 - x5 + x7,
422 x0/2 + x1/2 + 2*x13 + x2/2 + x3/2 - x5 - x6 - x7 - x8
430 x0/4 + x1/4 - x10 + x11 + x12 - x2/4 - x3/4 + 3*x5/2 - 3*x7/2 - x9,
431 -x0/2 - x1/2 + 2*x10 - 2*x11 - 2*x12 + x2/2 + x3/2 - 3*x5/2 + 3*x7/2 + 2*x9,
432 x0/4 + x1/4 - x10 + x11 + x12 - x2/4 - x3/4 + x5/2 - x7/2 - x9,
436 x0/4 - x1/4 + x2/4 - x3/4,
437 -3*x0/4 + 3*x1/4 - x10 + x11 - x12 - 3*x2/4 + 3*x3/4 + x9,
438 x0/2 - x1/2 + x10 - x11 + x12 + x2/2 - x3/2 - x9,
439 -x0/2 + x1/2 + x2/2 - x3/2 - x6 + x8,
440 x0/2 - x1/2 - x2/2 + x3/2 + x6 - x8,
441 -x0/4 - x1/4 + x2/4 + x3/4 + x5/2 - x7/2,
442 x0/4 + x1/4 - x2/4 - x3/4 - x5/2 + x7/2,
443 x0/2 + x1/2 + 2*x13 + x2/2 + x3/2 - x5 - x6 - x7 - x8
450 -x0/4 - x1/4 + x10 + x11 + x12 - 2*x13 - x2/4 - x3/4 - x4 + x9,
451 5*x0/4 + 5*x1/4 - 5*x10 - 5*x11 - 5*x12 + 8*x13 + 5*x2/4 + 5*x3/4 + 7*x4 - 5*x9,
452 -9*x0/4 - 9*x1/4 + 9*x10 + 9*x11 + 9*x12 - 12*x13 - 9*x2/4 - 9*x3/4 - 15*x4 + 9*x9,
453 7*x0/4 + 7*x1/4 - 7*x10 - 7*x11 - 7*x12 + 8*x13 + 7*x2/4 + 7*x3/4 + 13*x4 - 7*x9,
454 -x0/2 - x1/2 + 2*x10 + 2*x11 + 2*x12 - 2*x13 - x2/2 - x3/2 - 4*x4 + 2*x9,
455 x0/4 + x1/4 - x10 + x11 + x12 - x2/4 - x3/4 + x5/2 - x7/2 - x9,
456 -3*x0/4 - 3*x1/4 + 3*x10 - 3*x11 - 3*x12 + 3*x2/4 + 3*x3/4 - 3*x5/2 + 3*x7/2 + 3*x9,
457 3*x0/4 + 3*x1/4 - 3*x10 + 3*x11 + 3*x12 - 3*x2/4 - 3*x3/4 + 3*x5/2 - 3*x7/2 - 3*x9,
458 -x0/4 - x1/4 + x10 - x11 - x12 + x2/4 + x3/4 - x5/2 + x7/2 + x9,
459 x0/4 - x1/4 + x10 + x11 - x12 - x2/4 + x3/4 - x6/2 + x8/2 - x9,
460 -3*x0/4 + 3*x1/4 - 3*x10 - 3*x11 + 3*x12 + 3*x2/4 - 3*x3/4 + 3*x6/2 - 3*x8/2 + 3*x9,
461 3*x0/4 - 3*x1/4 + 3*x10 + 3*x11 - 3*x12 - 3*x2/4 + 3*x3/4 - 3*x6/2 + 3*x8/2 - 3*x9,
462 -x0/4 + x1/4 - x10 - x11 + x12 + x2/4 - x3/4 + x6/2 - x8/2 + x9,
463 -x0/4 + x1/4 - x10 + x11 - x12 - x2/4 + x3/4 + x9,
464 x0/4 - x1/4 + x10 - x11 + x12 + x2/4 - x3/4 - x9,
465 -x0/4 + x1/4 + x2/4 - x3/4 - x6/2 + x8/2,
466 x0/4 - x1/4 - x2/4 + x3/4 + x6/2 - x8/2,
467 -x0/4 - x1/4 + x2/4 + x3/4 + x5/2 - x7/2,
468 x0/4 + x1/4 - x2/4 - x3/4 - x5/2 + x7/2,
469 x0/2 + x1/2 + 2*x13 + x2/2 + x3/2 - x5 - x6 - x7 - x8
473 static const int dx_dxi_exponents[15][3] =
493 static const int dx_deta_exponents[15][3] =
513 static const int dx_dzeta_exponents[20][3] =
543 a1 =
Real(-7.1805574131988893873307823958101e-01L),
544 a2 =
Real(-5.0580870785392503961340276902425e-01L),
545 a3 =
Real(-2.2850430565396735359574351631314e-01L),
547 b1 =
Real( 7.2994024073149732155837979012003e-02L),
548 b2 =
Real( 3.4700376603835188472176354340395e-01L),
549 b3 =
Real( 7.0500220988849838312239847758405e-01L),
552 w1 =
Real( 4.8498876871878584357513834016440e-02L),
553 w2 =
Real( 4.5137737425884574692441981593901e-02L),
554 w3 =
Real( 9.2440441384508327195915094925393e-03L),
555 w4 =
Real( 7.7598202995005734972022134426305e-02L),
556 w5 =
Real( 7.2220379881415319507907170550242e-02L),
557 w6 =
Real( 1.4790470621521332351346415188063e-02L),
558 w7 =
Real( 1.2415712479200917595523541508209e-01L),
559 w8 =
Real( 1.1555260781026451121265147288039e-01L),
560 w9 =
Real( 2.3664752994434131762154264300901e-02L);
563 static const Real xi[N][3] =
594 static const Real eta[N][3] =
625 static const Real zeta[N][5] =
627 { 1., b1, b1*b1, b1*b1*b1, b1*b1*b1*b1},
628 { 1., b2, b2*b2, b2*b2*b2, b2*b2*b2*b2},
629 { 1., b3, b3*b3, b3*b3*b3, b3*b3*b3*b3},
630 { 1., b1, b1*b1, b1*b1*b1, b1*b1*b1*b1},
631 { 1., b2, b2*b2, b2*b2*b2, b2*b2*b2*b2},
632 { 1., b3, b3*b3, b3*b3*b3, b3*b3*b3*b3},
633 { 1., b1, b1*b1, b1*b1*b1, b1*b1*b1*b1},
634 { 1., b2, b2*b2, b2*b2*b2, b2*b2*b2*b2},
635 { 1., b3, b3*b3, b3*b3*b3, b3*b3*b3*b3},
636 { 1., b1, b1*b1, b1*b1*b1, b1*b1*b1*b1},
637 { 1., b2, b2*b2, b2*b2*b2, b2*b2*b2*b2},
638 { 1., b3, b3*b3, b3*b3*b3, b3*b3*b3*b3},
639 { 1., b1, b1*b1, b1*b1*b1, b1*b1*b1*b1},
640 { 1., b2, b2*b2, b2*b2*b2, b2*b2*b2*b2},
641 { 1., b3, b3*b3, b3*b3*b3, b3*b3*b3*b3},
642 { 1., b1, b1*b1, b1*b1*b1, b1*b1*b1*b1},
643 { 1., b2, b2*b2, b2*b2*b2, b2*b2*b2*b2},
644 { 1., b3, b3*b3, b3*b3*b3, b3*b3*b3*b3},
645 { 1., b1, b1*b1, b1*b1*b1, b1*b1*b1*b1},
646 { 1., b2, b2*b2, b2*b2*b2, b2*b2*b2*b2},
647 { 1., b3, b3*b3, b3*b3*b3, b3*b3*b3*b3},
648 { 1., b1, b1*b1, b1*b1*b1, b1*b1*b1*b1},
649 { 1., b2, b2*b2, b2*b2*b2, b2*b2*b2*b2},
650 { 1., b3, b3*b3, b3*b3*b3, b3*b3*b3*b3},
651 { 1., b1, b1*b1, b1*b1*b1, b1*b1*b1*b1},
652 { 1., b2, b2*b2, b2*b2*b2, b2*b2*b2*b2},
653 { 1., b3, b3*b3, b3*b3*b3, b3*b3*b3*b3}
656 static const Real w[N] = {w1, w2, w3, w4, w5, w6,
657 w1, w2, w3, w4, w5, w6,
658 w7, w8, w9, w4, w5, w6,
659 w1, w2, w3, w4, w5, w6,
663 for (
int q=0; q<N; ++q)
667 den2 = (1. - zeta[q][1])*(1. - zeta[q][1]),
668 den3 = den2*(1. - zeta[q][1]);
671 Point dx_dxi_q, dx_deta_q;
672 for (
int c=0; c<15; ++c)
675 xi[q][dx_dxi_exponents[c][0]]*
676 eta[q][dx_dxi_exponents[c][1]]*
677 zeta[q][dx_dxi_exponents[c][2]]*dx_dxi[c];
680 xi[q][dx_deta_exponents[c][0]]*
681 eta[q][dx_deta_exponents[c][1]]*
682 zeta[q][dx_deta_exponents[c][2]]*dx_deta[c];
687 for (
int c=0; c<20; ++c)
690 xi[q][dx_dzeta_exponents[c][0]]*
691 eta[q][dx_dzeta_exponents[c][1]]*
692 zeta[q][dx_dzeta_exponents[c][2]]*dx_dzeta[c];
virtual unsigned short int second_order_adjacent_vertex(const unsigned int n, const unsigned int v) const override
virtual std::unique_ptr< Elem > build_side_ptr(const unsigned int i, bool proxy) override
virtual bool is_node_on_side(const unsigned int n, const unsigned int s) const override
virtual bool is_node_on_edge(const unsigned int n, const unsigned int e) const override
static const int num_children
virtual bool has_affine_map() const override
virtual dof_id_type key() const
virtual unsigned int which_node_am_i(unsigned int side, unsigned int side_node) const override
virtual Order default_order() const override
static const int num_edges
virtual unsigned int n_sides() const override
virtual unsigned int n_vertices() const override
virtual bool is_face(const unsigned int i) const override
virtual bool is_edge(const unsigned int i) const override
virtual unsigned int n_sub_elem() const override
static const int nodes_per_side
T triple_product(const TypeVector< T > &a, const TypeVector< T > &b, const TypeVector< T > &c)
static const int num_sides
virtual std::unique_ptr< Elem > build_edge_ptr(const unsigned int i) override
static const int num_nodes
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual unsigned int n_nodes() const override
virtual bool is_vertex(const unsigned int i) const override
subdomain_id_type subdomain_id() const
virtual Real volume() const override
virtual unsigned int n_edges() const override
const Node * node_ptr(const unsigned int i) const
static const unsigned int edge_nodes_map[num_edges][nodes_per_edge]
static const unsigned int side_nodes_map[num_sides][nodes_per_side]
static dof_id_type compute_key(dof_id_type n0)
virtual unsigned int n_second_order_adjacent_vertices(const unsigned int n) const override
virtual std::vector< unsigned int > nodes_on_side(const unsigned int s) const override
A geometric point in (x,y,z) space.
dof_id_type node_id(const unsigned int i) const
const Point & point(const unsigned int i) const
static const int nodes_per_edge
std::unique_ptr< Elem > side(const unsigned int i) const
virtual void connectivity(const unsigned int sc, const IOPackage iop, std::vector< dof_id_type > &conn) const override