Flow123d  master-1fea4ce
Public Member Functions | Private Attributes | List of all members
IntersectionPoint< dimA, dimB > Class Template Reference

Class represents an intersection point of simplex<N> and simplex<M>. It contains barycentric coordinates of the point on both simplices. More...

#include <intersection_local.hh>

Public Member Functions

 IntersectionPoint ()
 Default constructor. More...
 
 ~IntersectionPoint ()
 Destructor. More...
 
 IntersectionPoint (const IntersectionPointAux< dimA, dimB > &p)
 Constructs IP from the auxiliary one coming from computation. More...
 
 IntersectionPoint (const arma::vec::fixed< dimA > &comp_coords, const arma::vec::fixed< dimB > &bulk_coords)
 

Private Attributes

arma::vec::fixed< dimA > comp_coords_
 Local coordinates of an IP on simplex<dimA>. More...
 
arma::vec::fixed< dimB > bulk_coords_
 Local coordinates of an IP on simplex<dimB>. More...
 

Getters.

const arma::vec::fixed< dimA > & comp_coords () const
 Returns local coordinates in the Simplex<N>. More...
 
const arma::vec::fixed< dimB > & bulk_coords () const
 Returns local coordinates in the Simplex<M>. More...
 
arma::vec3 coords (ElementAccessor< 3 > comp_ele) const
 
std::ostream & operator<< (std::ostream &os, const IntersectionPoint< dimA, dimB > &IP)
 Friend output operator. More...
 

Detailed Description

template<unsigned int dimA, unsigned int dimB>
class IntersectionPoint< dimA, dimB >

Class represents an intersection point of simplex<N> and simplex<M>. It contains barycentric coordinates of the point on both simplices.

Definition at line 153 of file intersection_local.hh.

Constructor & Destructor Documentation

◆ IntersectionPoint() [1/3]

template<unsigned int dimA, unsigned int dimB>
IntersectionPoint< dimA, dimB >::IntersectionPoint

Default constructor.

Definition at line 86 of file intersection_local.cc.

◆ ~IntersectionPoint()

template<unsigned int dimA, unsigned int dimB>
IntersectionPoint< dimA, dimB >::~IntersectionPoint

Destructor.

Definition at line 90 of file intersection_local.cc.

◆ IntersectionPoint() [2/3]

template<unsigned int dimA, unsigned int dimB>
IntersectionPoint< dimA, dimB >::IntersectionPoint ( const IntersectionPointAux< dimA, dimB > &  p)

Constructs IP from the auxiliary one coming from computation.

Definition at line 94 of file intersection_local.cc.

◆ IntersectionPoint() [3/3]

template<unsigned int dimA, unsigned int dimB>
IntersectionPoint< dimA, dimB >::IntersectionPoint ( const arma::vec::fixed< dimA > &  comp_coords,
const arma::vec::fixed< dimB > &  bulk_coords 
)

Constructor taking local coordinates on simplices as input parameters.

Parameters
comp_coordslocal coordinates of IP in Simplex<dimA>
bulk_coordslocal coordinates of IP in Simplex<dimB>

Definition at line 99 of file intersection_local.cc.

Member Function Documentation

◆ bulk_coords()

template<unsigned int dimA, unsigned int dimB>
const arma::vec::fixed< dimB > & IntersectionPoint< dimA, dimB >::bulk_coords

Returns local coordinates in the Simplex<M>.

Definition at line 200 of file intersection_local.hh.

◆ comp_coords()

template<unsigned int dimA, unsigned int dimB>
const arma::vec::fixed< dimA > & IntersectionPoint< dimA, dimB >::comp_coords

Returns local coordinates in the Simplex<N>.

Definition at line 196 of file intersection_local.hh.

◆ coords()

template<unsigned int dimA, unsigned int dimB>
arma::vec3 IntersectionPoint< dimA, dimB >::coords ( ElementAccessor< 3 >  comp_ele) const

Computes the real coordinates. comp_ele is component element

Definition at line 107 of file intersection_local.cc.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

template<unsigned int dimA, unsigned int dimB>
std::ostream& operator<< ( std::ostream &  os,
const IntersectionPoint< dimA, dimB > &  IP 
)
friend

Friend output operator.

Member Data Documentation

◆ bulk_coords_

template<unsigned int dimA, unsigned int dimB>
arma::vec::fixed<dimB> IntersectionPoint< dimA, dimB >::bulk_coords_
private

Local coordinates of an IP on simplex<dimB>.

Definition at line 156 of file intersection_local.hh.

◆ comp_coords_

template<unsigned int dimA, unsigned int dimB>
arma::vec::fixed<dimA> IntersectionPoint< dimA, dimB >::comp_coords_
private

Local coordinates of an IP on simplex<dimA>.

Definition at line 155 of file intersection_local.hh.


The documentation for this class was generated from the following files: