Flow123d  release_2.2.0-914-gf1a3a4f
Public Member Functions | Private Attributes | Friends | 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)
 
arma::vec3 coords (ElementFullIter comp_ele) const
 
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...
 

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...
 

Friends

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 33 of file intersection_local.hh.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 87 of file intersection_local.cc.

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

Destructor.

Definition at line 91 of file intersection_local.cc.

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 95 of file intersection_local.cc.

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 100 of file intersection_local.cc.

Member Function Documentation

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

Returns local coordinates in the Simplex<M>.

Definition at line 201 of file intersection_local.hh.

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

Returns local coordinates in the Simplex<N>.

Definition at line 197 of file intersection_local.hh.

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

Computes the real coordinates. comp_ele is component element

Definition at line 108 of file intersection_local.cc.

Here is the caller graph for this function:

Friends And Related Function Documentation

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

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 157 of file intersection_local.hh.

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 156 of file intersection_local.hh.


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