47 #ifdef LIBMESH_ENABLE_AMR 113 const unsigned int s)
const 115 libmesh_assert_less (s,
n_sides());
121 std::vector<unsigned>
124 libmesh_assert_less(s,
n_sides());
146 libmesh_assert_less (i, this->
n_sides());
149 return libmesh_make_unique<Side<Edge2,Quad4>>(
this,i);
153 std::unique_ptr<Elem> edge = libmesh_make_unique<Edge2>();
157 for (
unsigned n=0; n<edge->n_nodes(); ++n)
158 edge->set_node(n) = this->
node_ptr(Quad4::side_nodes_map[i][n]);
167 const unsigned int i)
169 libmesh_assert_less (i, this->
n_sides());
171 if (!side.get() ||
side->type() !=
EDGE2)
177 for (
auto n :
side->node_index_range())
178 side->set_node(n) = this->
node_ptr(Quad4::side_nodes_map[i][n]);
186 std::vector<dof_id_type> & conn)
const 215 libmesh_error_msg(
"Unsupported IO package " << iop);
234 a1 = x0/4 - x1/4 + x2/4 - x3/4,
235 b1 = -x0/4 + x1/4 + x2/4 - x3/4,
237 b2 = -x0/4 - x1/4 + x2/4 + x3/4;
241 return 4. * b1.
cross(b2).norm();
247 const Real q[2] = {-std::sqrt(3.)/3, std::sqrt(3.)/3.};
250 for (
unsigned int i=0; i<2; ++i)
251 for (
unsigned int j=0; j<2; ++j)
virtual bool is_node_on_side(const unsigned int n, const unsigned int s) const override
static const unsigned int side_nodes_map[num_sides][nodes_per_side]
static const float _embedding_matrix[num_children][num_nodes][num_nodes]
T cross_norm(const TypeVector< T > &b, const TypeVector< T > &c)
virtual BoundingBox loose_bounding_box() const
virtual bool has_affine_map() const override
virtual bool is_edge(const unsigned int i) const override
virtual bool is_vertex(const unsigned int i) const override
virtual Order default_order() const override
virtual BoundingBox loose_bounding_box() const override
virtual std::vector< unsigned int > nodes_on_side(const unsigned int s) const override
TypeVector< typename CompareTypes< T, T2 >::supertype > cross(const TypeVector< T2 > &v) const
static const int nodes_per_side
virtual unsigned int n_sides() const override final
static const int num_sides
static const int num_nodes
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
subdomain_id_type subdomain_id() const
const Node * node_ptr(const unsigned int i) const
virtual Real volume() const override
virtual bool is_face(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
static const int num_children
virtual unsigned int n_sub_elem() const override
virtual std::unique_ptr< Elem > build_side_ptr(const unsigned int i, bool proxy) override
virtual void connectivity(const unsigned int sf, const IOPackage iop, std::vector< dof_id_type > &conn) const override