Template Class Quad< 2 >

Inheritance Relationships

Base Type

Class Documentation

template<>
class Quad<2> : public bitrl::utils::geom::Element<2>

Public Types

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

Public Functions

explicit Quad(uint_t nnodes = 4)

ctor

explicit Quad(uint_t id, uint_t pid, const std::any &data, uint_t n = 4)

Constructor.

inline virtual uint_t n_nodes() const final override

Returns the total number of nodes for the element.

inline virtual uint_t n_vertices() const final override

A quad has 4 vertices independent of the dimension.

inline virtual uint_t n_neighbors() const final override

A quad has 4 neighbors independent of the dimension.

virtual void resize_faces()

Resize the space for the faces.

virtual void set_face(uint_t f, face_ptr_t face) final override

Set the f-th face of the element.

inline virtual uint_t n_faces() const final

A quad has 4 sides independent of the dimension.

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_edges() const final

A quad has 4 edges independent of the dimension.

virtual void face_vertices(uint_t f, std::vector<uint_t> &ids) const 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.

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.

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

Returns the face normal vector.