20 #ifndef LIBMESH_EDGE_EDGE2_H 21 #define LIBMESH_EDGE_EDGE2_H 24 #include "libmesh/libmesh_common.h" 25 #include "libmesh/edge.h" 61 virtual ~Edge2() =
default;
69 libmesh_assert_less(i, this->
n_nodes());
76 virtual unsigned int n_sub_elem()
const override {
return 1; }
81 virtual bool is_vertex(
const unsigned int i)
const override;
86 virtual bool is_edge(
const unsigned int i)
const override;
91 virtual bool is_face(
const unsigned int i)
const override;
98 const unsigned int s)
const override;
105 const unsigned int e)
const override;
122 virtual bool is_linear ()
const override {
return true; }
136 std::vector<dof_id_type> & conn)
const override;
149 #ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS 154 virtual bool infinite ()
const override {
return false; }
191 #ifdef LIBMESH_ENABLE_AMR 197 const unsigned int j,
198 const unsigned int k)
const override 209 #endif // LIBMESH_ENABLE_AMR 216 #endif // LIBMESH_EDGE_EDGE2_H virtual bool has_affine_map() const override
ElemType
Defines an enum for geometric element types.
Order
defines an enum for polynomial orders.
A Node is like a Point, but with more information.
static const int num_children
static const int nodes_per_side
virtual dof_id_type key() const
virtual Real embedding_matrix(const unsigned int i, const unsigned int j, const unsigned int k) const override
Matrix used to create the elements children.
virtual Point master_point(const unsigned int i) const override
IOPackage
libMesh interfaces with several different software packages for the purposes of creating, reading, and writing mesh files.
This is the base class from which all geometric element types are derived.
static const int num_sides
Node * _nodelinks_data[num_nodes]
Data for links to nodes.
The libMesh namespace provides an interface to certain functionality in the library.
virtual dof_id_type key() const override
LIBMESH_ENABLE_TOPOLOGY_CACHES
Edge2(Elem *p=nullptr)
Constructor.
const int invalid_int
A number which is used quite often to represent an invalid or uninitialized value for an integer...
static const int num_edges
virtual bool is_face(const unsigned int i) const override
virtual Point true_centroid() const override
An optimized method for computing the centroid of a 2-node edge.
The BoundaryInfo class contains information relevant to boundary conditions including storing faces...
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_node_on_side(const unsigned int n, const unsigned int s) const override
Edge2 & operator=(const Edge2 &)=delete
virtual bool is_vertex(const unsigned int i) const override
static const int num_nodes
Geometric constants for Edge2.
virtual bool has_invertible_map(Real tol) const override
virtual bool is_edge(const unsigned int i) const override
virtual Order default_order() const override
virtual bool is_linear() const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void connectivity(const unsigned int sc, const IOPackage iop, std::vector< dof_id_type > &conn) const override
virtual unsigned int n_sub_elem() const override
The Edge2 is an element in 1D composed of 2 nodes.
The Edge is an element in 1D.
virtual bool infinite() const override
static const int nodes_per_edge
virtual Real volume() const override
An optimized method for computing the length of a 2-node edge.
virtual ElemType type() 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...
A Point defines a location in LIBMESH_DIM dimensional Real space.
virtual unsigned int n_nodes() const override
virtual bool is_node_on_edge(const unsigned int n, const unsigned int e) const override