Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

EBArith Class Reference

#include <EBArith.H>

List of all members.

Static Public Methods

bool getAdjacentFace (FaceIndex &a_adjacentFace, const FaceIndex &a_face, const EBISBox &a_ebisBox, const Box &a_domain, const int &a_idir, const Side::LoHiSide &a_side)
void computeGradFluxStencil (VoFStencil &a_thisStencil, const FaceIndex &a_thisFace, const EBISBox &a_ebisBox, const Box &a_domain, const int &a_dir)
void computeInterpStencil (FaceStencil &a_thisStencil, const FaceIndex &a_thisFace, const EBISBox &a_ebisBox, const Box &a_domain, const int &a_dir)
void volWeightedSum (Real &norm, Real &volume, const EBCellFAB &a_src, const Box &a_region, const EBISBox &a_ebisBox, const int &comp, const int &p, EBNormType::NormMode=EBNormType::OverBoth)
Real norm (const BoxLayoutData< EBCellFAB > &a_dataOne, const BoxLayout &a_layout, const EBISLayout &a_ebisl, const int &comp, const int &p, EBNormType::NormMode=EBNormType::OverBoth)
Real norm (Real &volume, const BoxLayoutData< EBCellFAB > &a_dataOne, const BoxLayout &a_layout, const EBISLayout &a_ebisl, const int &comp, const int &p, EBNormType::NormMode=EBNormType::OverBoth)
Real norm (const EBCellFAB &a_dataOne, const Box &a_grid, const EBISBox &a_ebisl, const int &a_comp, const int &a_p, EBNormType::NormMode=EBNormType::OverBoth)
Real norm (Real &volume, const EBCellFAB &a_dataOne, const Box &a_grid, const EBISBox &a_ebisl, const int &a_comp, const int &a_p, EBNormType::NormMode=EBNormType::OverBoth)
void volWeightedSum (Real &sum, Real &volume, const BoxLayoutData< EBCellFAB > &a_dataOne, const BoxLayout &a_layout, const EBISLayout &a_ebisl, const int &comp, const int &p, EBNormType::NormMode=EBNormType::OverBoth)
Real dotProduct (const BoxLayoutData< EBCellFAB > &a_dataOne, const BoxLayoutData< EBCellFAB > &a_dataTwo, const BoxLayout &a_layout, const EBISLayout &a_ebisl, const int &a_comp)
Real dotProduct (const EBCellFAB &a_dataOne, const EBCellFAB &a_dataTwo, const Box &a_layout, const EBISBox &a_ebisBox, const int &a_comp)
bool monotonePathVoFToCellVoF (VolIndex &a_vof2, const VolIndex &a_vof1, const IntVect &a_cell2, const EBISBox &a_ebisBox)
void getAllVoFsInMonotonePath (Vector< VolIndex > &a_vofs, const IntVect &a_timesMoved, const IntVect &a_pathSign, const VolIndex &a_vof, const EBISBox &a_ebisBox, const int &a_redistRad)


Detailed Description

class to encapsulate the common arithmatic operations for ebfabs


Member Function Documentation

void EBArith::computeGradFluxStencil VoFStencil   a_thisStencil,
const FaceIndex   a_thisFace,
const EBISBox   a_ebisBox,
const Box   a_domain,
const int &    a_dir
[static]
 

compute a stencil for one of our fancy interpolated gradients.

void EBArith::computeInterpStencil FaceStencil   a_thisStencil,
const FaceIndex   a_thisFace,
const EBISBox   a_ebisBox,
const Box   a_domain,
const int &    a_dir
[static]
 

compute a stencil for one of our fancy interpolated fluxes.

Real EBArith::dotProduct const EBCellFAB   a_dataOne,
const EBCellFAB   a_dataTwo,
const Box   a_layout,
const EBISBox   a_ebisBox,
const int &    a_comp
[static]
 

return the dotproduct of two ebfabs, Only uncovered regions count here.

Real EBArith::dotProduct const BoxLayoutData< EBCellFAB > &    a_dataOne,
const BoxLayoutData< EBCellFAB > &    a_dataTwo,
const BoxLayout   a_layout,
const EBISLayout   a_ebisl,
const int &    a_comp
[static]
 

return the dotproduct of two leveldatas of ebfabs, Only uncovered regions count here.

bool EBArith::getAdjacentFace FaceIndex   a_adjacentFace,
const FaceIndex   a_face,
const EBISBox   a_ebisBox,
const Box   a_domain,
const int &    a_idir,
const Side::LoHiSide   a_side
[static]
 

Return true if there is a unique adjacent face in the given direction. False if either covered or multivalued.

void EBArith::getAllVoFsInMonotonePath Vector< VolIndex > &    a_vofs,
const IntVect   a_timesMoved,
const IntVect   a_pathSign,
const VolIndex   a_vof,
const EBISBox   a_ebisBox,
const int &    a_redistRad
[static]
 

bool EBArith::monotonePathVoFToCellVoF VolIndex   a_vof2,
const VolIndex   a_vof1,
const IntVect   a_cell2,
const EBISBox   a_ebisBox
[static]
 

Given a VoF, a_vof1, and a cell, a_cell2, determine if there is a single VoF in a_cell2 that connects to a_vof1 via a monotone path. If there is one such VoF then TRUE is returned (and the VolIndex is returned, a_vof2). If there is no such VoF or if there are more than one such VoF then FALSE is returned (and a_vof2 is unchanged).

Real EBArith::norm Real   volume,
const EBCellFAB   a_dataOne,
const Box   a_grid,
const EBISBox   a_ebisl,
const int &    a_comp,
const int &    a_p,
EBNormType::NormMode    = EBNormType::OverBoth
[static]
 

Real EBArith::norm const EBCellFAB   a_dataOne,
const Box   a_grid,
const EBISBox   a_ebisl,
const int &    a_comp,
const int &    a_p,
EBNormType::NormMode    = EBNormType::OverBoth
[static]
 

return l-p norm of a_src. if p==0, v norm returned is Max(abs(a_src)) over uncovered regions. otherwise, returns 1/vol(sum(volfrac*a_src(iv,comp)**p)^(1/p)) of component comp of a_src weighted by local volume fraction and also returns volume of uncovered regions. Only uncovered regions count here. The data must have the same layout as a_layout with the possible exception of ghost cells.

Real EBArith::norm Real   volume,
const BoxLayoutData< EBCellFAB > &    a_dataOne,
const BoxLayout   a_layout,
const EBISLayout   a_ebisl,
const int &    comp,
const int &    p,
EBNormType::NormMode    = EBNormType::OverBoth
[static]
 

Real EBArith::norm const BoxLayoutData< EBCellFAB > &    a_dataOne,
const BoxLayout   a_layout,
const EBISLayout   a_ebisl,
const int &    comp,
const int &    p,
EBNormType::NormMode    = EBNormType::OverBoth
[static]
 

return l-p norm of a_src. if p==0, v norm returned is Max(abs(a_src)) over uncovered regions. otherwise, returns 1/vol(sum(volfrac*a_src(iv,comp)**p)^(1/p)) of component comp of a_src weighted by local volume fraction and also returns volume of uncovered regions. Only uncovered regions count here. The data must have the same layout as a_layout with the possible exception of ghost cells.

void EBArith::volWeightedSum Real   sum,
Real   volume,
const BoxLayoutData< EBCellFAB > &    a_dataOne,
const BoxLayout   a_layout,
const EBISLayout   a_ebisl,
const int &    comp,
const int &    p,
EBNormType::NormMode    = EBNormType::OverBoth
[static]
 

return l-p norm of a_src. if p==0, v norm returned is Max(abs(a_src)) over uncovered regions. otherwise, returns sum(volfrac*a_src(iv,comp)**p) of component comp of a_src weighted by local volume fraction and also returns volume of uncovered regions. Only uncovered regions count here. The data must have the same layout as a_layout with the possible exception of ghost cells.

void EBArith::volWeightedSum Real   norm,
Real   volume,
const EBCellFAB   a_src,
const Box   a_region,
const EBISBox   a_ebisBox,
const int &    comp,
const int &    p,
EBNormType::NormMode    = EBNormType::OverBoth
[static]
 

return lp-norm of component comp of a_src, weighted by local volume fraction. not normalized by number of points or anything like that. if p==0, volume returned is one and norm returned is Max(abs(a_src)) over uncovered regions. otherwise, returns sum(volfrac*a_src(iv,comp)**p) of component comp of a_src weighted by local volume fraction and also returns volume of uncovered regions. Only uncovered regions count here.


The documentation for this class was generated from the following file:
Generated on Wed Apr 16 14:35:08 2003 for EBChombo by doxygen1.2.16