Flow123d
JS_before_hm-2198-g122e1f2e2
|
Go to the documentation of this file.
20 #ifndef INTERSECTION_LOCAL_H_
21 #define INTERSECTION_LOCAL_H_
60 unsigned int bulk_element_idx);
70 typedef std::pair<unsigned int, IntersectionLocalBase*>
ILpair;
88 template<
unsigned int dimA,
unsigned int dimB>
99 IntersectionLocal(
unsigned int component_element_idx,
unsigned int bulk_element_idx);
116 unsigned int size()
const;
129 template<
unsigned int dimA,
unsigned int dimB>
131 {
return i_points_; }
133 template<
unsigned int dimA,
unsigned int dimB>
135 {
return i_points_; }
137 template<
unsigned int dimA,
unsigned int dimB>
140 return i_points_[index]; }
142 template<
unsigned int dimA,
unsigned int dimB>
144 {
return i_points_.size(); }
152 template<
unsigned int dimA,
unsigned int dimB>
195 template<
unsigned int dimA,
unsigned int dimB>
197 {
return comp_coords_; }
199 template<
unsigned int dimA,
unsigned int dimB>
201 {
return bulk_coords_; }
virtual double compute_measure() const =0
~IntersectionPoint()
Destructor.
unsigned int component_element_idx_
Index of intersecting element in the component.
double compute_measure() const override
Computes the relative measure of intersection object.
arma::vec::fixed< dimB > bulk_coords_
Local coordinates of an IP on simplex<dimB>.
IntersectionPoint()
Default constructor.
std::vector< IntersectionPoint< dimA, dimB > > & points()
Returns intersection points by a reference.
arma::vec3 coords(ElementAccessor< 3 > comp_ele) const
Internal auxiliary class represents an intersection point of simplex<N> and simplex<M>.
std::vector< IntersectionPoint< dimA, dimB > > i_points_
Vector of intersection points.
std::ostream & operator<<(std::ostream &os, const IntersectionLocal< dimA, dimB > &il)
const arma::vec::fixed< dimB > & bulk_coords() const
Returns local coordinates in the Simplex<M>.
const arma::vec::fixed< dimA > & comp_coords() const
Returns local coordinates in the Simplex<N>.
Internal auxiliary class representing intersection object of simplex<dimA> and simplex<dimB>.
unsigned int bulk_element_idx_
Index of intersecting element in the bulk.
std::pair< unsigned int, IntersectionLocalBase * > ILpair
First = element index, Second = pointer to intersection object.
const IntersectionPoint< dimA, dimB > & operator[](unsigned int index) const
Returns intersection point of given index.
Class represents intersection of two elements.
Class represents an intersection point of simplex<N> and simplex<M>. It contains barycentric coordina...
arma::vec::fixed< dimA > comp_coords_
Local coordinates of an IP on simplex<dimA>.
unsigned int size() const
Returns number of intersection points.
unsigned int component_ele_idx() const
Returns index of component element.
IntersectionLocal()
Default constructor.
unsigned int bulk_ele_idx() const
Returns index of bulk element.
~IntersectionLocal()
Destructor.
Common base for intersection object.