13#ifndef CD_EBGHOSTCELLINTERPOLATOR_H
14#define CD_EBGHOSTCELLINTERPOLATOR_H
20#include <EBLevelGrid.H>
24#include <CD_NamespaceHeader.H>
68 const EBLevelGrid& a_eblgCoFi,
69 const EBLevelGrid& a_eblgCoar,
70 const IntVect& a_ghostVector,
72 const
int a_ghostCF) noexcept;
89 define(const EBLevelGrid& a_eblgFine,
90 const EBLevelGrid& a_eblgCoFi,
91 const EBLevelGrid& a_eblgCoar,
92 const IntVect& a_ghostVector,
94 const
int a_ghostCF) noexcept;
105 const LevelData<EBCellFAB>& a_phiCoar,
106 const Interval a_variables,
107 const
Type a_interpType) const noexcept;
202 const FArrayBox& a_phiCoar,
203 const DataIndex& a_dit,
206 const
Type a_interpType) const noexcept;
219 const EBCellFAB& a_phiCoar,
220 const DataIndex& a_dit,
223 const
Type a_interpType) const noexcept;
232 minmod(const Real& dwl, const Real& dwr) noexcept;
241 superbee(const Real& dwl, const Real& dwr) noexcept;
253#include <CD_NamespaceFooter.H>
Declaration of cell positions.
Class which can interpolate ghost cells across the coarse-fine interface. To select an interpolation ...
Definition CD_EBGhostCellInterpolator.H:35
virtual void interpolateRegular(FArrayBox &a_phiFine, const FArrayBox &a_phiCoar, const DataIndex &a_dit, const int a_fineVar, const int a_coarVar, const Type a_interpType) const noexcept
Regular interpolation, as if the EB was not there.
Definition CD_EBGhostCellInterpolator.cpp:214
LayoutData< std::map< std::pair< int, Side::LoHiSide >, Box > > m_regularGhostRegions
Regular ghost regions to be interpolated.
Definition CD_EBGhostCellInterpolator.H:149
EBGhostCellInterpolator() noexcept
Weak constructor. Need to call define afterwards.
Definition CD_EBGhostCellInterpolator.cpp:25
LayoutData< VoFIterator > m_coarIrregCells
Coarse-grid cells on the caorse-side of the interface that are irregular cells.
Definition CD_EBGhostCellInterpolator.H:171
virtual void defineBuffers() noexcept
Define buffers.
Definition CD_EBGhostCellInterpolator.cpp:159
IntVect m_ghostVector
Minimum number of ghost cells in input data.
Definition CD_EBGhostCellInterpolator.H:133
static Real monotonizedCentral(const Real &dwl, const Real &dwr) noexcept
Monotonized central difference slope limiter.
Definition CD_EBGhostCellInterpolator.cpp:484
virtual void define(const EBLevelGrid &a_eblgFine, const EBLevelGrid &a_eblgCoFi, const EBLevelGrid &a_eblgCoar, const IntVect &a_ghostVector, const int a_refRat, const int a_ghostCF) noexcept
Define method. Puts object in usable state.
Definition CD_EBGhostCellInterpolator.cpp:48
static Real minmod(const Real &dwl, const Real &dwr) noexcept
minmod slope function.
Definition CD_EBGhostCellInterpolator.cpp:455
Copier m_copier
Copier for making copying from m_eblgCoar to m_grownCoarData go faster.
Definition CD_EBGhostCellInterpolator.H:154
virtual void defineGhostRegions() noexcept
Define ghost regions to be interpolated.
Definition CD_EBGhostCellInterpolator.cpp:74
bool m_isDefined
Is defined or not.
Definition CD_EBGhostCellInterpolator.H:113
virtual void interpolateIrregular(EBCellFAB &a_phiFine, const EBCellFAB &a_phiCoar, const DataIndex &a_dit, const int a_fineVar, const int a_coarVar, const Type a_interpType) const noexcept
Ghost cell interpolation near the EB, correcting slopes that broke in interpolateRegular.
Definition CD_EBGhostCellInterpolator.cpp:336
LayoutData< BaseIVFAB< VolIndex > > m_coarsenedFineGhosts
List of coarse-grid cells that appear through coarsening a fine-grid ghost cell.
Definition CD_EBGhostCellInterpolator.H:161
EBLevelGrid m_eblgFine
Fine grids.
Definition CD_EBGhostCellInterpolator.H:118
LayoutData< VoFIterator > m_fineIrregCells
Fine-grid ghost cells on the coarse-fine interface that overlap an irregular coarse cell.
Definition CD_EBGhostCellInterpolator.H:166
EBLevelGrid m_eblgCoar
Coarse grids.
Definition CD_EBGhostCellInterpolator.H:123
EBLevelGrid m_eblgCoFi
Coarsened fine grids.
Definition CD_EBGhostCellInterpolator.H:128
virtual void interpolate(LevelData< EBCellFAB > &a_phiFine, const LevelData< EBCellFAB > &a_phiCoar, const Interval a_variables, const Type a_interpType) const noexcept
Do inhomogeneous interpolation.
Definition CD_EBGhostCellInterpolator.cpp:167
int m_refRat
Refinement factor between fine and coarse level.
Definition CD_EBGhostCellInterpolator.H:138
Type
Type of interpolation slopes supported.
Definition CD_EBGhostCellInterpolator.H:41
LayoutData< BaseIVFAB< Real > > m_coarIrregSlopes
Buffer data defined on the coarsened fine grids (over m_coarIrregCells). Used for holding slopes in t...
Definition CD_EBGhostCellInterpolator.H:177
int m_ghostCF
Number of ghost cells to fill across coarse-fine interface.
Definition CD_EBGhostCellInterpolator.H:144
static Real superbee(const Real &dwl, const Real &dwr) noexcept
Superbee slope limiter.
Definition CD_EBGhostCellInterpolator.cpp:467