chombo-discharge
CD_MFCoarAve.H
Go to the documentation of this file.
1 /* chombo-discharge
2  * Copyright © 2021 SINTEF Energy Research.
3  * Please refer to Copyright.txt and LICENSE in the chombo-discharge root directory.
4  */
5 
12 #ifndef CD_MFCoarAve_H
13 #define CD_MFCoarAve_H
14 
15 // Std includes
16 #include <map>
17 
18 // Our includes
19 #include <CD_EBCoarAve.H>
20 #include <CD_NamespaceHeader.H>
21 
25 class MFCoarAve
26 {
27 public:
31  MFCoarAve();
32 
36  ~MFCoarAve();
37 
42  MFCoarAve(const Vector<RefCountedPtr<EBCoarAve>>& a_aveOps);
43 
48  void
49  define(const Vector<RefCountedPtr<EBCoarAve>>& a_aveOps);
50 
55  const RefCountedPtr<EBCoarAve>&
56  getAveOp(const int a_phase) const;
57 
58 protected:
62  Vector<RefCountedPtr<EBCoarAve>> m_aveOps;
63 };
64 
65 #include <CD_NamespaceFooter.H>
66 
67 #endif
Declaration of conservative coarsening utility.
Class for coarsening data in a multifluid context.
Definition: CD_MFCoarAve.H:26
MFCoarAve()
Constructor. Must subsequently call defined.
Definition: CD_MFCoarAve.cpp:16
~MFCoarAve()
Destructor (does nothing).
Definition: CD_MFCoarAve.cpp:19
const RefCountedPtr< EBCoarAve > & getAveOp(const int a_phase) const
Get coarsening utility for specified phase.
Definition: CD_MFCoarAve.cpp:34
void define(const Vector< RefCountedPtr< EBCoarAve >> &a_aveOps)
Define function.
Definition: CD_MFCoarAve.cpp:28
Vector< RefCountedPtr< EBCoarAve > > m_aveOps
Interpolation for each phase.
Definition: CD_MFCoarAve.H:62