46 #ifdef LIBMESH_ENABLE_AMR 53 { 1.0, 0.0, 0.0, 0.0, 0.0, 0.0},
54 { 0.0, 0.0, 0.0, 1.0, 0.0, 0.0},
55 { 0.0, 0.0, 0.0, 0.0, 0.0, 1.0},
56 {.375, -.125, 0.0, .75, 0.0, 0.0},
57 { 0.0, -.125, -.125, 0.5, .25, 0.5},
58 {.375, 0.0, -.125, 0.0, 0.0, .75}
64 { 0.0, 0.0, 0.0, 1.0, 0.0, 0.0},
65 { 0.0, 1.0, 0.0, 0.0, 0.0, 0.0},
66 { 0.0, 0.0, 0.0, 0.0, 1.0, 0.0},
67 {-.125, .375, 0.0, .75, 0.0, 0.0},
68 { 0.0, .375, -.125, 0.0, .75, 0.0},
69 {-.125, 0.0, -.125, 0.5, 0.5, .25}
75 { 0.0, 0.0, 0.0, 0.0, 0.0, 1.0},
76 { 0.0, 0.0, 0.0, 0.0, 1.0, 0.0},
77 { 0.0, 0.0, 1.0, 0.0, 0.0, 0.0},
78 {-.125, -.125, 0.0, .25, 0.5, 0.5},
79 { 0.0, -.125, .375, 0.0, .75, 0.0},
80 {-.125, 0.0, .375, 0.0, 0.0, .75}
86 { 0.0, 0.0, 0.0, 1.0, 0.0, 0.0},
87 { 0.0, 0.0, 0.0, 0.0, 1.0, 0.0},
88 { 0.0, 0.0, 0.0, 0.0, 0.0, 1.0},
89 {-.125, 0.0, -.125, 0.5, 0.5, .25},
90 {-.125, -.125, 0.0, .25, 0.5, 0.5},
91 { 0.0, -.125, -.125, 0.5, .25, 0.5}
122 const unsigned int s)
const 124 libmesh_assert_less (s,
n_sides());
130 std::vector<unsigned>
133 libmesh_assert_less(s,
n_sides());
140 if (!this->
point(3).relative_fuzzy_equals
143 if (!this->
point(4).relative_fuzzy_equals
146 if (!this->
point(5).relative_fuzzy_equals
164 libmesh_assert_less (s, this->
n_sides());
184 libmesh_error_msg(
"Invalid side s = " << s);
191 unsigned int side_node)
const 204 libmesh_assert_less (i, this->
n_sides());
207 return libmesh_make_unique<Side<Edge3,Tri6>>(
this,i);
211 std::unique_ptr<Elem> edge = libmesh_make_unique<Edge3>();
215 for (
unsigned n=0; n<edge->n_nodes(); ++n)
216 edge->set_node(n) = this->
node_ptr(Tri6::side_nodes_map[i][n]);
225 const unsigned int i)
227 this->simple_build_side_ptr<Tri6>(
side, i,
EDGE3);
234 std::vector<dof_id_type> & conn)
const 283 libmesh_error_msg(
"Invalid sf = " << sf);
343 libmesh_error_msg(
"Unsupported IO package " << iop);
360 for (
unsigned d=0; d<LIBMESH_DIM; ++d)
363 for (
unsigned int p=1; p != 6; ++p)
364 center += this->
point(p)(d);
368 for (
unsigned int p=1; p != 6; ++p)
371 pmin(d) = center - hd;
372 pmax(d) = center + hd;
392 a1 = 4*x0 + 4*x1 - 8*x3,
393 b1 = 4*x0 - 4*x3 + 4*x4 - 4*x5,
394 c1 = -3*x0 - 1*x1 + 4*x3,
395 b2 = 4*x0 + 4*x2 - 8*x5,
396 c2 = -3*x0 - 1*x2 + 4*x5;
401 b1.relative_fuzzy_equals(
Point(0,0,0)) &&
402 b2.relative_fuzzy_equals(
Point(0,0,0)))
406 const unsigned int N = 7;
410 w1 =
Real(31)/480 +
Real(std::sqrt(15.0L)/2400),
411 w2 =
Real(31)/480 -
Real(std::sqrt(15.0L)/2400),
412 q1 =
Real(2)/7 +
Real(std::sqrt(15.0L)/21),
413 q2 =
Real(2)/7 -
Real(std::sqrt(15.0L)/21);
415 const static Real xi[N] = {
Real(1)/3, q1, q1, 1-2*q1, q2, q2, 1-2*q2};
416 const static Real eta[N] = {
Real(1)/3, q1, 1-2*q1, q1, q2, 1-2*q2, q2};
417 const static Real wts[N] = {
Real(9)/80, w1, w1, w1, w2, w2, w2};
421 for (
unsigned int q=0; q<N; ++q)
422 vol += wts[q] *
cross_norm(xi[q]*a1 + eta[q]*b1 + c1,
423 xi[q]*b1 + eta[q]*b2 + c2);
431 const unsigned int v)
const 433 libmesh_assert_greater_equal (n, this->
n_vertices());
434 libmesh_assert_less (n, this->
n_nodes());
435 libmesh_assert_less (v, 2);
450 std::pair<unsigned short int, unsigned short int>
453 libmesh_assert_greater_equal (n, this->
n_vertices());
454 libmesh_assert_less (n, this->
n_nodes());
455 return std::pair<unsigned short int, unsigned short int>
static const unsigned int side_nodes_map[num_sides][nodes_per_side]
virtual unsigned int n_nodes() const override
virtual Real volume() const override
virtual bool is_node_on_side(const unsigned int n, const unsigned int s) const override
T cross_norm(const TypeVector< T > &b, const TypeVector< T > &c)
static const float _embedding_matrix[num_children][num_nodes][num_nodes]
virtual Order default_order() const override
virtual unsigned int n_vertices() const override final
static const unsigned short int _second_order_adjacent_vertices[num_sides][2]
static const int nodes_per_side
long double max(long double a, double b)
virtual bool is_face(const unsigned int i) const override
static const unsigned short int _second_order_vertex_child_number[num_nodes]
virtual unsigned int n_sides() const override final
static const unsigned short int _second_order_vertex_child_index[num_nodes]
virtual dof_id_type key() const override final
virtual unsigned int which_node_am_i(unsigned int side, unsigned int side_node) const override
virtual std::vector< unsigned int > nodes_on_side(const unsigned int s) const override
static const int num_sides
virtual std::unique_ptr< Elem > build_side_ptr(const unsigned int i, bool proxy) override
virtual unsigned int n_sub_elem() const override
virtual unsigned short int second_order_adjacent_vertex(const unsigned int n, const unsigned int v) const override
virtual bool has_affine_map() const override
virtual bool is_edge(const unsigned int i) const override
virtual BoundingBox loose_bounding_box() const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
subdomain_id_type subdomain_id() const
static const int num_children
const Node * node_ptr(const unsigned int i) const
virtual void connectivity(const unsigned int sf, const IOPackage iop, std::vector< dof_id_type > &conn) const override
virtual std::pair< unsigned short int, unsigned short int > second_order_child_vertex(const unsigned int n) const override
static const int num_nodes
static dof_id_type compute_key(dof_id_type n0)
virtual bool is_vertex(const unsigned int i) 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
bool relative_fuzzy_equals(const TypeVector< T > &rhs, Real tol=TOLERANCE) const
std::unique_ptr< Elem > side(const unsigned int i) const