VarCoefStencil Class Reference

#include <VarCoefStencil.H>

List of all members.


Detailed Description

VoF-centered stencil.

This stencil is a fundamental tool for building eb applications by making the ability to cache stencil information. This object consists of a vector of VoFs and a vector of weights.

Public Member Functions

 VarCoefStencil ()
 ~VarCoefStencil ()
void clear ()
void add (const VolIndex &vof, const FaceIndex &coefloc, const Real &weight, int ivar)
int size () const
const VolIndexvof (int i) const
const FaceIndexcoefLoc (int i) const
const Realweight (int i) const
Realweight (int i)
const int & variable (int i) const
int & variable (int i)
VarCoefStenciloperator+= (const VarCoefStencil &a_vofsten)
void operator*= (const Real &scaling)
VarCoefStenciloperator= (const VarCoefStencil &a_vofsten)
 VarCoefStencil (const VarCoefStencil &a_vofstenin)
void setAllVariables (int a_var)

Protected Attributes

Vector< VolIndexvofs
 the VoFs
Vector< Realweights
 the weights
Vector< int > variables
Vector< FaceIndexcoefLocs
 Where the face-centered coefficients live.


Constructor & Destructor Documentation

VarCoefStencil::VarCoefStencil (  ) 

default constructor. makes empty vectors.

VarCoefStencil::~VarCoefStencil (  ) 

VarCoefStencil::VarCoefStencil ( const VarCoefStencil a_vofstenin  ) 


Member Function Documentation

void VarCoefStencil::clear (  ) 

void VarCoefStencil::add ( const VolIndex vof,
const FaceIndex coefloc,
const Real weight,
int  ivar 
)

add a VoF to the Stencil, with it's associated weight it is required that all VoFs are in the same EBIndexSpace If the vof is already in the stencil, add the weights.

int VarCoefStencil::size (  )  const [inline]

number of VoFs in the Stencil

inlines

References weights.

const VolIndex & VarCoefStencil::vof ( int  i  )  const [inline]

access a VoF

References vofs.

const FaceIndex & VarCoefStencil::coefLoc ( int  i  )  const [inline]

access a VoF

References coefLocs.

const Real & VarCoefStencil::weight ( int  i  )  const [inline]

access a weight

References weights.

Real & VarCoefStencil::weight ( int  i  )  [inline]

access a weight

References weights.

const int& VarCoefStencil::variable ( int  i  )  const

int& VarCoefStencil::variable ( int  i  ) 

VarCoefStencil& VarCoefStencil::operator+= ( const VarCoefStencil a_vofsten  ) 

add all faces and weights of inputs to this. If a vof is already in the stencil, add the weights. only addition is well-defined here as far as arithmatic operations are concerned.

void VarCoefStencil::operator*= ( const Real scaling  ) 

VarCoefStencil& VarCoefStencil::operator= ( const VarCoefStencil a_vofsten  ) 

void VarCoefStencil::setAllVariables ( int  a_var  )  [inline]

References Vector< T >::size(), variables, and vofs.


Member Data Documentation

the VoFs

Referenced by setAllVariables(), and vof().

the weights

Referenced by size(), and weight().

Referenced by setAllVariables().

Where the face-centered coefficients live.

Referenced by coefLoc().


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

Generated on Fri Apr 5 04:25:20 2019 for Chombo + EB by  doxygen 1.5.5