PhyStar  v0.0.0 thu24
compgeo::CartBoxZone< 2 > Struct Reference

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

#include <CartBoxZone.hpp>

Inheritance diagram for compgeo::CartBoxZone< 2 >:
Collaboration diagram for compgeo::CartBoxZone< 2 >:

Public Member Functions

 CartBoxZone ()
 default Construct a new Hex Zone object More...
 
 CartBoxZone (const int rk, std::vector< Point< 2 >> points)
 Construct a new Hex Zone object by point vector list. More...
 
 CartBoxZone (const int rk, std::vector< std::vector< double >> points)
 Construct a new Hex Zone object by point vector list. More...
 
 CartBoxZone (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 Member Functions inherited from compgeo::ZoneBase
virtual bool IsInVirtualZone (const double p[], const double r)=0
 
virtual bool IsInZoneWithExtendWidth (const double p[], const double r[])=0
 

Public Attributes

Point< 2 > node [4]
 
- Public Attributes inherited from compgeo::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

◆ CartBoxZone() [1/4]

default Construct a new Hex Zone object

◆ CartBoxZone() [2/4]

compgeo::CartBoxZone< 2 >::CartBoxZone ( 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 compgeo::ZoneBase::rank.

◆ CartBoxZone() [3/4]

compgeo::CartBoxZone< 2 >::CartBoxZone ( 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 compgeo::ZoneBase::rank.

◆ CartBoxZone() [4/4]

compgeo::CartBoxZone< 2 >::CartBoxZone ( const int  rk)
inline

Construct a new Hex Zone object.

Parameters
rkwhich rank, when use mpi

References compgeo::ZoneBase::rank.

Member Function Documentation

◆ GetNodeSize()

int compgeo::CartBoxZone< 2 >::GetNodeSize ( )
inline

Get the size of nodes.

Returns
int

◆ IsInPlane()

bool compgeo::CartBoxZone< 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 compgeo::Point< N_dim >::pos.

◆ IsInZone()

virtual bool compgeo::CartBoxZone< 2 >::IsInZone ( const double  p[])
inlinevirtual

judge whether point is inside or outside of zone

Parameters
pposition
Returns
true inside
false outside

Implements compgeo::ZoneBase.

◆ SetNode()

void compgeo::CartBoxZone< 2 >::SetNode ( int  i,
Point< 2 > &  point 
)
inline

Set the Node.

Parameters
iwhich node
point

◆ SetNodes() [1/2]

void compgeo::CartBoxZone< 2 >::SetNodes ( std::vector< Point< 2 >>  points)
inline

Set the Nodes by vector list.

Parameters
iwhich node
point

◆ SetNodes() [2/2]

void compgeo::CartBoxZone< 2 >::SetNodes ( std::vector< std::vector< double >>  points)
inline

Set the Nodes by vector list.

Parameters
iwhich node
point

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

Here is the call graph for this function:

Member Data Documentation

◆ node

Point<2> compgeo::CartBoxZone< 2 >::node[4]

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