Chombo + EB + MF  3.2
Static Public Member Functions | List of all members
SingleLevelGradient Class Reference

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

#include <SingleLevelGradient.H>

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 More...
 
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 More...
 
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 More...
 

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

Member Function Documentation

◆ levelGradientCC()

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

◆ compGradientCC()

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.

◆ levelGradientMAC()

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: