19#include <CD_NamespaceHeader.H>
63 const EBAMRCellData& a_cellPhi,
64 const Real a_extrapDt,
65 const Real a_dt)
override;
88 regrid(
const int a_lbase,
const int a_oldFinestLevel,
const int a_newFinestLevel)
override;
96 preRegrid(
const int a_lbase,
const int a_oldFinestLevel)
override;
134 const VolIndex& a_vof,
135 const EBISBox& a_ebisbox,
137 const DataIndex& a_dit)
const noexcept;
155 const EBAMRFluxData& a_facePhiLow,
156 const EBAMRCellData& a_cellPhi,
157 const Real a_dt)
noexcept;
182 const EBCellFAB& a_cellVel,
183 const EBFaceFAB& a_faceVel,
184 const Box& a_cellBox,
187 const DataIndex& a_dit,
188 const Real a_dt)
noexcept;
241 const EBCellFAB& a_cellPhi,
242 const Box& a_cellBox,
243 const ProblemDomain& a_domain,
245 const DataIndex& a_dit);
265 upwind(EBFluxFAB& a_facePhi,
266 const EBCellFAB& a_normalSlopes,
267 const EBCellFAB& a_cellPhi,
268 const EBCellFAB& a_cellVel,
269 const EBFluxFAB& a_faceVel,
270 const ProblemDomain& a_domain,
271 const Box& a_cellBox,
273 const DataIndex& a_dit,
289 minmod(
const Real& dwl,
const Real& dwr)
noexcept;
298 superbee(
const Real& dwl,
const Real& dwr)
noexcept;
310#include <CD_NamespaceFooter.H>
Declaration of a class which implements CdrMultigrid using Godunov-type advection.
Extensions of CdrSolver which use EBHelmholtzOp for diffusion solves.
virtual void upwind(EBFluxFAB &a_facePhi, const EBCellFAB &a_normalSlopes, const EBCellFAB &a_cellPhi, const EBCellFAB &a_cellVel, const EBFluxFAB &a_faceVel, const ProblemDomain &a_domain, const Box &a_cellBox, const int &a_level, const DataIndex &a_dit, const Real &a_dt)
Upwind/Riemann solve. This extrapolates the cell-centered data to the inside face centers and selects...
Definition CD_CdrCTU.cpp:600
bool m_fluxCorrection
If true, the second-order part of the face states is limited by flux-corrected transport so that the ...
Definition CD_CdrCTU.H:228
CdrCTU()
Default constructor.
Definition CD_CdrCTU.cpp:23
virtual void parseOptions() override
Parse class options to put object in usable state.
Definition CD_CdrCTU.cpp:39
void defineIterators()
Build m_grownVofIter and m_levelCells for all AMR levels.
Definition CD_CdrCTU.cpp:110
Limiter
Supported limiters.
Definition CD_CdrCTU.H:200
virtual void parseSlopeLimiter()
Parse slope limiting on/off.
Definition CD_CdrCTU.cpp:232
virtual void allocate() override
Allocate internal storage and build pre-built VoF iterators.
Definition CD_CdrCTU.cpp:73
static Real superbee(const Real &dwl, const Real &dwr) noexcept
Superbee slope limiter.
Definition CD_CdrCTU.cpp:1284
bool getEbInflowState(Real &a_phiEB, const VolIndex &a_vof, const EBISBox &a_ebisbox, const int a_level, const DataIndex &a_dit) const noexcept
Get the state of the fluid that enters a cut cell through the EB.
Definition CD_CdrCTU.cpp:1166
void fluxCorrection(EBAMRFluxData &a_facePhi, const EBAMRFluxData &a_facePhiLow, const EBAMRCellData &a_cellPhi, const Real a_dt) noexcept
Flux-corrected transport that keeps the update non-negative.
Definition CD_CdrCTU.cpp:1016
virtual Real computeAdvectionDt() override
Compute the largest possible advective time step (for explicit methods).
Definition CD_CdrCTU.cpp:148
Vector< RefCountedPtr< LevelData< FArrayBox > > > m_levelCells
1 in the cells of each level's grids (with one ghost cell, filled where other boxes cover it),...
Definition CD_CdrCTU.H:108
virtual void computeNormalSlopes(EBCellFAB &a_normalSlopes, const EBCellFAB &a_cellPhi, const Box &a_cellBox, const ProblemDomain &a_domain, const int a_level, const DataIndex &a_dit)
Compute slopes.
Definition CD_CdrCTU.cpp:370
bool m_ebInflowState
If true, the EB is an inflow boundary where the flow leaves it. The slope of a cut cell without a fac...
Definition CD_CdrCTU.H:222
virtual void preRegrid(const int a_lbase, const int a_oldFinestLevel) override
Pre-regrid hook — releases the grown VoF iterators.
Definition CD_CdrCTU.cpp:85
Vector< RefCountedPtr< LayoutData< VoFIterator > > > m_grownVofIter
Pre-built VoFIterators over grow(validBox,1) for the irregular kernel in computeNormalSlopes.
Definition CD_CdrCTU.H:102
virtual void parseRuntimeOptions() override
Parse runtime options.
Definition CD_CdrCTU.cpp:56
void ebInflowState(EBFaceFAB &a_facePhi, const EBCellFAB &a_cellVel, const EBFaceFAB &a_faceVel, const Box &a_cellBox, const int a_dir, const int a_level, const DataIndex &a_dit, const Real a_dt) noexcept
Correct the states on the outgoing faces of cut cells for the fluid that enters through the EB.
Definition CD_CdrCTU.cpp:1198
static Real monotonizedCentral(const Real &dwl, const Real &dwr) noexcept
Monotonized central difference slope limiter.
Definition CD_CdrCTU.cpp:1301
RealVect getEbNormalIntoFluid(const VolIndex &a_vof, const EBISBox &a_ebisbox) const noexcept
Get the EB normal of a cut cell, pointing into the fluid.
Definition CD_CdrCTU.cpp:1160
bool m_useCTU
If true, the discretization uses CTU. Otherwise it's DCU (donor cell upwind).
Definition CD_CdrCTU.H:215
static Real minmod(const Real &dwl, const Real &dwr) noexcept
minmod slope function.
Definition CD_CdrCTU.cpp:1272
Limiter m_limiter
If true, slopes are limited in the normal direction.
Definition CD_CdrCTU.H:210
virtual void regrid(const int a_lbase, const int a_oldFinestLevel, const int a_newFinestLevel) override
Regrid method — also rebuilds the grown VoF iterators.
Definition CD_CdrCTU.cpp:98
virtual ~CdrCTU()
Destructor (does nothing).
Definition CD_CdrCTU.cpp:33
virtual void advectToFaces(EBAMRFluxData &a_facePhi, const EBAMRCellData &a_cellPhi, const Real a_extrapDt, const Real a_dt) override
MUSCL advection to faces.
Definition CD_CdrCTU.cpp:265
CdrMultigrid()
Constructor.
Definition CD_CdrMultigrid.cpp:25