Chombo + EB  3.0
EdgeToCell.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 // EdgeToCell.H
12 // Dan Martin, Fri, Jan 14, 2000
13 
14 #ifndef _EDGETOCELL_H_
15 #define _EDGETOCELL_H_
16 
17 #include "LevelData.H"
18 #include "FArrayBox.H"
19 #include "FluxBox.H"
20 
21 #include "NamespaceHeader.H"
22 
23 /// averages cell-centered cellData to edge-centered edgeData
24 void EdgeToCell(const LevelData<FluxBox>& a_edgeData,
25  LevelData<FArrayBox>& a_cellData);
26 
27 /// averages cellData->edgeData (all directions) for one FAB
28 /** averages cell-centered cellData to SpaceDim-dimensioned
29  EdgeData -- assumes all boundary conditions already set.
30  Does this for all grids. */
31 void EdgeToCell(const FluxBox& a_edgeData,
32  FArrayBox& a_cellData);
33 
34 /// averages cellData->edgeData in 1 direction, for one component in a FAB
35 void EdgeToCell(const FluxBox& a_edgeData, const int a_edgeComp,
36  FArrayBox& a_cellData, const int a_cellComp,
37  const int a_dir);
38 
39 /// averages cellData->edgeData in 1 direction, for one component in a FAB, on a given cell box
40 void EdgeToCell(const FluxBox& a_edgeData, const int a_edgeComp,
41  FArrayBox& a_cellData, const int a_cellComp,
42  const Box& a_cellBox, const int a_dir);
43 
44 
45 // max functions
46 /// cell-centered cellData from edge-centered edgeData using max
47 /** instead of averaging faces to cells, this function puts the max of
48  the two opposing face-centered values into each cell.
49 */
50 void EdgeToCellMax(const LevelData<FluxBox>& a_edgeData,
51  LevelData<FArrayBox>& a_cellData);
52 
53 /// edgeData->cellData using max (all directions) for one FAB
54 /** fills cell-centered cellData from EdgeData using max
55  -- assumes all boundary conditions already set.
56  Does this for all grids. */
57 void EdgeToCellMax(const FluxBox& a_edgeData,
58  FArrayBox& a_cellData);
59 
60 
61 /// fills cellData using edgeData in 1 direction using max, for one component in a FAB
62 void EdgeToCellMax(const FluxBox& a_edgeData, const int a_edgeComp,
63  FArrayBox& a_cellData, const int a_cellComp,
64  const int a_dir);
65 
66 
67 /// fills cellData->edgeData in 1 direction, for one component in a FAB, on a given cell box using max
68 void EdgeToCellMax(const FluxBox& a_edgeData, const int a_edgeComp,
69  FArrayBox& a_cellData, const int a_cellComp,
70  const Box& a_cellBox, const int a_dir);
71 
72 
73 #include "NamespaceFooter.H"
74 
75 #endif
void EdgeToCell(const LevelData< FluxBox > &a_edgeData, LevelData< FArrayBox > &a_cellData)
averages cell-centered cellData to edge-centered edgeData
void EdgeToCellMax(const LevelData< FluxBox > &a_edgeData, LevelData< FArrayBox > &a_cellData)
cell-centered cellData from edge-centered edgeData using max
A FArrayBox-like container for face-centered fluxes.
Definition: FluxBox.H:22
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
Definition: FArrayBox.H:44