SingleLevelGradient Class Reference

#include <SingleLevelGradient.H>

List of all members.


Detailed Description

Class to encapsulate Gradient functions (both CC and face-centered).

(DFM-10/17/08) -- note that this version has been gutted to only have the most basic single-level Gradient because AMRTools doesn't compile in 4D yet

Static Public Member Functions

static void levelGradientCC (LevelData< FArrayBox > &a_grad, const LevelData< FArrayBox > &a_phi, const Real a_dx)
 computes cell-centered, level-operator gradient of cell-centered phi
static void compGradientCC (LevelData< FArrayBox > &a_Grad, const LevelData< FArrayBox > &a_phi, const LevelData< FArrayBox > *a_phiFinePtr, const Real a_dx, const int a_nRefFine, const ProblemDomain &a_dProblem)
 computes cell-centered composite gradient of cell-centered phi
static void levelGradientMAC (LevelData< FluxBox > &a_edgeGrad, const LevelData< FArrayBox > &a_phi, const Real a_dx)
 computes edge-centered level-operator gradient of cell-centered phi


Member Function Documentation

static void SingleLevelGradient::levelGradientCC ( LevelData< FArrayBox > &  a_grad,
const LevelData< FArrayBox > &  a_phi,
const Real  a_dx 
) [static]

computes cell-centered, level-operator gradient of cell-centered phi

in this case, assume that all relevant BC's (coarse-fine and physical) have already been set, so phi can be a const variable

static void SingleLevelGradient::compGradientCC ( LevelData< FArrayBox > &  a_Grad,
const LevelData< FArrayBox > &  a_phi,
const LevelData< FArrayBox > *  a_phiFinePtr,
const Real  a_dx,
const int  a_nRefFine,
const ProblemDomain a_dProblem 
) [static]

computes cell-centered composite gradient of cell-centered phi

this one assumes that all ghost-cell values have already been set; if phiFinePtr != NULL, then also uses one-sided differencing to compute gradient on coarse side of corarse-fine interface. note that gradient is only really defined in valid regions of grids.

static void SingleLevelGradient::levelGradientMAC ( LevelData< FluxBox > &  a_edgeGrad,
const LevelData< FArrayBox > &  a_phi,
const Real  a_dx 
) [static]

computes edge-centered level-operator gradient of cell-centered phi

assumes _ALL_ ghost cell values have been preset (so phi can be const)


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

Generated on Tue Jun 27 03:27:24 2017 for Chombo + EB + MF by  doxygen 1.5.5