Chombo + EB  3.2
computeNorm.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 _COMPUTENORM_H_
12 #define _COMPUTENORM_H_
13 
14 #include "REAL.H"
15 #include "Vector.H"
16 #include "LevelData.H"
17 #include "FArrayBox.H"
18 #include "Interval.H"
19 #include "FluxBox.H"
20 #include "RealVect.H"
21 #include "NamespaceHeader.H"
22 
23 /// Returns the volume-weighted p-norm of phi over all valid regions
25  const Vector<int>& a_nRefFine,
26  const Real a_dxCrse,
27  const Interval a_comps = Interval(0,0),
28  const int a_p = 2,
29  const int a_lBase = 0);
30 
31 /// Returns the volume-weighted p-norm of phi over the valid region
33  const DisjointBoxLayout* a_finerGrids,
34  const int a_nRefFine,
35  const Real a_dx,
36  const Interval a_comps = Interval(0,0),
37  const int a_p = 2);
38 
39 /// Returns the volume-weighted p-norm of phi over all valid regions: anisotropic version
41  const Vector<IntVect>& a_nRefFine,
42  const RealVect& a_dxCrse,
43  const Interval a_comps = Interval(0,0),
44  const int a_p = 2,
45  const int a_lBase = 0);
46 
47 /// Returns the volume-weighted p-norm of phi over the valid region: anisotropic version
49  const DisjointBoxLayout* a_finerGrids,
50  const IntVect& a_nRefFine,
51  const RealVect& a_dx,
52  const Interval a_comps = Interval(0,0),
53  const int a_p = 2);
54 
55 /// Returns the max value of phi over all valid regions
57  const Vector<int>& a_nRefFine,
58  const Interval a_comps = Interval(0,0),
59  const int a_lBase = 0);
60 
61 /// Returns the maximum value of phi over the valid region
63  const DisjointBoxLayout* a_finerGrids,
64  const int a_nRefFine,
65  const Interval a_comps = Interval(0,0));
66 
67 /// Returns the min value of phil over all valid regions
69  const Vector<int>& a_nRefFine,
70  const Interval a_comps = Interval(0,0),
71  const int a_lBase = 0);
72 
73 /// Returns the minimum value of phi over the valid region
75  const DisjointBoxLayout* a_finerGrids,
76  const int a_nRefFine,
77  const Interval a_comps = Interval(0,0));
78 
79 /// Extension of the norm(...) function for FluxBoxes
80 Real norm(const BoxLayoutData<FluxBox>& a_layout,
81  const Interval& a_interval,
82  const int& a_p);
83 #include "NamespaceFooter.H"
84 #endif
Real computeNorm(const Vector< LevelData< FArrayBox > * > &a_phi, const Vector< int > &a_nRefFine, const Real a_dxCrse, const Interval a_comps=Interval(0, 0), const int a_p=2, const int a_lBase=0)
Returns the volume-weighted p-norm of phi over all valid regions.
Real computeMax(const Vector< LevelData< FArrayBox > * > &a_phi, const Vector< int > &a_nRefFine, const Interval a_comps=Interval(0, 0), const int a_lBase=0)
Returns the max value of phi over all valid regions.
one dimensional dynamic array
Definition: Vector.H:53
Structure for passing component ranges in code.
Definition: Interval.H:23
Real norm(const BoxLayoutData< FluxBox > &a_layout, const Interval &a_interval, const int &a_p)
Extension of the norm(...) function for FluxBoxes.
double Real
Definition: REAL.H:33
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:30
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
Real computeMin(const Vector< LevelData< FArrayBox > * > &a_phi, const Vector< int > &a_nRefFine, const Interval a_comps=Interval(0, 0), const int a_lBase=0)
Returns the min value of phil over all valid regions.