21#include "libmesh/edge_edge2.h"
22#include "libmesh/enum_io_package.h"
23#include "libmesh/enum_order.h"
33#ifdef LIBMESH_ENABLE_AMR
71 const unsigned int s)
const
78 const unsigned int libmesh_dbg_var(e))
const
80 libmesh_assert_equal_to (e, 0);
95 return this->
volume() > tol;
102 std::vector<dof_id_type> & conn)
const
104 libmesh_assert_equal_to (sc, 0);
128 libmesh_error_msg(
"Unsupported IO package " << iop);
149 libmesh_assert_less (s, 2);
150 const auto v = (this->
point(0) - this->
point(1)).unit();
151 return (s == 0) ? v : -v;
The BoundaryInfo class contains information relevant to boundary conditions including storing faces,...
virtual void connectivity(const unsigned int sc, const IOPackage iop, std::vector< dof_id_type > &conn) const override
virtual Point true_centroid() const override
An optimized method for computing the centroid of a 2-node edge.
virtual bool has_invertible_map(Real tol) const override
static const Real _embedding_matrix[num_children][num_nodes][num_nodes]
Matrix that computes new nodal locations/solution values from current nodes/solution.
virtual bool is_vertex(const unsigned int i) const override
virtual bool is_face(const unsigned int i) const override
static const int num_nodes
Geometric constants for Edge2.
virtual Order default_order() const override
virtual dof_id_type key() const override
virtual Point side_vertex_average_normal(const unsigned int s) const override final
virtual bool is_node_on_edge(const unsigned int n, const unsigned int e) const override
virtual void flip(BoundaryInfo *) override final
Flips the element (by swapping node and neighbor pointers) to have a mapping Jacobian of opposite sig...
virtual bool is_edge(const unsigned int i) const override
virtual Real volume() const override
An optimized method for computing the length of a 2-node edge.
virtual bool is_node_on_side(const unsigned int n, const unsigned int s) const override
virtual unsigned int n_sub_elem() const override
static const int num_children
const Point & point(const unsigned int i) const
void swap2nodes(unsigned int n1, unsigned int n2)
Swaps two node_ptrs.
void swap2neighbors(unsigned int n1, unsigned int n2)
Swaps two neighbor_ptrs.
void swap2boundarysides(unsigned short s1, unsigned short s2, BoundaryInfo *boundary_info) const
Swaps two sides in boundary_info, if it is non-null.
static dof_id_type compute_key(dof_id_type n0)
dof_id_type node_id(const unsigned int i) const
A Point defines a location in LIBMESH_DIM dimensional Real space.
The libMesh namespace provides an interface to certain functionality in the library.
IOPackage
libMesh interfaces with several different software packages for the purposes of creating,...
const unsigned int invalid_uint
A number which is used quite often to represent an invalid or uninitialized value for an unsigned int...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real