ParMooN
 All Classes Functions Variables Friends Pages
Public Member Functions | Protected Attributes | Friends | List of all members
TVertex Class Reference

#include <Vertex.h>

Collaboration diagram for TVertex:
Collaboration graph
[legend]

Public Member Functions

 TVertex (double initX, double initY, double initZ)
 
 TVertex (double initX, double initY)
 
void SetCoords (double initX, double initY, double initZ)
 
void SetCoords (double initX, double initY)
 
double GetX () const
 
double GetY () const
 
double GetZ () const
 
void GetCoords (double &x, double &y, double &z) const
 
void GetCoords (double &x, double &y) const
 
void SetClipBoard (int value)
 
int GetClipBoard () const
 
void SetAsBoundVert ()
 
bool IsBoundVert () const
 
void SetVertexCells (int n_Cells, TBaseCell **cells)
 
void SetSubDomainInfo (int n_SubDomains, int *subDomain_Ranks, int *subDomainGlobalCellNo, int *subDomainLocVertNo)
 
void AddCrossNeib (int Neib_ID)
 
void SetAsSubDomainVert ()
 
bool IsSubDomainVert ()
 
void SetAsCrossVert ()
 
bool IsCrossVert ()
 
void GetCrossNeibs (int &n_VertCrossNeibs, int *&vertCrossNeibs)
 
void GetCrossNeibsInfo (int &N_NeibCells, int *&NeibCellRank, int *&GlobalNo, int *&LocVertNo)
 
void GetNeibs (int &n_Neibs, TBaseCell **&neighbs)
 
int GetNNeibs ()
 

Protected Attributes

double X
 
double Y
 
double Z
 
int ClipBoard
 
int N_Cells
 
TBaseCell ** Cells
 
bool SubDomainVert
 
bool CrossVert
 
int N_SubDomains
 
int * SubDomain_Ranks
 
int * SubDomainGlobalCellNo
 
int * SubDomainLocVertNo
 
int N_CrossNeibCells
 
bool BoundVert
 

Friends

std::ostream & operator<< (std::ostream &s, TVertex *v)
 

Detailed Description

a vertex in a grid

Constructor & Destructor Documentation

TVertex::TVertex ( double  initX,
double  initY,
double  initZ 
)

3D vertex

TVertex::TVertex ( double  initX,
double  initY 
)

2D vertex

Member Function Documentation

int TVertex::GetClipBoard ( ) const
inline

get value from ClipBoard

Here is the caller graph for this function:

void TVertex::GetCoords ( double &  x,
double &  y,
double &  z 
) const
inline

return all three coordinates

void TVertex::GetCoords ( double &  x,
double &  y 
) const
inline

return all two coordinates

double TVertex::GetX ( ) const
inline

return the x coordinate

Here is the caller graph for this function:

double TVertex::GetY ( ) const
inline

return the y coordinate

Here is the caller graph for this function:

double TVertex::GetZ ( ) const
inline

return the z coordinate (3D)

Here is the caller graph for this function:

void TVertex::SetClipBoard ( int  value)
inline

set value in ClipBoard

Here is the caller graph for this function:

void TVertex::SetCoords ( double  initX,
double  initY,
double  initZ 
)

set the coordinates in 3D

Here is the caller graph for this function:

void TVertex::SetCoords ( double  initX,
double  initY 
)

set the coordinate in 2D

void TVertex::SetSubDomainInfo ( int  n_SubDomains,
int *  subDomain_Ranks,
int *  subDomainGlobalCellNo,
int *  subDomainLocVertNo 
)

add only one cell (lowest index cell) from each subdomain as a Hallo cell for this vertex

void TVertex::SetVertexCells ( int  n_Cells,
TBaseCell **  cells 
)

Note ! this info only set for dependent cells !!!!!!

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
TVertex v 
)
friend

write some information of the vertex in stream s

Member Data Documentation

bool TVertex::BoundVert
protected

marking this vertex as Bound vertex

TBaseCell** TVertex::Cells
protected

cells Note ! this info only set for dependent cells !!!!!!!!!!

int TVertex::ClipBoard
protected

an integer for storing clipboard information

bool TVertex::CrossVert
protected

marking this vertex as cross vertex

int TVertex::N_Cells
protected

Number of 3D cells containing this cells Note !this info only set for dependent cells !!!!!!!

int TVertex::N_CrossNeibCells
protected

an integer which stores the number of Cross neib cells, which incident this vertex

int TVertex::N_SubDomains
protected

an integer which stores the number of ranks (SubDomains) contain this vertex

int* TVertex::SubDomain_Ranks
protected

an integer which stores the rank of SubDomains, which contain this vertex

int* TVertex::SubDomainGlobalCellNo
protected

list of neib cell Globalnumbers, which incident this vertex

int* TVertex::SubDomainLocVertNo
protected

list of neib cell local vert no

bool TVertex::SubDomainVert
protected

marking this vertex as subdomain vertex

double TVertex::X
protected

first coordinate

double TVertex::Y
protected

second coordinate

double TVertex::Z
protected

third coordinate (3D)


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