|
IBAMR
IBAMR version 0.19.
|
The BoundaryNode struct holds data and methods to define a boundary node (i.e. the first node inside the boundary) on an irregular boundary. An array of boundary nodes is maintained by each "CutCell" object, if the appropriate functions are called to enable boundary node storage. For more information, see the CutCell class documentation. More...
#include <BoundaryNode.h>
Static Public Member Functions | |
| static void | setOnBoundaryThreshold (const double th) |
Private Member Functions | |
| void | initializeBoundaryNodeData () |
| void | copyBoundaryNodeData (const appu::BoundaryNode< DIM > &bdry_node) |
Private Attributes | |
| pdat::NodeIndex< DIM > | d_index |
| int | d_num_nearest_neighbors |
| int | d_num_outside_neighbors |
| tbox::Array< pdat::NodeIndex< DIM > > | d_nearest_neighbors |
| double | d_closest_boundary_point [DIM] |
| double | d_distance_to_boundary |
| double | d_normal_to_boundary [DIM] |
| bool | d_on_boundary |
Static Private Attributes | |
| static double | s_on_boundary_threshold |
Information maintained by the struct includes the following:
- INDEX - node index (i,j,k) of the boundary node
- NEAREST_NBR[DIM] - indices (i,j,k) of the nearest neighbor
nodes that are OUTSIDE the boundary.
| SAMRAI::appu::BoundaryNode< DIM >::BoundaryNode | ( | ) |
Create a new `‘empty’' BoundaryNode.
| SAMRAI::appu::BoundaryNode< DIM >::BoundaryNode | ( | const pdat::NodeIndex< DIM > & | in | ) |
Create a new cut cell with specified node index.
| SAMRAI::appu::BoundaryNode< DIM >::BoundaryNode | ( | const appu::BoundaryNode< DIM > & | bdry_node | ) |
The copy constructor copies the data of the argument cell.
| SAMRAI::appu::BoundaryNode< DIM >::~BoundaryNode | ( | ) |
The destructor for BoundaryNode.
|
static |
Set threshold for determining whether a node is on the boundary (if not set, the default is 1.e-6).
| BoundaryNode& SAMRAI::appu::BoundaryNode< DIM >::operator= | ( | const appu::BoundaryNode< DIM > & | bdry_node | ) |
The assignment operator copies the data of the argument cell.
| pdat::NodeIndex<DIM> SAMRAI::appu::BoundaryNode< DIM >::getIndex | ( | ) | const |
Returns the index (i,j,k) of the node.
| bool SAMRAI::appu::BoundaryNode< DIM >::getNodeOnBoundary | ( | ) | const |
Returns whether the boundary node is on the embedded boundary.
| int SAMRAI::appu::BoundaryNode< DIM >::getNumberOfNearestNeighborNodes | ( | ) | const |
Return the number of nearest neighbor nodes.
| int SAMRAI::appu::BoundaryNode< DIM >::getNumberOfOutsideNeighborNodes | ( | ) | const |
Return the number of outside neighbor nodes.
| tbox::Array<pdat::NodeIndex<DIM> > SAMRAI::appu::BoundaryNode< DIM >::getNearestNeighborNodes | ( | ) | const |
Returns the array of nearest neighbor nodes.
| pdat::NodeIndex<DIM> SAMRAI::appu::BoundaryNode< DIM >::getNearestNeighborNode | ( | const int | i | ) | const |
Returns the designated neighbor node.
| const double* SAMRAI::appu::BoundaryNode< DIM >::getClosestBoundaryPoint | ( | ) | const |
Returns the location of the closest point on the boundary to the node.
| double SAMRAI::appu::BoundaryNode< DIM >::getClosestBoundaryPoint | ( | const int | i | ) | const |
Returns the ith element of the location of the closest point on the boundary to the node.
| double SAMRAI::appu::BoundaryNode< DIM >::getDistanceToBoundary | ( | ) | const |
Returns the distance to the embedded boundary.
| const double* SAMRAI::appu::BoundaryNode< DIM >::getNormalToBoundary | ( | ) | const |
Returns the normal vector to the boundary.
| double SAMRAI::appu::BoundaryNode< DIM >::getNormalToBoundary | ( | const int | i | ) | const |
Returns the ith component of the normal vector to the boundary.
| void SAMRAI::appu::BoundaryNode< DIM >::setNodeOnBoundary | ( | ) |
Returns whether the boundary node is on the embedded boundary.
| void SAMRAI::appu::BoundaryNode< DIM >::setNumOutsideNeighborNodes | ( | tbox::Pointer< pdat::NodeData< DIM, int > > & | node_flag, |
| hier::Index< DIM > & | cut_cell_index | ||
| ) |
Set the number of outside neighbor nodes for the boundary node.
| void SAMRAI::appu::BoundaryNode< DIM >::setNearestNeighborNode | ( | pdat::NodeIndex< DIM > & | index | ) |
Sets the nearest neighbor node.
| void SAMRAI::appu::BoundaryNode< DIM >::setNearestNeighborNodes | ( | tbox::Pointer< pdat::NodeData< DIM, int > > & | node_flag, |
| hier::Index< DIM > & | cut_cell_index | ||
| ) |
Set the nearest neighbor nodes for the boundary node.
| void SAMRAI::appu::BoundaryNode< DIM >::setClosestBoundaryPoint | ( | const double * | location | ) |
Sets the location of the closest point on the b oundary to the node.
| void SAMRAI::appu::BoundaryNode< DIM >::setClosestBoundaryPoint | ( | const double | location, |
| const int | i | ||
| ) |
Sets the ith element of the location of the closest point on the boundary to the node.
| void SAMRAI::appu::BoundaryNode< DIM >::setDistanceToBoundary | ( | tbox::Pointer< hier::Patch< DIM > > & | patch | ) |
Sets the distance to the embedded boundary. If the patch is provided as an argument, and the distance will be computed. Otherwise, it will be set to the supplied value.
| void SAMRAI::appu::BoundaryNode< DIM >::setDistanceToBoundary | ( | const double | dist | ) |
| void SAMRAI::appu::BoundaryNode< DIM >::setNormalToBoundary | ( | tbox::Pointer< hier::Patch< DIM > > & | patch | ) |
Sets the normal vector to the embedded boundary. If the patch is provided as an argument, and the normal will be computed. Otherwise, it will be set to the supplied value.
| void SAMRAI::appu::BoundaryNode< DIM >::setNormalToBoundary | ( | const double * | normal | ) |
| void SAMRAI::appu::BoundaryNode< DIM >::setNormalToBoundary | ( | const double | normal, |
| const int | i | ||
| ) |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.17