Flow123d  release_3.0.0-1106-ga3b2e4c
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SurfaceDepth Class Reference

#include <surface_depth.hh>

Collaboration diagram for SurfaceDepth:
Collaboration graph
[legend]

Public Member Functions

 TYPEDEF_ERR_INFO (EI_Message, const std::string)
 Declaration of exceptions. More...
 
 TYPEDEF_ERR_INFO (EI_RegionName, const std::string)
 
 TYPEDEF_ERR_INFO (EI_FieldTime, double)
 
 TYPEDEF_ERR_INFO (EI_Xcoord, double)
 
 TYPEDEF_ERR_INFO (EI_Ycoord, double)
 
 TYPEDEF_ERR_INFO (EI_Zcoord, double)
 
 TYPEDEF_ERR_INFO (EI_SnapDistance, double)
 
 DECLARE_INPUT_EXCEPTION (ExcSurfaceProjection,<< EI_Message::val)
 
 DECLARE_INPUT_EXCEPTION (ExcTooLargeSnapDistance,<< "Distance of projected point during calculation of surface depth is larger "<< "than the global snap radius limit!\nRegion: "<< EI_RegionName::qval<< ", time: "<< EI_FieldTime::val<< ", coordinates of projected point: ["<< EI_Xcoord::val<< ", "<< EI_Ycoord::val<< ", "<< EI_Zcoord::val<< "], distance of nearest element: "<< EI_SnapDistance::val)
 
 SurfaceDepth (const Mesh *mesh, std::string surface_region, std::string surface_direction)
 
double compute_distance (arma::vec3 point)
 Compute distance of point from given surface region (was set in constructor) More...
 

Protected Member Functions

void create_projection_matrix (arma::vec3 surface_vec)
 Create projection matrix m_. More...
 
void construct_bih_tree (Mesh *mesh, std::string surface_region)
 Construct BIH tree above surface region of given name. More...
 
void prepare_distance_solve (unsigned int elem_idx, arma::vec3 &point, arma::vec3 &x)
 Precompute solve of distance in transformed coordinations of surface element plane. More...
 

Protected Attributes

BIHTree bih_tree_
 Tree of mesh elements. More...
 
arma::vec3 surface_norm_vec_
 normal vector of surface plane More...
 
arma::mat m_
 projection matrix More...
 
std::vector< arma::mat > inv_projection_
 vector of inversion projection matrices of elements above which BIH tree is created More...
 
std::vector< arma::vec3b_vecs_
 vector of b-vectors (right side of equation system) of elements above which BIH tree is created More...
 
double projection_search_radius_
 Projection search radius given from global_snap_radius of mesh. More...
 
std::string surface_region_
 Surface region name (need for exception) More...
 
std::vector< unsigned int > searched_elements_
 Surface region name (need for exception) More...
 

Detailed Description

Definition at line 30 of file surface_depth.hh.

Constructor & Destructor Documentation

SurfaceDepth::SurfaceDepth ( const Mesh mesh,
std::string  surface_region,
std::string  surface_direction 
)

Constructor

Definition at line 32 of file surface_depth.cc.

Member Function Documentation

double SurfaceDepth::compute_distance ( arma::vec3  point)

Compute distance of point from given surface region (was set in constructor)

Definition at line 112 of file surface_depth.cc.

void SurfaceDepth::construct_bih_tree ( Mesh mesh,
std::string  surface_region 
)
protected

Construct BIH tree above surface region of given name.

Definition at line 59 of file surface_depth.cc.

Here is the caller graph for this function:

void SurfaceDepth::create_projection_matrix ( arma::vec3  surface_vec)
protected

Create projection matrix m_.

Definition at line 41 of file surface_depth.cc.

Here is the caller graph for this function:

SurfaceDepth::DECLARE_INPUT_EXCEPTION ( ExcSurfaceProjection  ,
<< EI_Message::val   
)
SurfaceDepth::DECLARE_INPUT_EXCEPTION ( ExcTooLargeSnapDistance  ,
<< "Distance of projected point during calculation of surface depth is larger "<< "than the global snap radius limit!\nRegion: "<< EI_RegionName::qval<< "  ,
time:"<< EI_FieldTime::val<< "  ,
coordinates of projected point:  ["<< EI_Xcoord::val<< ","<< EI_Ycoord::val<< ","<< EI_Zcoord::val<< "],
distance of nearest element:"<< EI_SnapDistance::val   
)
void SurfaceDepth::prepare_distance_solve ( unsigned int  elem_idx,
arma::vec3 point,
arma::vec3 x 
)
protected

Precompute solve of distance in transformed coordinations of surface element plane.

Definition at line 163 of file surface_depth.cc.

Here is the caller graph for this function:

SurfaceDepth::TYPEDEF_ERR_INFO ( EI_Message  ,
const std::string   
)

Declaration of exceptions.

SurfaceDepth::TYPEDEF_ERR_INFO ( EI_RegionName  ,
const std::string   
)
SurfaceDepth::TYPEDEF_ERR_INFO ( EI_FieldTime  ,
double   
)
SurfaceDepth::TYPEDEF_ERR_INFO ( EI_Xcoord  ,
double   
)
SurfaceDepth::TYPEDEF_ERR_INFO ( EI_Ycoord  ,
double   
)
SurfaceDepth::TYPEDEF_ERR_INFO ( EI_Zcoord  ,
double   
)
SurfaceDepth::TYPEDEF_ERR_INFO ( EI_SnapDistance  ,
double   
)

Member Data Documentation

std::vector<arma::vec3> SurfaceDepth::b_vecs_
protected

vector of b-vectors (right side of equation system) of elements above which BIH tree is created

Definition at line 78 of file surface_depth.hh.

BIHTree SurfaceDepth::bih_tree_
protected

Tree of mesh elements.

Definition at line 66 of file surface_depth.hh.

std::vector<arma::mat> SurfaceDepth::inv_projection_
protected

vector of inversion projection matrices of elements above which BIH tree is created

Definition at line 75 of file surface_depth.hh.

arma::mat SurfaceDepth::m_
protected

projection matrix

Definition at line 72 of file surface_depth.hh.

double SurfaceDepth::projection_search_radius_
protected

Projection search radius given from global_snap_radius of mesh.

Definition at line 81 of file surface_depth.hh.

std::vector<unsigned int> SurfaceDepth::searched_elements_
protected

Surface region name (need for exception)

Definition at line 87 of file surface_depth.hh.

arma::vec3 SurfaceDepth::surface_norm_vec_
protected

normal vector of surface plane

Definition at line 69 of file surface_depth.hh.

std::string SurfaceDepth::surface_region_
protected

Surface region name (need for exception)

Definition at line 84 of file surface_depth.hh.


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