SU2
Public Member Functions | List of all members
CVertexMPI Class Reference

Class for vertex element definition. This kind of element is used in the parallelization stuff. More...

#include <primal_grid_structure.hpp>

Inheritance diagram for CVertexMPI:
CPrimalGrid

Public Member Functions

 CVertexMPI (unsigned long val_point, unsigned short val_nDim)
 Constructor using the nodes and index. More...
 
 ~CVertexMPI (void)
 Destructor of the class.
 
unsigned long GetNode (unsigned short val_node)
 Get the nodes shared by the line. More...
 
void SetNode (unsigned short val_node, unsigned long val_point)
 Set the point associated at a node. More...
 
unsigned short GetnNodes (void)
 Get the number of nodes of an element. More...
 
unsigned short GetVTK_Type (void)
 Get the type of the element using VTK nomenclature. More...
 
unsigned short GetRotation_Type (void)
 Get the type of rotation/traslation that must be applied. More...
 
void SetRotation_Type (unsigned short val_rotation_type)
 Set the type of rotation/traslation that must be applied. More...
 
void Change_Orientation (void)
 This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes).
 
unsigned short GetnNeighbor_Elements (void)
 This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes).
 
unsigned short GetnNeighbor_Nodes (unsigned short val_node)
 This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes).
 
unsigned short GetnFaces (void)
 This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes).
 
unsigned short GetnNodesFace (unsigned short val_face)
 This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes).
 
unsigned short GetMaxNodesFace (void)
 This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes).
 
unsigned short GetFaces (unsigned short val_face, unsigned short val_index)
 This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes).
 
unsigned short GetNeighbor_Nodes (unsigned short val_node, unsigned short val_index)
 This function does nothing (it comes from a pure virtual function, that implies the definition of the function in all the derived classes).
 
- Public Member Functions inherited from CPrimalGrid
 CPrimalGrid (void)
 Constructor of the class.
 
 CPrimalGrid (unsigned short val_nNodes, unsigned short val_nFaces, unsigned short val_VTK_Type)
 
virtual ~CPrimalGrid (void)
 Destructor of the class.
 
long GetNeighbor_Elements (unsigned short val_face)
 Get the elements that surround an element. More...
 
void SetNeighbor_Elements (unsigned long val_elem, unsigned short val_face)
 Set the elements that surround an element. More...
 
void SetCoord_CG (su2double **val_coord)
 Set the center of gravity of an element (including edges). More...
 
su2double GetCG (unsigned short val_dim)
 Get the center of gravity of an element (including edges). More...
 
void SetVolume (su2double val_volume)
 Set the center of gravity of an element (including edges). More...
 
su2double GetVolume (void)
 Get the center of gravity of an element (including edges). More...
 
su2double GetFaceCG (unsigned short val_face, unsigned short val_dim)
 Get the CG of a face of an element. More...
 
void GetAllNeighbor_Elements (void)
 Get all the neighbors of an element. More...
 
void SetDivide (bool val_divide)
 Set that an element must be divided in the adaptation stage. More...
 
bool GetDivide (void)
 Get if an element must be divided in the adaptation stage. More...
 
unsigned long GetGlobalIndex (void)
 Get the element global index in a parallel computation. More...
 
void SetGlobalIndex (unsigned long val_globalindex)
 Set the global index for an element in a parallel computation. More...
 
virtual void SetDomainElement (unsigned long val_domainelement)
 A virtual member. More...
 
virtual unsigned long GetDomainElement (void)
 A virtual member. More...
 

Additional Inherited Members

- Protected Attributes inherited from CPrimalGrid
unsigned long * Nodes
 Vector to store the global nodes of an element.
 
unsigned long GlobalIndex
 The global index of an element.
 
long * Neighbor_Elements
 Vector to store the elements surronding an element.
 
su2double * Coord_CG
 Coordinates of the center-of-gravity of the element.
 
su2double ** Coord_FaceElems_CG
 Coordinates of the center-of-gravity of the face of the elements.
 
unsigned long DomainElement
 Only for boundaries, in this variable the 3D elements which correspond with a boundary element is stored.
 
bool Divide
 Marker used to know if we are going to divide this element in the adaptation proccess.
 
su2double Volume
 Volume of the element.
 
- Static Protected Attributes inherited from CPrimalGrid
static unsigned short nDim
 Dimension of the element (2D or 3D) useful for triangles, quadrilateral and edges.
 

Detailed Description

Class for vertex element definition. This kind of element is used in the parallelization stuff.

Author
F. Palacios
Version
5.0.0 "Raven"

Constructor & Destructor Documentation

§ CVertexMPI()

CVertexMPI::CVertexMPI ( unsigned long  val_point,
unsigned short  val_nDim 
)

Constructor using the nodes and index.

Parameters
[in]val_point- Index of the 1st triangle point read from the grid file.
[in]val_nDim- Number of dimension of the problem (2D or 3D).

Member Function Documentation

§ GetnNodes()

unsigned short CVertexMPI::GetnNodes ( void  )
inlinevirtual

Get the number of nodes of an element.

Returns
Number of nodes that composes an element.

Implements CPrimalGrid.

§ GetNode()

unsigned long CVertexMPI::GetNode ( unsigned short  val_node)
inlinevirtual

Get the nodes shared by the line.

Parameters
[in]val_node- Local (to the line) index of the node (a line has 2 nodes).
Returns
Global index of the line node.

Implements CPrimalGrid.

§ GetRotation_Type()

unsigned short CVertexMPI::GetRotation_Type ( void  )
inlinevirtual

Get the type of rotation/traslation that must be applied.

Returns
Type of the element using VTK nomenclature.

Reimplemented from CPrimalGrid.

§ GetVTK_Type()

unsigned short CVertexMPI::GetVTK_Type ( void  )
inlinevirtual

Get the type of the element using VTK nomenclature.

Returns
Type of the element using VTK nomenclature.

Implements CPrimalGrid.

§ SetNode()

void CVertexMPI::SetNode ( unsigned short  val_node,
unsigned long  val_point 
)
inlinevirtual

Set the point associated at a node.

Parameters
[in]val_node- Local index of a node.
[in]val_point- Point associated to the node.

Reimplemented from CPrimalGrid.

§ SetRotation_Type()

void CVertexMPI::SetRotation_Type ( unsigned short  val_rotation_type)
inlinevirtual

Set the type of rotation/traslation that must be applied.

Parameters
[in]val_rotation_type- Kind of rotation/traslation that must be applied.

Reimplemented from CPrimalGrid.


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