Flow123d
JS_before_hm-1730-gbf8dc60dc
|
Go to the documentation of this file.
98 template <
int spacedim>
128 arma::vec::fixed<spacedim>
centre()
const;
141 const SideIter side(
const unsigned int loc_index)
const;
154 return mesh_ != NULL;
181 unsigned int idx()
const {
272 Edge(
const Mesh *mesh,
unsigned int edge_idx);
280 {
return mesh_ !=
nullptr; }
283 unsigned int idx()
const {
375 unsigned int dim()
const;
412 {
return this->
mesh_; }
424 {
return mesh_!=
nullptr; }
438 return !( *
this == other);
477 return !( *
this == other);
const Side * operator->() const
-> dereference operator
Distribution * get_el_ds() const
Edge edge() const
Returns pointer to the edge connected to the side.
unsigned int side_idx_
Local # of side in element (to remove it, we heve to remove calc_side_rhs)
const Mesh * mesh() const
Returns pointer to the mesh.
unsigned int mesh_idx() const
Return global idx of element in full element vector.
RegionIdx r_idx_
Region index.
Class RefElement defines numbering of vertices, sides, calculation of normal vectors etc.
bool operator==(const ElementAccessor< spacedim > &other) const
unsigned int dim_
Dimension of reference element.
unsigned int elem_idx_
Index of element in Mesh::element_vec_.
bool is_external() const
Returns true for all sides either on boundary or connected to vb neigboring.
double tetrahedron_jacobian() const
const Mesh * mesh_
Pointer to the mesh owning the element.
const Mesh * mesh_
Pointer to the mesh owning the node.
SideIter(const Side &side)
Side()
Default invalid side accessor constructor.
void inc()
Incremental function of the Edge iterator.
const Mesh * mesh_
Pointer to Mesh to which belonged.
Support classes for parallel programing.
unsigned int n_sides() const
Returns number of sides aligned with the edge.
bool is_boundary() const
Returns true for side on the boundary.
vector< Element > element_vec_
unsigned int dim() const
Returns dimension of the side, that is dimension of the element minus one.
double measure() const
Calculate metrics of the side.
unsigned int elem_idx() const
Returns index of element in Mesh::element_vec_.
unsigned int idx() const
Returns edge global index.
bool operator==(const SideIter &other)
LongIdx * get_row_4_el() const
const EdgeData * edge_data() const
Getter for edge data from mesh.
bool is_elemental() const
const Element * element() const
Edge()
Default invalid edge accessor constructor.
double quality_measure_smooth() const
arma::vec3 normal_point() const
This is necessary by current DofHandler, should change this.
Implementation of the inline functions of the mesh accessors.
Bounding box in 3d ambient space.
arma::vec3 normal_triangle() const
unsigned int get_proc(unsigned int idx) const
get processor of the given index
bool is_boundary() const
We need this method after replacing Region by RegionIdx, and movinf RegionDB instance into particular...
BoundingBox bounding_box() const
unsigned int edge_idx() const
Returns global index of the edge connected to the side.
unsigned int cond_idx() const
Returns global index of the prescribed boundary condition.
SideIter side(const unsigned int i) const
Gets side iterator of the i -th side.
arma::vec3 normal_line() const
bool operator!=(const ElementAccessor< spacedim > &other) const
void inc()
Incremental function of the Element iterator.
void inc()
Iterate over local sides of the element.
static const unsigned int undefined_dim_
int find_elem_id(unsigned int pos) const
Return element id (in GMSH file) of element of given position in element vector.
const RegionDB & region_db() const
const Side & operator*() const
bool boundary_
True if the element is boundary.
ElementAccessor< 3 > element() const
Returns iterator to the element of the side.
vector< arma::vec3 > vertex_list() const
Return list of element vertices.
bool operator==(const Edge &other) const
Comparison operator of the iterator.
bool operator!=(const SideIter &other)
ElementAccessor< 3 > element_accessor()
unsigned int n_nodes() const
Returns number of nodes of the side.
unsigned int proc() const
NodeAccessor< 3 > node(unsigned int ni) const
arma::vec3 centre() const
Centre of side.
unsigned int side_idx() const
Returns local index of the side on the element.
ElementAccessor()
Default invalid accessor.
bool operator!=(const Side &other) const
double diameter() const
Calculate the side diameter.
BoundaryData * boundary_data_
unsigned int idx() const
Return local idx of element in boundary / bulk part of element vector.
const Element * operator->() const
unsigned int element_idx_
Index into Mesh::element_vec_ array.
unsigned int bulk_size_
Count of bulk elements.
bool is_valid() const
Returns true if the side has assigned element.
SideIter & operator++()
prefix increment iterate only on local element
NodeAccessor< 3 > node(unsigned int i) const
Returns node for given local index i on the side.
SideIter side(const unsigned int loc_index)
NodeAccessor< 3 > node(unsigned int idx) const
Create and return NodeAccessor to node of given idx.
unsigned int edge_idx_
Index into Mesh::edges vector.
bool operator==(const Side &other) const
unsigned int index() const
arma::vec3 normal() const
Vector of (generalized) normal.
double measure() const
Computes the measure of the element.
RegionIdx region_idx() const
arma::vec::fixed< spacedim > centre() const
Computes the barycenter.