Flow123d
JS_before_hm-1804-gf2ad740aa
|
Go to the documentation of this file.
98 template <
int spacedim>
133 return arma::dot( arma::cross(*(
node(1) ) - *(
node(0) ),
155 return arma::norm(*(
node(1) ) - *(
node(0) ) , 2);
159 arma::vec::fixed<spacedim>
centre()
const;
174 const SideIter side(
const unsigned int loc_index)
const;
187 return mesh_ != NULL;
190 inline unsigned int dim()
const {
223 unsigned int idx()
const {
315 Edge(
const Mesh *mesh,
unsigned int edge_idx);
323 {
return mesh_ !=
nullptr; }
326 unsigned int idx()
const {
418 unsigned int dim()
const;
455 {
return this->
mesh_; }
467 {
return mesh_!=
nullptr; }
481 return !( *
this == other);
520 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.
Class RefElement defines numbering of vertices, sides, calculation of normal vectors etc.
bool operator==(const ElementAccessor< spacedim > &other) const
unsigned int elem_idx_
Index of element in Mesh::element_vec_.
bool inverted
Inverted permutation of element nodes, negative Jacobian.
bool is_external() const
Returns true for all sides either on boundary or connected to vb neigboring.
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.
double jacobian_S2() const
bool is_boundary() const
Returns true for side on the boundary.
vector< Element > element_vec_
bool is_valid() const
Returns false if the region has undefined/invalid value.
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.
virtual unsigned int n_elements() const
Returns count of boundary or bulk elements.
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.
double jacobian_S3() const
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
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.
double jacobian_S1() const
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.
RegionIdx region_idx() const
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.