Flow123d
JS_before_hm-2088-g1c00063e5
|
#include <accessors.hh>
Public Member Functions | |
Side () | |
Default invalid side accessor constructor. More... | |
Side (const MeshBase *mesh, unsigned int elem_idx, unsigned int set_lnum) | |
Valid edge accessor constructor. More... | |
double | measure () const |
Calculate metrics of the side. More... | |
arma::vec3 | centre () const |
Centre of side. More... | |
arma::vec3 | normal () const |
Vector of (generalized) normal. More... | |
double | diameter () const |
Calculate the side diameter. More... | |
unsigned int | dim () const |
Returns dimension of the side, that is dimension of the element minus one. More... | |
bool | is_external () const |
Returns true for all sides either on boundary or connected to vb neigboring. More... | |
bool | is_boundary () const |
Returns true for side on the boundary. More... | |
NodeAccessor< 3 > | node (unsigned int i) const |
Returns node for given local index i on the side. More... | |
ElementAccessor< 3 > | element () const |
Returns iterator to the element of the side. More... | |
unsigned int | edge_idx () const |
Returns global index of the edge connected to the side. More... | |
Edge | edge () const |
Returns pointer to the edge connected to the side. More... | |
Boundary | cond () const |
unsigned int | cond_idx () const |
Returns global index of the prescribed boundary condition. More... | |
unsigned int | n_nodes () const |
Returns number of nodes of the side. More... | |
const MeshBase * | mesh () const |
Returns pointer to the mesh. More... | |
unsigned int | side_idx () const |
Returns local index of the side on the element. More... | |
unsigned int | elem_idx () const |
Returns index of element in Mesh::element_vec_. More... | |
bool | is_valid () const |
Returns true if the side has assigned element. More... | |
void | inc () |
Iterate over local sides of the element. More... | |
bool | operator== (const Side &other) const |
bool | operator!= (const Side &other) const |
Private Member Functions | |
arma::vec3 | normal_point () const |
This is necessary by current DofHandler, should change this. More... | |
arma::vec3 | normal_line () const |
arma::vec3 | normal_triangle () const |
Private Attributes | |
const MeshBase * | mesh_ |
Pointer to Mesh to which belonged. More... | |
unsigned int | elem_idx_ |
Index of element in Mesh::element_vec_. More... | |
unsigned int | side_idx_ |
Local # of side in element (to remove it, we heve to remove calc_side_rhs) More... | |
Definition at line 396 of file accessors.hh.
|
inline |
Default invalid side accessor constructor.
Definition at line 182 of file accessors_impl.hh.
|
inline |
Valid edge accessor constructor.
Definition at line 186 of file accessors_impl.hh.
arma::vec3 Side::centre | ( | ) | const |
Centre of side.
Definition at line 116 of file accessors.cc.
|
inline |
Returns boundary condition prescribed on the side. Fails on assert if side if not on boundary and no BC is prescribed.
Definition at line 225 of file accessors_impl.hh.
|
inline |
Returns global index of the prescribed boundary condition.
Definition at line 229 of file accessors_impl.hh.
double Side::diameter | ( | ) | const |
Calculate the side diameter.
Definition at line 132 of file accessors.cc.
|
inline |
Returns dimension of the side, that is dimension of the element minus one.
Definition at line 192 of file accessors_impl.hh.
|
inline |
Returns pointer to the edge connected to the side.
Definition at line 221 of file accessors_impl.hh.
|
inline |
Returns global index of the edge connected to the side.
Definition at line 217 of file accessors_impl.hh.
|
inline |
Returns index of element in Mesh::element_vec_.
Definition at line 454 of file accessors.hh.
|
inline |
Returns iterator to the element of the side.
Definition at line 212 of file accessors_impl.hh.
|
inline |
Iterate over local sides of the element.
Definition at line 462 of file accessors.hh.
|
inline |
Returns true for side on the boundary.
Definition at line 202 of file accessors_impl.hh.
|
inline |
Returns true for all sides either on boundary or connected to vb neigboring.
Definition at line 197 of file accessors_impl.hh.
|
inline |
Returns true if the side has assigned element.
Definition at line 458 of file accessors.hh.
double Side::measure | ( | ) | const |
Calculate metrics of the side.
Definition at line 27 of file accessors.cc.
|
inline |
Returns pointer to the mesh.
Definition at line 446 of file accessors.hh.
|
inline |
Returns number of nodes of the side.
Definition at line 442 of file accessors.hh.
|
inline |
Returns node for given local index i
on the side.
Definition at line 206 of file accessors_impl.hh.
arma::vec3 Side::normal | ( | ) | const |
Vector of (generalized) normal.
Definition at line 48 of file accessors.cc.
|
private |
|
private |
This is necessary by current DofHandler, should change this.
Definition at line 64 of file accessors.cc.
|
private |
|
inline |
Definition at line 472 of file accessors.hh.
|
inline |
Definition at line 467 of file accessors.hh.
|
inline |
Returns local index of the side on the element.
Definition at line 450 of file accessors.hh.
|
private |
Index of element in Mesh::element_vec_.
Definition at line 487 of file accessors.hh.
|
private |
Pointer to Mesh to which belonged.
Definition at line 486 of file accessors.hh.
|
private |
Local # of side in element (to remove it, we heve to remove calc_side_rhs)
Definition at line 488 of file accessors.hh.