Go to the documentation of this file.
21 #include "libmesh/edge_edge4.h"
22 #include "libmesh/enum_io_package.h"
23 #include "libmesh/enum_order.h"
32 #ifdef LIBMESH_ENABLE_AMR
41 {-0.0625, -0.0625, 0.5625, 0.5625},
42 {0.3125, 0.0625, 0.9375, -0.3125},
49 {-0.0625, -0.0625, 0.5625, 0.5625},
52 {0.0625, 0.3125, -0.3125, 0.9375}
60 return (i==0) || (i==1);
65 return (i==2) || (i==3);
74 const unsigned int s)
const
76 libmesh_assert_less (s, 2);
82 const unsigned int libmesh_dbg_var(e))
const
84 libmesh_assert_equal_to (e, 0);
92 if (!this->
point(2).relative_fuzzy_equals
95 if (!this->
point(3).relative_fuzzy_equals
112 std::vector<dof_id_type> & conn)
const
114 libmesh_assert_less_equal (sc, 2);
143 libmesh_error_msg(
"Invalid sc = " << sc);
169 libmesh_error_msg(
"Invalid sc = " << sc);
174 libmesh_error_msg(
"Unsupported IO package " << iop);
190 for (
unsigned d=0; d<LIBMESH_DIM; ++d)
196 pmin(d) = center - hd;
197 pmax(d) = center + hd;
229 a1 = -27*x0/16 + 27*x1/16 + 81*x2/16 - 81*x3/16,
230 b1 = 9*x0/8 + 9*x1/8 - 9*x2/8 - 9*x3/8,
231 c1 = x0/16 - x1/16 - 27*x2/16 + 27*x3/16;
234 const unsigned int N = 4;
245 for (
unsigned int i=0; i<N; ++i)
246 vol += w[i] * (q[i]*q[i]*a1 + q[i]*b1 + c1).norm();
static dof_id_type compute_key(dof_id_type n0)
virtual Real volume() const override
An optimized method for approximating the length of an EDGE4 using quadrature.
IOPackage
libMesh interfaces with several different software packages for the purposes of creating,...
Defines a Cartesian bounding box by the two corner extremum.
virtual unsigned int n_sub_elem() const override
The libMesh namespace provides an interface to certain functionality in the library.
MetaPhysicL::DualNumber< T, D > sqrt(const MetaPhysicL::DualNumber< T, D > &in)
virtual bool is_vertex(const unsigned int i) const override
virtual bool has_affine_map() const override
const Point & point(const unsigned int i) const
virtual Order default_order() const override
static const float _embedding_matrix[num_children][num_nodes][num_nodes]
Matrix that computes new nodal locations/solution values from current nodes/solution.
MetaPhysicL::DualNumber< T, D > abs(const MetaPhysicL::DualNumber< T, D > &in)
static const int num_children
virtual bool is_node_on_edge(const unsigned int n, const unsigned int e) const override
A Point defines a location in LIBMESH_DIM dimensional Real space.
virtual bool is_node_on_side(const unsigned int n, const unsigned int s) const override
virtual BoundingBox loose_bounding_box() const override
static const int num_nodes
Geometric constants for Edge4.
virtual dof_id_type key() const override
virtual void connectivity(const unsigned int sc, const IOPackage iop, std::vector< dof_id_type > &conn) const override
virtual bool is_face(const unsigned int i) const override
virtual bool is_edge(const unsigned int i) const override
dof_id_type node_id(const unsigned int i) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real