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

SAMRAI::pdat::FaceVariable< DIM, TYPE > Class Template Reference

#include <source/patchdata/face/FaceVariable.h>

Inheritance diagram for SAMRAI::pdat::FaceVariable< DIM, TYPE >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 FaceVariable (const string &name, int depth=1, const bool fine_boundary_represents_var=true)
virtual ~FaceVariable ()
bool fineBoundaryRepresentsVariable () const
bool dataLivesOnPatchBorder () const

Detailed Description

template<int DIM, class TYPE>
class SAMRAI::pdat::FaceVariable< DIM, TYPE >

Class FaceVariable<DIM> is a templated variable class used to define face-centered quantities on an AMR mesh. It is templated on the type of the underlying data (e.g., double, int, bool, etc.). Face variable data is associated with the faces (or sides) of cells. Face data is stored in DIM arrays, each of which holds values for faces having the same normal vector. For example, a three-dimensional face variable can be used to create face-centered data arrays over a box [l0:u0,l1:u1,l2:u2] that can be dimensioned as:
     [ l0 : u0+1 ,
       l1 : u1 ,
       l2 : u2 , d ]   ,

     [ l1 : u1+1 ,
       l2 : u2 ,
       l0 : u0 , d ]   ,

     [ l2 : u2+1 ,
       l0 : u0 ,
       l1 : u1 , d ]   ,

 * 
for the x, y, and z (or 0, 1, 2) face directions, respectively, and where d is the depth index (i.e., number of values at each face index location). Note that the array orderings are permuted so that the leading dimension corresponds to the face direction of array. One- and two- dimensional face variables define storage similarly. For more information on indexing and manipulating face patch data objects, see the classes FaceData<DIM> and FaceGeometry<DIM>.

IMPORTANT: The class SideVariable<DIM> and associated classes define the same storage as this face variable class, except that the indices are not permuted in the side data type.

See also:
pdat::FaceData

pdat::FaceDataFactory

pdat::FaceGeometry

hier::Variable


Constructor & Destructor Documentation

template<int DIM, class TYPE>
SAMRAI::pdat::FaceVariable< DIM, TYPE >::FaceVariable const string &  name,
int  depth = 1,
const bool  fine_boundary_represents_var = true
 

Create a face variable object having properties specified by the name, depth (i.e., number of data values at each index location), and coarse-fine interface representation. Default arguments are provided for the last two. The default depth is one. The fine boundary representation boolean value indicates which values (either coarse or fine) take precedence during coarsen and refine operations. The default state is that fine data values take precedence on coarse-fine interfaces.

template<int DIM, class TYPE>
SAMRAI::pdat::FaceVariable< DIM, TYPE >::~FaceVariable  )  [virtual]
 

Virtual destructor for face variable objects.


Member Function Documentation

template<int DIM, class TYPE>
bool SAMRAI::pdat::FaceVariable< DIM, TYPE >::fineBoundaryRepresentsVariable  )  const [inline, virtual]
 

Return a boolean value indicating how data for the face variable will be treated on coarse-fine interfaces. True (default case set in constructor) indicates that fine patch values take precedence. False indicates that values on fine patches at a coarse-fine interface should be interpolated from coarser level values.

Implements SAMRAI::hier::Variable< DIM >.

template<int DIM, class TYPE>
bool SAMRAI::pdat::FaceVariable< DIM, TYPE >::dataLivesOnPatchBorder  )  const [inline, virtual]
 

Return true since the face data index space extends beyond the interior of patches. That is, face data lives on patch borders.

Implements SAMRAI::hier::Variable< DIM >.


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