PhyStar  v0.0.0 thu24
gsmpi::HexZone< 2 > Struct Reference

Hex(quad) Zone for 2-dimension. More...

#include <gsmpicartzone.hpp>

Inheritance diagram for gsmpi::HexZone< 2 >:
Collaboration diagram for gsmpi::HexZone< 2 >:

Public Member Functions

 HexZone ()
 default Construct a new Hex Zone object More...
 
 HexZone (const int rk, std::vector< Point< 2 >> points)
 Construct a new Hex Zone object by point vector list. More...
 
 HexZone (const int rk, std::vector< std::vector< double >> points)
 Construct a new Hex Zone object by point vector list. More...
 
 HexZone (const int rk)
 Construct a new Hex Zone object. More...
 
void SetNode (int i, Point< 2 > &point)
 Set the Node. More...
 
void SetNodes (std::vector< Point< 2 >> points)
 Set the Nodes by vector list. More...
 
void SetNodes (std::vector< std::vector< double >> points)
 Set the Nodes by vector list. More...
 
int GetNodeSize ()
 Get the size of nodes. More...
 
bool IsInPlane (int ind0, int ind1, const double p[])
 judge which side of edges the points locate More...
 
virtual bool IsInZone (const double p[])
 judge whether point is inside or outside of zone More...
 

Public Attributes

Point< 2 > node [4]
 
- Public Attributes inherited from gsmpi::ZoneBase
int rank
 

Detailed Description

Hex(quad) Zone for 2-dimension.

  • the order of the vertices (nodes) of a quad plane
  3_________________2
  |                 |
  |                 |
  |                 |
  |_________________|
  0                 1
Template Parameters

Constructor & Destructor Documentation

◆ HexZone() [1/4]

gsmpi::HexZone< 2 >::HexZone ( )
inline

default Construct a new Hex Zone object

◆ HexZone() [2/4]

gsmpi::HexZone< 2 >::HexZone ( const int  rk,
std::vector< Point< 2 >>  points 
)
inline

Construct a new Hex Zone object by point vector list.

Parameters
rkwhich rank, when use mpi
points

References gsmpi::ZoneBase::rank.

◆ HexZone() [3/4]

gsmpi::HexZone< 2 >::HexZone ( const int  rk,
std::vector< std::vector< double >>  points 
)
inline

Construct a new Hex Zone object by point vector list.

Parameters
rkwhich rank, when use mpi
points

References gsmpi::ZoneBase::rank.

◆ HexZone() [4/4]

gsmpi::HexZone< 2 >::HexZone ( const int  rk)
inline

Construct a new Hex Zone object.

Parameters
rkwhich rank, when use mpi

References gsmpi::ZoneBase::rank.

Member Function Documentation

◆ GetNodeSize()

int gsmpi::HexZone< 2 >::GetNodeSize ( )
inline

Get the size of nodes.

Returns
int

◆ IsInPlane()

bool gsmpi::HexZone< 2 >::IsInPlane ( int  ind0,
int  ind1,
const double  p[] 
)
inline

judge which side of edges the points locate

Parameters
ind0node
ind1
p
Returns
true
false

References gsmpi::Point< N_dim >::pos.

◆ IsInZone()

virtual bool gsmpi::HexZone< 2 >::IsInZone ( const double  p[])
inlinevirtual

judge whether point is inside or outside of zone

Parameters
pposition
Returns
true inside
false outside

Implements gsmpi::ZoneBase.

◆ SetNode()

void gsmpi::HexZone< 2 >::SetNode ( int  i,
Point< 2 > &  point 
)
inline

Set the Node.

Parameters
iwhich node
point

◆ SetNodes() [1/2]

void gsmpi::HexZone< 2 >::SetNodes ( std::vector< Point< 2 >>  points)
inline

Set the Nodes by vector list.

Parameters
iwhich node
point

◆ SetNodes() [2/2]

void gsmpi::HexZone< 2 >::SetNodes ( std::vector< std::vector< double >>  points)
inline

Set the Nodes by vector list.

Parameters
iwhich node
point

References gsmpi::Point< N_dim >::SetPos().

Here is the call graph for this function:

Member Data Documentation

◆ node

Point<2> gsmpi::HexZone< 2 >::node[4]

The documentation for this struct was generated from the following file: