chombo-discharge
Loading...
Searching...
No Matches
CD_MFLevelGrid.H
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
13#ifndef CD_MFLEVELGRID_H
14#define CD_MFLEVELGRID_H
15
16// Std includes
17#include <map>
18
19// Chombo includes
20#include <EBLevelGrid.H>
21
22// Our includes
24#include <CD_NamespaceHeader.H>
25
30{
31public:
36
46 const int a_ebghost,
48
55
59 virtual ~MFLevelGrid();
60
65 virtual int
66 numPhases() const;
67
73 virtual void
75
80 virtual void
82
88 getMfIndexSpace() const;
89
94 virtual ProblemDomain
95 getDomain() const;
96
101 virtual DisjointBoxLayout
102 getGrids() const;
103
109 virtual EBLevelGrid&
111
117 virtual const EBLevelGrid&
118 getEBLevelGrid(int a_phase) const;
119
128 virtual IntVectSet
129 interfaceRegion(const Box& a_box, const DataIndex& a_dit, const int a_phase1 = 0, const int a_phase2 = 1) const;
130
131#if 0 // Taken out of chombo-discharge for now
135 virtual bool interfacePair(IntVect& a_iv,
136 const IntVect& a_iv_in,
137 const Box& a_box,
138 const DataIndex& a_dit,
139 const int a_phase1 = 0,
140 const int a_phase2 = 1) const;
141#endif
142
143private:
147 RefCountedPtr<MultiFluidIndexSpace> m_multifluidIndexSpace;
148
152 Vector<EBLevelGrid> m_eblg;
153};
154
155#include <CD_NamespaceFooter.H>
156
157#endif
Multi-fluid index space.
Wrapper class for holding multifluid EBLevelGrids.
Definition CD_MFLevelGrid.H:30
virtual ProblemDomain getDomain() const
Get the problem domain.
Definition CD_MFLevelGrid.cpp:72
virtual int numPhases() const
Get number of phases.
Definition CD_MFLevelGrid.cpp:52
virtual void setMaxRefinementRatio(const int a_refRat)
Set max refinement ratio.
Definition CD_MFLevelGrid.cpp:21
virtual DisjointBoxLayout getGrids() const
Get the grids.
Definition CD_MFLevelGrid.cpp:78
virtual IntVectSet interfaceRegion(const Box &a_box, const DataIndex &a_dit, const int a_phase1=0, const int a_phase2=1) const
Get interface region between two phases.
Definition CD_MFLevelGrid.cpp:102
MFLevelGrid()
Weak constructor, must subsequently call define.
virtual ~MFLevelGrid()
Destructor.
virtual const RefCountedPtr< MultiFluidIndexSpace > & getMfIndexSpace() const
Get the index space.
Definition CD_MFLevelGrid.cpp:66
virtual void define(const RefCountedPtr< MultiFluidIndexSpace > &a_multiFluidIndexSpace, const Vector< EBLevelGrid > &a_eblgs)
Define function.
Definition CD_MFLevelGrid.cpp:58
virtual EBLevelGrid & getEBLevelGrid(int a_phase)
Get grids on specified phase.
Definition CD_MFLevelGrid.cpp:84
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38