IBAMR  IBAMR version 0.19.
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SAMRAI::pdat::OuterfaceVariable< DIM, TYPE > Class Template Reference

Class OuterfaceVariable<DIM> is a templated variable class used to define face-centered data quantities only on patch boundaries. It is a subclass of hier::Variable and is templated on the type of the underlying data (e.g., double, int, bool, etc.). More...

#include <OuterfaceVariable.h>

Inheritance diagram for SAMRAI::pdat::OuterfaceVariable< DIM, TYPE >:
Inheritance graph
[legend]

Public Member Functions

 OuterfaceVariable (const std::string &name, int depth=1)
 Create an outerface variable object having properties specified by the name and depth (i.e., number of data values at each index location). The default depth is one. More...
 
virtual ~OuterfaceVariable ()
 Virtual destructor for outerface variable objects. More...
 
bool fineBoundaryRepresentsVariable () const
 Return a boolean true value indicating that fine patch values take precedence on coarse-fine interfaces. More...
 
bool dataLivesOnPatchBorder () const
 Return true indicating that outerface data exists on the patch boundary. More...
 
int getInstanceIdentifier () const
 
const std::string & getName () const
 
void setPatchDataFactory (tbox::Pointer< PatchDataFactory< DIM > > factory)
 
tbox::Pointer< PatchDataFactory< DIM > > getPatchDataFactory () const
 

Static Public Member Functions

static int getCurrentMaximumInstanceNumber ()
 

Private Member Functions

 OuterfaceVariable (const OuterfaceVariable< DIM, TYPE > &)
 
void operator= (const OuterfaceVariable< DIM, TYPE > &)
 

Private Attributes

std::string d_name
 
int d_instance
 
tbox::Pointer< PatchDataFactory< DIM > > d_factory
 

Static Private Attributes

static int s_instance_counter
 

Detailed Description

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

Note that the data layout in the outerface data arrays matches the corresponding array sections provided by the face data implementation. See header file for the OuterfaceData<DIM> class for a more detailed description of the data layout.

IMPORTANT: The class OutersideVariable<DIM> and associated "outerside data" classes define the same storage as this outerface variable class, except that the individual array indices are not permuted in the outerside data type.

See also
pdat::FaceData
pdat::OuterfaceData
pdat::OuterfaceDataFactory
hier::Variable

Constructor & Destructor Documentation

◆ OuterfaceVariable() [1/2]

template<int DIM, class TYPE >
SAMRAI::pdat::OuterfaceVariable< DIM, TYPE >::OuterfaceVariable ( const std::string &  name,
int  depth = 1 
)

Note that The ghost cell width for all outerface data is currently fixed at zero; this may be changed in the future if needed.

◆ ~OuterfaceVariable()

template<int DIM, class TYPE >
virtual SAMRAI::pdat::OuterfaceVariable< DIM, TYPE >::~OuterfaceVariable ( )
virtual

◆ OuterfaceVariable() [2/2]

template<int DIM, class TYPE >
SAMRAI::pdat::OuterfaceVariable< DIM, TYPE >::OuterfaceVariable ( const OuterfaceVariable< DIM, TYPE > &  )
private

Member Function Documentation

◆ fineBoundaryRepresentsVariable()

template<int DIM, class TYPE >
bool SAMRAI::pdat::OuterfaceVariable< DIM, TYPE >::fineBoundaryRepresentsVariable ( ) const
inlinevirtual

◆ dataLivesOnPatchBorder()

template<int DIM, class TYPE >
bool SAMRAI::pdat::OuterfaceVariable< DIM, TYPE >::dataLivesOnPatchBorder ( ) const
inlinevirtual

◆ operator=()

template<int DIM, class TYPE >
void SAMRAI::pdat::OuterfaceVariable< DIM, TYPE >::operator= ( const OuterfaceVariable< DIM, TYPE > &  )
private

◆ getCurrentMaximumInstanceNumber()

template<int DIM>
static int SAMRAI::hier::Variable< DIM >::getCurrentMaximumInstanceNumber ( )
staticinherited

Return the current maximum instance number over all variable objects. The instance identifier returned from each variable objhect is guaranteed to be between 0 and this number minus one. Note that this number changes as new variable instances are created.

◆ getInstanceIdentifier()

template<int DIM>
int SAMRAI::hier::Variable< DIM >::getInstanceIdentifier ( ) const
inherited

Return the instance identifier for this particular variable object. The instance identifiers are unique integers numbered starting from zero.

◆ getName()

template<int DIM>
const std::string& SAMRAI::hier::Variable< DIM >::getName ( ) const
inherited

Return the name assigned to this variable.

◆ setPatchDataFactory()

template<int DIM>
void SAMRAI::hier::Variable< DIM >::setPatchDataFactory ( tbox::Pointer< PatchDataFactory< DIM > >  factory)
inherited

Set the patch data factory object. Normally, the factory is set in the constructor, but this member function enables the factory to be changed later in the lifetime of the variable.

◆ getPatchDataFactory()

template<int DIM>
tbox::Pointer< PatchDataFactory<DIM> > SAMRAI::hier::Variable< DIM >::getPatchDataFactory ( ) const
inherited

Return a non-const pointer to a patch data factory that will be used to instantiate instances of this variable on the patches. The factory returned will have been set by the variable subclasses.

Member Data Documentation

◆ d_name

template<int DIM>
std::string SAMRAI::hier::Variable< DIM >::d_name
privateinherited

◆ d_instance

template<int DIM>
int SAMRAI::hier::Variable< DIM >::d_instance
privateinherited

◆ d_factory

template<int DIM>
tbox::Pointer< PatchDataFactory<DIM> > SAMRAI::hier::Variable< DIM >::d_factory
privateinherited

◆ s_instance_counter

template<int DIM>
int SAMRAI::hier::Variable< DIM >::s_instance_counter
staticprivateinherited

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