45 template <
int spacedim>
83 inline unsigned int dim()
const 91 inline arma::vec::fixed<spacedim>
centre()
const {
93 if (
is_regional() )
return arma::vec::fixed<spacedim>();
113 inline unsigned int idx()
const {
const Element * element() const
unsigned int dim_
Dimension of reference element.
bool is_boundary() const
We need this method after replacing Region by RegionIdx, and movinf RegionDB instance into particular...
const Mesh * mesh_
Pointer to the mesh owning the element.
const RegionDB & region_db() const
unsigned int element_idx_
Index into Mesh::bc_elements or Mesh::element array.
static const unsigned int undefined_dim_
bool is_elemental() const
ElementVector bc_elements
bool boundary_
True if the element is boundary, i.e. stored in Mesh::bc_elements, bulk elements are stored in Mesh::...
RegionIdx r_idx_
Region index.
ElementAccessor(const Mesh *mesh, unsigned int idx, bool boundary)
arma::vec3 centre() const
Computes the barycenter.
RegionIdx region_idx() const
arma::vec::fixed< spacedim > centre() const
ElementAccessor(const Mesh *mesh, RegionIdx r_idx)
ElementVector element
Vector of elements of the mesh.