|
bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
|
#include <edge_element.h>


Public Member Functions | |
| EdgeElem (uint_t id, uint_t proc_id=0) | |
| Constructor. | |
| virtual uint_t | n_nodes () const override |
| How many nodes the element has. | |
| virtual void | set_node (uint_t i, node_ptr_t node) override final |
| Set the i-th node. | |
| virtual node_ptr_t | get_node (uint_t n) override final |
| Returns the i-th node. | |
| virtual uint_t | n_vertices () const override final |
| How many vertices the element has. | |
| virtual uint_t | n_edges () const override final |
| How many edges the element has. | |
| virtual uint_t | n_faces () const override final |
| How many faces the element has. | |
| virtual void | resize_faces () override final |
| Resize the space for the faces an EdgeElem<1> does not have edges/faces these are Node type. | |
| virtual void | set_face (uint_t, face_ptr_t) override final |
| 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. | |
| virtual uint_t | n_neighbors () const |
| Returns the number of neighbors. | |
| virtual void | face_vertices (uint_t f, std::vector< uint_t > &ids) const override final |
| Returns the node ids of the vertices of the given face. | |
| virtual real_t | volume () const override final |
| Returns the volume of the element. | |
| virtual uint_t | which_face_am_i (cface_ref_t face) const override final |
| 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 override final |
| Returns the face normal vector. | |
Public Member Functions inherited from bitrl::utils::geom::Element< 1 > | |
| virtual | ~Element () |
| Destructor. | |
| virtual void | set_node (uint_t i, node_ptr_t node) |
| Set the i-th node. | |
| virtual void | append_node (node_ptr_t node) |
| Append a node to the nodes list. | |
| virtual void | resize_nodes () |
| Reserve space for nodes. | |
| virtual void | set_face (uint_t f, face_ptr_t face)=0 |
| Set the f-th face of the element. | |
| virtual void | set_neighbor (uint_t n, neighbor_ptr_t neigh) |
| Set the i-th neighbor. | |
| virtual void | resize_neighbors () |
| Reserve space for neighbors. | |
| virtual cneighbor_ref_t | get_neighbor (uint_t n) const |
| Access the n-th neighbor. | |
| virtual neighbor_ptr_t | neighbor_ptr (uint_t n) |
| Access the n-th neighbor pointer. | |
| virtual const neighbor_ptr_t | neighbor_ptr (uint_t n) const |
| Access the n-th neighbor pointer. | |
| virtual GeomPoint< dim > | centroid () const |
| Returns the average location of the vertices of the element. | |
| virtual uint_t | which_face_am_i (cface_ref_t face) const=0 |
| Returns the local id relevant to the calling object of the passed object. | |
| uint_t | which_neighbor_am_i (const Element< dim > &element) const |
| Returns the local id relevant to the calling object of the passed object. | |
| std::vector< node_ptr_t > | get_vertices () const |
| Return the vertices of the element. | |
Public Member Functions inherited from bitrl::utils::geom::MeshEntity | |
| MeshEntity () | |
| Constructor. | |
| MeshEntity (uint_t id, uint_t pid, const std::any &data) | |
| Constructor. | |
| uint_t | get_id () const |
| Returns the id of the element. | |
| void | set_id (uint_t id) |
| Set the id of the element. | |
| uint_t | get_pid () const |
| Returns the id of the element. | |
| void | set_pid (uint_t id) |
| Set the id of the element. | |
| bool | has_valid_id () const |
| bool | is_active () const |
| void | set_active_flag (bool f) |
Additional Inherited Members | |
Protected Member Functions inherited from bitrl::utils::geom::Element< 1 > | |
| Element () | |
| Constructor. | |
| Element (uint_t id, uint_t pid) | |
| Constructor. | |
| Element (uint_t id, uint_t pid, const std::any &data) | |
| Constructor. | |
Protected Attributes inherited from bitrl::utils::geom::Element< 1 > | |
| std::vector< neighbor_ptr_t > | neginbors_ |
| The neighbors of the element. | |
| std::vector< node_ptr_t > | nodes_ |
| The nodes of the element. | |
| typedef Element<1>::cedge_ptr_t bitrl::utils::geom::EdgeElem< 1 >::cedge_ptr_t |
| typedef Element<1>::cedge_ref_t bitrl::utils::geom::EdgeElem< 1 >::cedge_ref_t |
| typedef Element<1>::cface_ptr_t bitrl::utils::geom::EdgeElem< 1 >::cface_ptr_t |
| typedef Element<1>::cface_ref_t bitrl::utils::geom::EdgeElem< 1 >::cface_ref_t |
| typedef Element<1>::edge_ptr_t bitrl::utils::geom::EdgeElem< 1 >::edge_ptr_t |
| typedef Element<1>::edge_ref_t bitrl::utils::geom::EdgeElem< 1 >::edge_ref_t |
| typedef Element<1>::face_ptr_t bitrl::utils::geom::EdgeElem< 1 >::face_ptr_t |
| typedef Element<1>::face_ref_t bitrl::utils::geom::EdgeElem< 1 >::face_ref_t |
| typedef Element<1>::neighbor_ptr_t bitrl::utils::geom::EdgeElem< 1 >::neighbor_ptr_t |
| typedef Element<1>::neighbor_ref_t bitrl::utils::geom::EdgeElem< 1 >::neighbor_ref_t |
| typedef Element<1>::node_ptr_t bitrl::utils::geom::EdgeElem< 1 >::node_ptr_t |
| bitrl::utils::geom::EdgeElem< 1 >::EdgeElem | ( | uint_t | id, |
| uint_t | proc_id = 0 |
||
| ) |
Constructor.
|
inlinefinaloverridevirtual |
Returns the face normal vector.
Implements bitrl::utils::geom::Element< 1 >.
|
finaloverridevirtual |
Returns the node ids of the vertices of the given face.
Implements bitrl::utils::geom::Element< 1 >.
|
overridevirtual |
Returns the f-face.
Implements bitrl::utils::geom::Element< 1 >.
|
overridevirtual |
Returns the f-face.
Implements bitrl::utils::geom::Element< 1 >.
|
finaloverridevirtual |
Returns the i-th node.
Reimplemented from bitrl::utils::geom::Element< 1 >.
|
inlinefinaloverridevirtual |
How many edges the element has.
Implements bitrl::utils::geom::Element< 1 >.
|
inlinefinaloverridevirtual |
How many faces the element has.
Implements bitrl::utils::geom::Element< 1 >.
|
inlinevirtual |
Returns the number of neighbors.
Implements bitrl::utils::geom::Element< 1 >.
|
inlineoverridevirtual |
How many nodes the element has.
Implements bitrl::utils::geom::Element< 1 >.
|
inlinefinaloverridevirtual |
How many vertices the element has.
Implements bitrl::utils::geom::Element< 1 >.
|
inlinefinaloverridevirtual |
Resize the space for the faces an EdgeElem<1> does not have edges/faces these are Node type.
Implements bitrl::utils::geom::Element< 1 >.
|
inlinefinaloverridevirtual |
Set the f-th face of the element An EdgeElem<1> does not have extra faces.
|
finaloverridevirtual |
Set the i-th node.
|
finaloverridevirtual |
Returns the volume of the element.
Implements bitrl::utils::geom::Element< 1 >.
|
inlinefinaloverridevirtual |
Returns the local id relevant to the calling object of the passed object.