HexZone 3-dimension.
More...
#include <gsmpicartzone.hpp>
|
| HexZone () |
| default Construct a new Hex Zone object More...
|
|
| HexZone (const int rk, std::vector< Point< 3 >> points) |
| Construct a new Hex Zone by points vector list. More...
|
|
| HexZone (const int rk, std::vector< std::vector< double >> points) |
| Construct a new Hex Zone object by points vector list. More...
|
|
| HexZone (const int rk) |
| Construct a new Hex Zone object. More...
|
|
void | SetNode (int i, Point< 3 > &point) |
| Set the Node. More...
|
|
void | SetNodes (std::vector< Point< 3 >> points) |
| Set the Nodes by a point vector list. More...
|
|
void | SetNodes (std::vector< std::vector< double >> points) |
| Set the Nodes by a point vector list. More...
|
|
int | GetNodeSize () |
| Get the size of nodes. More...
|
|
bool | IsInPlane (int ind0, int ind1, int ind2, const double p[]) |
| judge whether the point is inside or outside of plane? More...
|
|
virtual bool | IsInZone (const double p[]) |
| judge whether the point is inside or outside of the zone More...
|
|
◆ HexZone() [1/4]
default Construct a new Hex Zone object
◆ HexZone() [2/4]
Construct a new Hex Zone by points vector list.
- Parameters
-
rk | which rank, when use mpi |
points | |
References gsmpi::ZoneBase::rank.
◆ HexZone() [3/4]
Construct a new Hex Zone object by points vector list.
- Parameters
-
rk | which rank, when use mpi |
points | |
References gsmpi::ZoneBase::rank.
◆ HexZone() [4/4]
◆ GetNodeSize()
Get the size of nodes.
- Returns
- int
◆ IsInPlane()
bool gsmpi::HexZone< 3 >::IsInPlane |
( |
int |
ind0, |
|
|
int |
ind1, |
|
|
int |
ind2, |
|
|
const double |
p[] |
|
) |
| |
|
inline |
judge whether the point is inside or outside of plane?
schematic ind2 3_________________2 | |
0 1 ind0 ind1
V0 = nodes(ind1)- nodes(ind0); V1 = nodes(ind2)- nodes(ind0); P = nodes(p) - nodes(ind0) n = V0 x V1 (cross product) if p \cdot n >0, inside if p \cdot n <0, outside
- Parameters
-
ind0 | node number |
ind1 | node number |
ind2 | node number |
p | position of points |
- Returns
- true inside
-
false outside
References gsmpi::Point< N_dim >::pos.
◆ IsInZone()
judge whether the point is inside or outside of the zone
- Parameters
-
- Returns
- true inside of the zone
-
false outside of the zone
Implements gsmpi::ZoneBase.
◆ SetNode()
◆ SetNodes() [1/2]
Set the Nodes by a point vector list.
- Parameters
-
◆ SetNodes() [2/2]
void gsmpi::HexZone< 3 >::SetNodes |
( |
std::vector< std::vector< double >> |
points | ) |
|
|
inline |
◆ node
The documentation for this struct was generated from the following file: