Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SAMRAI::appu::BoundaryNode< DIM > Class Template Reference

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 <source/apputils/embedded_boundary/BoundaryNode.h>

List of all members.

Public Member Functions

 BoundaryNode ()
 BoundaryNode (const pdat::NodeIndex< DIM > &in)
 BoundaryNode (const appu::BoundaryNode< DIM > &bdry_node)
BoundaryNodeoperator= (const appu::BoundaryNode< DIM > &bdry_node)
 ~BoundaryNode ()
pdat::NodeIndex< DIM > getIndex () const
bool getNodeOnBoundary () const
int getNumberNearestNeighborNodes () const
int getNumberOutsideNeighborNodes () const
tbox::Array< pdat::NodeIndex<
DIM > > 
getNearestNeighborNodes () const
pdat::NodeIndex< DIM > getNearestNeighborNode (const int i) const
const double * getClosestBoundaryPoint () const
double getClosestBoundaryPoint (const int i) const
double getDistanceToBoundary () const
const double * getNormalToBoundary () const
double getNormalToBoundary (const int i) const
void setNodeOnBoundary ()
void setNumOutsideNeighborNodes (tbox::Pointer< pdat::NodeData< DIM, int > > &node_flag, hier::Index< DIM > &cut_cell_index)
void setNearestNeighborNode (pdat::NodeIndex< DIM > &index)
void setNearestNeighborNodes (tbox::Pointer< pdat::NodeData< DIM, int > > &node_flag, hier::Index< DIM > &cut_cell_index)
void setClosestBoundaryPoint (const double *location)
void setClosestBoundaryPoint (const double location, const int i)
void setDistanceToBoundary (tbox::Pointer< hier::Patch< DIM > > &patch)
void setDistanceToBoundary (const double dist)
void setNormalToBoundary (tbox::Pointer< hier::Patch< DIM > > &patch)
void setNormalToBoundary (const double *normal)
void setNormalToBoundary (const double normal, const int i)

Static Public Member Functions

static void setOnBoundaryThreshold (const double th)


Detailed Description

template<int DIM>
class SAMRAI::appu::BoundaryNode< DIM >

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.

Information maintained by the struct includes the following:

See also:
appu::CutCell


Constructor & Destructor Documentation

template<int DIM>
SAMRAI::appu::BoundaryNode< DIM >::BoundaryNode  ) 
 

Create a new ``empty'' BoundaryNode.

template<int DIM>
SAMRAI::appu::BoundaryNode< DIM >::BoundaryNode const pdat::NodeIndex< DIM > &  in  ) 
 

Create a new cut cell with specified node index.

template<int DIM>
SAMRAI::appu::BoundaryNode< DIM >::BoundaryNode const appu::BoundaryNode< DIM > &  bdry_node  ) 
 

The copy constructor copies the data of the argument cell.

template<int DIM>
SAMRAI::appu::BoundaryNode< DIM >::~BoundaryNode  ) 
 

The destructor for BoundaryNode.


Member Function Documentation

template<int DIM>
void SAMRAI::appu::BoundaryNode< DIM >::setOnBoundaryThreshold const double  th  )  [static]
 

Set threshold for determining whether a node is on the boundary (if not set, the default is 1.e-6).

template<int DIM>
BoundaryNode< DIM > & SAMRAI::appu::BoundaryNode< DIM >::operator= const appu::BoundaryNode< DIM > &  bdry_node  ) 
 

The assignment operator copies the data of the argument cell.

template<int DIM>
pdat::NodeIndex< DIM > SAMRAI::appu::BoundaryNode< DIM >::getIndex  )  const
 

Returns the index (i,j,k) of the node.

template<int DIM>
bool SAMRAI::appu::BoundaryNode< DIM >::getNodeOnBoundary  )  const
 

Returns whether the boundary node is on the embedded boundary.

template<int DIM>
int SAMRAI::appu::BoundaryNode< DIM >::getNumberNearestNeighborNodes  )  const
 

Return the number of nearest neighbor nodes.

template<int DIM>
int SAMRAI::appu::BoundaryNode< DIM >::getNumberOutsideNeighborNodes  )  const
 

Return the number of outside neighbor nodes.

template<int DIM>
tbox::Array< pdat::NodeIndex< DIM > > SAMRAI::appu::BoundaryNode< DIM >::getNearestNeighborNodes  )  const
 

Returns the array of nearest neighbor nodes.

template<int DIM>
pdat::NodeIndex< DIM > SAMRAI::appu::BoundaryNode< DIM >::getNearestNeighborNode const int  i  )  const
 

Returns the designated neighbor node.

template<int DIM>
const double * SAMRAI::appu::BoundaryNode< DIM >::getClosestBoundaryPoint  )  const
 

Returns the location of the closest point on the boundary to the node.

template<int DIM>
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.

template<int DIM>
double SAMRAI::appu::BoundaryNode< DIM >::getDistanceToBoundary  )  const
 

Returns the distance to the embedded boundary.

template<int DIM>
const double * SAMRAI::appu::BoundaryNode< DIM >::getNormalToBoundary  )  const
 

Returns the normal vector to the boundary.

template<int DIM>
double SAMRAI::appu::BoundaryNode< DIM >::getNormalToBoundary const int  i  )  const
 

Returns the ith component of the normal vector to the boundary.

template<int DIM>
void SAMRAI::appu::BoundaryNode< DIM >::setNodeOnBoundary  ) 
 

Returns whether the boundary node is on the embedded boundary.

template<int DIM>
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.

template<int DIM>
void SAMRAI::appu::BoundaryNode< DIM >::setNearestNeighborNode pdat::NodeIndex< DIM > &  index  ) 
 

Sets the nearest neighbor node.

template<int DIM>
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.

template<int DIM>
void SAMRAI::appu::BoundaryNode< DIM >::setClosestBoundaryPoint const double *  location  ) 
 

Sets the location of the closest point on the b oundary to the node.

template<int DIM>
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.

template<int DIM>
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.

template<int DIM>
void SAMRAI::appu::BoundaryNode< DIM >::setDistanceToBoundary const double  dist  ) 
 

template<int DIM>
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.

template<int DIM>
void SAMRAI::appu::BoundaryNode< DIM >::setNormalToBoundary const double *  normal  ) 
 

template<int DIM>
void SAMRAI::appu::BoundaryNode< DIM >::setNormalToBoundary const double  normal,
const int  i
 


The documentation for this class was generated from the following files:
Generated on Fri Dec 2 11:23:15 2005 for SAMRAI by  doxygen 1.4.2