Template Class EdgeElem< 1 >

Inheritance Relationships

Base Type

Class Documentation

template<>
class EdgeElem<1> : public bitrl::utils::geom::Element<1>

Public Types

typedef Element<1>::neighbor_ptr_t neighbor_ptr_t
typedef Element<1>::neighbor_ref_t neighbor_ref_t
typedef Element<1>::node_ptr_t node_ptr_t
typedef Element<1>::edge_ptr_t edge_ptr_t
typedef Element<1>::cedge_ptr_t cedge_ptr_t
typedef Element<1>::edge_ref_t edge_ref_t
typedef Element<1>::cedge_ref_t cedge_ref_t
typedef Element<1>::face_ptr_t face_ptr_t
typedef Element<1>::cface_ptr_t cface_ptr_t
typedef Element<1>::face_ref_t face_ref_t
typedef Element<1>::cface_ref_t cface_ref_t

Public Functions

EdgeElem(uint_t id, uint_t proc_id = 0)

Constructor.

inline virtual uint_t n_nodes() const override

How many nodes the element has.

virtual void set_node(uint_t i, node_ptr_t node) final override

Set the i-th node.

virtual node_ptr_t get_node(uint_t n) final override

Returns the i-th node.

inline virtual uint_t n_vertices() const final override

How many vertices the element has.

inline virtual uint_t n_edges() const final override

How many edges the element has.

inline virtual uint_t n_faces() const final override

How many faces the element has.

inline virtual void resize_faces() final override

Resize the space for the faces an EdgeElem<1> does not have edges/faces these are Node type.

inline virtual void set_face(uint_t, face_ptr_t) final override

Set the f-th face of the element An EdgeElem<1> does not have extra faces.

virtual cface_ref_t get_face(uint_t f) const override

Returns the f-face.

virtual face_ref_t get_face(uint_t f) override

Returns the f-face.

inline virtual uint_t n_neighbors() const

Returns the number of neighbors.

virtual void face_vertices(uint_t f, std::vector<uint_t> &ids) const final override

Returns the node ids of the vertices of the given face.

virtual real_t volume() const final override

Returns the volume of the element.

inline virtual uint_t which_face_am_i(cface_ref_t face) const final override

Returns the local id relevant to the calling object of the passed object.

inline virtual const DynVec<real_t> face_normal_vector(uint_t f) const final override

Returns the face normal vector.