Chombo + EB + MF  3.2
SingleLevelDivergence.H
Go to the documentation of this file.
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 #ifndef _SINGLELEVELDIVERGENCE_H_
12 #define _SINGLELEVELDIVERGENCE_H_
13 
14 #include "LevelData.H"
15 #include "FArrayBox.H"
16 #include "FluxBox.H"
17 #include "LevelFluxRegister.H"
18 #include "QuadCFInterp.H"
19 
20 #include "NamespaceHeader.H"
21 
22 /// Class to encapsulate Divergence functions
23 
25 {
26 
27 public:
28 
29  /** computes cell-centered level-operator divergence of
30  edge-centered vector field uEdge; assumes all coarse-fine BC's
31  have already been set. */
32  static void levelDivergenceMAC(
33  ///
34  LevelData<FArrayBox>& a_div,
35  ///
36  const LevelData<FluxBox>& a_uEdge,
37  ///
38  const Real a_dx);
39 
40 
41  /// really basic single-fab MAC divergence
42  static void simpleDivergenceMAC(///
43  FArrayBox& a_div,
44  ///
45  const FluxBox& a_uEdge,
46  ///
47  const Real a_dx);
48 };
49 
50 #include "NamespaceFooter.H"
51 
52 #endif
53 
54 
A FArrayBox-like container for face-centered fluxes.
Definition: FluxBox.H:22
Class to encapsulate Divergence functions.
Definition: SingleLevelDivergence.H:24
double Real
Definition: REAL.H:33
static void simpleDivergenceMAC(FArrayBox &a_div, const FluxBox &a_uEdge, const Real a_dx)
really basic single-fab MAC divergence
Definition: FArrayBox.H:45
static void levelDivergenceMAC(LevelData< FArrayBox > &a_div, const LevelData< FluxBox > &a_uEdge, const Real a_dx)