18 #include <DisjointBoxLayout.H>
19 #include <ProblemDomain.H>
37 #include <CD_NamespaceHeader.H>
97 const CopyStrategy& a_fromRegion = CopyStrategy::Valid)
const noexcept;
110 template <
typename T>
114 const Interval& a_dstComps,
115 const Interval& a_srcComps,
117 const CopyStrategy& a_fromRegion = CopyStrategy::Valid)
const noexcept;
132 template <
typename T>
135 const LevelData<T>& a_src,
137 const std::string a_toRealm,
138 const std::string a_fromRealm,
140 const CopyStrategy& a_fromRegion = CopyStrategy::Valid)
const noexcept;
157 template <
typename T>
160 const LevelData<T>& a_src,
162 const std::string a_toRealm,
163 const std::string a_fromRealm,
164 const Interval& a_dstComps,
165 const Interval& a_srcComps,
167 const CopyStrategy& a_fromRegion = CopyStrategy::Valid)
const noexcept;
173 template <
typename T>
181 template <
typename T>
183 deallocate(Vector<RefCountedPtr<T>>& a_data)
const;
189 template <
typename T>
199 template <
typename T>
201 alias(Vector<T*>& a_alias,
const Vector<RefCountedPtr<T>>& a_data)
const;
209 template <
typename T,
typename S>
218 template <
typename T>
220 allocate(Vector<RefCountedPtr<ParticleData<T>>>& a_particles,
const std::string a_realm)
const;
227 template <
typename T>
236 template <
typename T>
246 template <
typename T>
248 allocatePointer(Vector<RefCountedPtr<T>>& a_data,
const int a_finestLevel)
const;
256 template <
typename T>
267 template <
typename T>
310 registerOperator(
const std::string a_operator,
const std::string a_realm,
const phase::which_phase a_phase);
321 registerMask(
const std::string a_mask,
const int a_buffer,
const std::string a_realm);
375 const phase::which_phase a_phase,
377 const int a_finestLevel)
const;
388 const phase::which_phase a_phase,
390 const int a_finestLevel)
const;
458 const std::string a_realm,
459 const phase::which_phase a_phase)
const;
473 const std::string a_realm,
474 const phase::which_phase a_phase)
const;
509 const std::string a_realm,
510 const phase::which_phase a_phase,
512 const int a_nGhost = -1)
const;
525 allocate(LevelData<EBCellFAB>& a_data,
526 const std::string a_realm,
527 const phase::which_phase a_phase,
530 const int a_nGhost = -1)
const;
543 const std::string a_realm,
544 const phase::which_phase a_phase,
546 const int a_nGhost = -1)
const;
559 const std::string a_realm,
560 const phase::which_phase a_phase,
562 const int a_nGhost = -1)
const;
574 const std::string a_realm,
575 const phase::which_phase a_phase,
577 const int a_nGhost = -1)
const;
588 allocate(
EBAMRBool& a_data,
const std::string a_realm,
const int a_nComp,
const int a_nGhost = -1)
const;
599 allocate(
MFAMRCellData& a_data,
const std::string a_realm,
const int a_nComp,
const int a_nGhost = -1)
const;
610 allocate(
MFAMRFluxData& a_data,
const std::string a_realm,
const int a_nComp,
const int a_ghost = -1)
const;
621 allocate(
MFAMRIVData& a_data,
const std::string a_realm,
const int a_nComp,
const int a_ghost = 0)
const;
776 const std::string a_realm,
777 const phase::which_phase a_phase,
778 const Average& a_average)
const;
790 const std::string a_realm,
791 const phase::which_phase a_phase,
793 const Interval& a_variables)
const;
813 const std::string a_realm,
814 const phase::which_phase a_phase,
815 const Interval& a_variables)
const;
835 const std::string a_realm,
836 const phase::which_phase a_phase,
837 const Interval& a_variables)
const;
857 const std::string a_realm,
858 const phase::which_phase a_phase,
859 const Interval& a_variables)
const;
870 const std::string a_realm,
871 const phase::which_phase a_phase,
872 const Average& a_average)
const;
912 const std::string a_realm,
913 const phase::which_phase a_phase,
914 const Average& a_average)
const;
964 template <
class P, const Real& (P::*particleScalarField)() const>
967 const std::string& a_realm,
968 const phase::which_phase& a_phase,
972 const bool a_forceIrregNGP =
false);
985 template <
class P, Real (P::*particleScalarField)() const>
988 const std::string& a_realm,
989 const phase::which_phase& a_phase,
993 const bool a_forceIrregNGP =
false);
1016 template <
class P, const RealVect& (P::*particleVectorField)() const>
1019 const std::string& a_realm,
1020 const phase::which_phase& a_phase,
1024 const bool a_forceIrregNGP =
false);
1037 template <
class P, RealVect (P::*particleVectorField)() const>
1040 const std::string& a_realm,
1041 const phase::which_phase& a_phase,
1045 const bool a_forceIrregNGP =
false);
1058 template <
class P, const Real& (P::*particleScalarField)() const>
1061 const std::string& a_realm,
1062 const phase::which_phase& a_phase,
1076 template <
class P, Real (P::*particleScalarField)() const>
1079 const std::string& a_realm,
1080 const phase::which_phase& a_phase,
1101 template <
class P, Real& (P::*particleScalarField)()>
1104 const std::string& a_realm,
1105 const phase::which_phase& a_phase,
1108 const bool a_forceIrregNGP =
false)
const;
1128 template <
class P, RealVect& (P::*particleVectorField)()>
1131 const std::string& a_realm,
1132 const phase::which_phase& a_phase,
1135 const bool a_forceIrregNGP =
false)
const;
1150 const phase::which_phase& a_phase,
1151 const Real a_tolerance = 0.0)
const;
1166 const phase::which_phase& a_phase,
1167 const Real a_tolerance = 0.0)
const;
1196 const phase::which_phase& a_phase,
1197 const Real a_tolerance = 0.0)
const;
1214 const phase::which_phase& a_phase,
1215 const Real a_tolerance = 0.0)
const;
1231 const phase::which_phase& a_phase)
const;
1245 const phase::which_phase a_phase,
1246 const std::function<
void(P&)> a_transferModifier = [](P&) ->
void {
1275 const phase::which_phase a_phase,
1276 const Real a_tolerance,
1277 const bool a_deleteParticles,
1278 const std::function<
void(P&)> a_nonDeletionModifier = [](P&) ->
void {
1303 const phase::which_phase a_phase,
1304 const Real a_bisectionStep,
1305 const bool a_deleteParticles,
1306 const std::function<
void(P&)> a_nonDeletionModifier = [](P&) ->
void {
1329 const LevelData<EBCellFAB>& a_coarData,
1331 const std::string a_realm,
1332 const phase::which_phase a_phase)
const;
1397 const int a_oldFinestLevel,
1398 const int a_newFinestLevel,
1416 const phase::which_phase a_phase,
1418 const int a_oldFinestLevel,
1419 const int a_newFinestLevel,
1437 const phase::which_phase a_phase,
1439 const int a_oldFinestLevel,
1440 const int a_newFinestLevel,
1472 const std::string a_realm,
1473 const phase::which_phase a_phase,
1474 const int a_level)
const;
1504 regridAmr(
const Vector<IntVectSet>& a_tags,
const int a_lmin,
const int a_hardcap = -1);
1515 const Vector<Vector<int>>& a_procs,
1516 const Vector<Vector<Box>>& a_boxes,
1532 setGrids(
const Vector<Vector<Box>>& a_boxes,
const std::map<std::string, Vector<Vector<long int>>>& a_realmsAndLoads);
1664 const RefCountedPtr<BaseIF>&
1671 const Vector<DisjointBoxLayout>&
1677 const Vector<DisjointBoxLayout>&
1678 getGrids(
const std::string a_realm)
const;
1683 const Vector<ProblemDomain>&
1693 getMask(
const std::string a_mask,
const int a_buffer,
const std::string a_realm)
const;
1706 const Vector<RefCountedPtr<LevelTiles>>&
1714 const Vector<RefCountedPtr<EBLevelGrid>>&
1715 getEBLevelGrid(
const std::string a_realm,
const phase::which_phase a_phase)
const;
1722 const Vector<RefCountedPtr<EBLevelGrid>>&
1723 getEBLevelGridCoFi(
const std::string a_realm,
const phase::which_phase a_phase)
const;
1730 const Vector<EBISLayout>&
1731 getEBISLayout(
const std::string a_realm,
const phase::which_phase a_phase)
const;
1737 const Vector<RefCountedPtr<MFLevelGrid>>&
1744 Vector<RefCountedPtr<LayoutData<VoFIterator>>>&
1745 getVofIterator(
const std::string a_realm,
const phase::which_phase a_phase)
const;
1753 getLevelset(
const std::string a_realm,
const phase::which_phase a_phase)
const;
1761 getParticleMesh(
const std::string a_realm,
const phase::which_phase a_phase)
const;
1774 Vector<RefCountedPtr<EBCoarAve>>&
1775 getCoarseAverage(
const std::string a_realm,
const phase::which_phase a_phase)
const;
1782 Vector<RefCountedPtr<EBMultigridInterpolator>>&
1790 Vector<RefCountedPtr<EBCoarseToFineInterp>>&
1791 getFineInterp(
const std::string a_realm,
const phase::which_phase a_phase)
const;
1798 Vector<RefCountedPtr<EBReflux>>&
1799 getFluxRegister(
const std::string a_realm,
const phase::which_phase a_phase)
const;
1806 Vector<RefCountedPtr<EBFluxRedistribution>>&
1837 std::vector<std::string>
1851 RefCountedPtr<EBIndexSpace>&
1870 mutable std::map<std::string, RefCountedPtr<Realm>>
m_realms;
1875 std::map<phase::which_phase, RefCountedPtr<BaseIF>>
m_baseif;
2127 buildGrids(
const Vector<IntVectSet>& a_tags,
const int a_lmin,
const int a_hardcap = -1);
2257 const LevelData<EBCellFAB>& a_phi,
2258 const std::string a_realm,
2259 const phase::which_phase a_phase,
2260 const int a_lvl)
const;
2263 #include <CD_NamespaceFooter.H>
Implementation of CD_AmrMesh.H.
Average
Various averaging methods.
Definition: CD_Average.H:24
BoxSorting
Enum for sorting boxes.
Definition: CD_BoxSorting.H:21
CoarseFineDeposition
Coarse-fine deposition types (see CD_EBAMRParticleMesh for how these are handled).
Definition: CD_CoarseFineDeposition.H:26
Declaration of base class for defining geometries.
Simple enum for distinguishing copying strategies.
CopyStrategy
Enum for distinguishing how we copy data Valid => valid region ValidGhost => valid+ghost region.
Definition: CD_CopyStrategy.H:23
DepositionType
Deposition types.
Definition: CD_DepositionType.H:23
Declaration of factory class for DomainFluxIFFAB.
Declaration of a BaseIFFAB wrapper that holds domain fluxes.
Class for holding data across EBAMR hierarchies.
Declaration of conservative coarsening utility.
Declaration of a class which can reflux over the coarse-fine interface.
Class for holding stencils on irregular over an entire AMR hierarchy.
Declaration of a static class for various load balancing operations.
Declaration of a wrapper for wrapping multifluid EBLevelGrids.
Implementation of IrregStencil that can perform the nonconservative divergence averaging.
Declaration of a class for holding particles on an AMR hierarchy.
Declaration of the Realm class.
Vector< RefCountedPtr< LevelData< BaseFab< bool > >> > AMRMask
Alias for cutting down on the typic of booleans defined over AMR grids.
Definition: CD_Realm.H:36
Class for handling spatial operations.
Definition: CD_AmrMesh.H:44
void removeCoveredParticlesVoxels(ParticleContainer< P > &a_particles, const phase::which_phase &a_phase) const
Function which removes particles from the domain if they fall inside the EB.
Definition: CD_AmrMeshImplem.H:695
void computeGradient(EBAMRCellData &a_gradient, const EBAMRCellData &a_phi, const std::string a_realm, const phase::which_phase a_phase) const
Compute cell-centered gradient over an AMR hierarchy.
Definition: CD_AmrMesh.cpp:1337
void transferCoveredParticlesDiscrete(ParticleContainer< P > &a_particlesFrom, ParticleContainer< P > &a_particlesTo, const phase::which_phase &a_phase, const Real a_tolerance=0.0) const
Function which transferse particles from one particle container to another if they fall inside the EB...
Definition: CD_AmrMeshImplem.H:828
int m_refRatio
Refinement ratio.
Definition: CD_AmrMesh.H:1971
void parseRuntimeOptions()
Parse runtime options.
Definition: CD_AmrMesh.cpp:949
std::map< std::string, Vector< Copier > > m_oldToNewCellCopiers
Storage for copiers from the old grids to the new ones.
Definition: CD_AmrMesh.H:1886
std::vector< std::string > getRealms() const
Get the name of all Realms.
Definition: CD_AmrMesh.cpp:3471
RealVect getProbHi() const
Get upper-left corner of computational domain.
Definition: CD_AmrMesh.cpp:2755
void parseBrBufferSize()
Parse buffer size for Berger-Rigoutsous grid algorithm.
Definition: CD_AmrMesh.cpp:2499
Real getFinestDx() const
Get resolution on the finest grid level.
Definition: CD_AmrMesh.cpp:2906
const AMRMask & getValidCells(const std::string a_realm) const
Get a map of all valid cells on a specified realm.
Definition: CD_AmrMesh.cpp:3038
const RefCountedPtr< BaseIF > & getBaseImplicitFunction(const phase::which_phase a_phase) const
Get implicit function for a specific phase.
Definition: CD_AmrMesh.cpp:2939
AmrMesh(const AmrMesh &&a_other)=delete
Disallowed move constructor.
void harmonicAverage(MFAMRCellData &a_data, const std::string a_realm) const
Harmonic coarsening of multifluid data.
Definition: CD_AmrMesh.cpp:1523
Real m_fillRatioBR
Fill ratio.
Definition: CD_AmrMesh.H:1956
ProblemDomain getFinestDomain() const
Get finest domain.
Definition: CD_AmrMesh.cpp:2895
int m_oldFinestLevel
Finest level before a regrid.
Definition: CD_AmrMesh.H:1986
void copyData(EBAMRData< T > &a_dst, const EBAMRData< T > &a_src, const CopyStrategy &a_toRegion=CopyStrategy::Valid, const CopyStrategy &a_fromRegion=CopyStrategy::Valid) const noexcept
Method for copying from a source container to a destination container. User supplies information abou...
Definition: CD_AmrMeshImplem.H:22
const Vector< DisjointBoxLayout > & getProxyGrids() const
Get the "proxy" grids in AmrMesh.
Definition: CD_AmrMesh.cpp:2961
void transferCoveredParticlesIF(ParticleContainer< P > &a_particlesFrom, ParticleContainer< P > &a_particlesTo, const phase::which_phase &a_phase, const Real a_tolerance=0.0) const
Function which transferse particles from one particle container to another if they fall inside the EB...
Definition: CD_AmrMeshImplem.H:754
IntVect m_numCells
Coarsest box where we compute.
Definition: CD_AmrMesh.H:1951
void postRegrid()
Run post-regrid operations.
Definition: CD_AmrMesh.cpp:1042
void parseMaxAmrDepth()
Parse the maximum permitted AMR depth.
Definition: CD_AmrMesh.cpp:2335
Vector< RefCountedPtr< EBMultigridInterpolator > > & getMultigridInterpolator(const std::string a_realm, const phase::which_phase a_phase) const
Get multigrid interpolation utility.
Definition: CD_AmrMesh.cpp:3188
RealVect m_probHi
Domain simulation corner.
Definition: CD_AmrMesh.H:1966
int m_maxBoxSize
Max box size.
Definition: CD_AmrMesh.H:2001
void registerOperator(const std::string a_operator, const std::string a_realm, const phase::which_phase a_phase)
Register an operator over a realm and a phase.
Definition: CD_AmrMesh.cpp:3351
int m_centroidStencilOrder
Order for interpolation stencils to centroids.
Definition: CD_AmrMesh.H:2056
Vector< DisjointBoxLayout > m_grids
Grids.
Definition: CD_AmrMesh.H:2096
RefCountedPtr< MultiFluidIndexSpace > m_multifluidIndexSpace
MultiFluidIndexSpace.
Definition: CD_AmrMesh.H:1931
void regridRealm(const std::string a_realm, const Vector< Vector< int >> &a_procs, const Vector< Vector< Box >> &a_boxes, const int a_lmin)
Regrid a realm. This generates the grids for the realm, but does not do the operators on the realm.
Definition: CD_AmrMesh.cpp:3414
RealVect m_probLo
Domain simulation corner.
Definition: CD_AmrMesh.H:1961
void remapToNewGrids(ParticleContainer< P > &a_particles, const int a_lmin, const int a_newFinestLevel) const noexcept
Regrid particle to new grids.
Definition: CD_AmrMeshImplem.H:362
int m_bufferSizeBR
Set buffer size.
Definition: CD_AmrMesh.H:2011
void setCoarsestGrid(const IntVect &a_nCells)
Set the coarsest grid cells.
Definition: CD_AmrMesh.cpp:2294
void parseMaxSimulationDepth()
Set maximum simulation depth.
Definition: CD_AmrMesh.cpp:2354
int getMaxSimulationDepth() const
Get maximum permitted simulation depth.
Definition: CD_AmrMesh.cpp:2788
void interpGhostPwl(MFAMRCellData &a_data, const std::string a_realm) const
Interpolate ghost cells over a realm and phase. This uses piecewise linear interpolation (with limite...
Definition: CD_AmrMesh.cpp:1953
int m_maxSimulationDepth
Maximum allowed depth for simulation.
Definition: CD_AmrMesh.H:1996
void setFinestLevel(const int a_finestLevel)
Set the finest level.
Definition: CD_AmrMesh.cpp:2411
RefCountedPtr< EBIndexSpace > & getEBIndexSpace(const phase::which_phase a_phase)
Get EBIndexSpace corresponding to a particular phase.
Definition: CD_AmrMesh.H:1852
void transferIrregularParticles(ParticleContainer< P > &a_dstParticles, ParticleContainer< P > &a_srcParticles, const phase::which_phase a_phase, const std::function< void(P &)> a_transferModifier=[](P &) -> void { return;}) const noexcept
Transfer particles that are on the wrong side of the EB to a different container.
Definition: CD_AmrMeshImplem.H:987
bool queryRealm(const std::string a_realm) const
Query if a realm exists.
Definition: CD_AmrMesh.cpp:3310
virtual ~AmrMesh()
Destructor.
Definition: CD_AmrMesh.cpp:46
void parseEbCentroidStencils()
Parse EB interpolation (or extrapolation) stencils.
Definition: CD_AmrMesh.cpp:2682
void removeCoveredParticlesIF(ParticleContainer< P > &a_particles, const phase::which_phase &a_phase, const Real a_tolerance=0.0) const
Function which removes particles from the domain if they fall inside the EB.
Definition: CD_AmrMeshImplem.H:539
int m_multigridInterpRadius
Multigrid interpolation radius.
Definition: CD_AmrMesh.H:2041
void arithmeticAverage(MFAMRCellData &a_data, const std::string a_realm) const
Arithmetic coarsening of multifluid data.
Definition: CD_AmrMesh.cpp:1512
void buildDomains()
Build domains.
Definition: CD_AmrMesh.cpp:985
int m_ebCentroidStencilRadius
Radius for EB interpolation stencil.
Definition: CD_AmrMesh.H:2071
GridGenerationMethod m_gridGenerationMethod
Grid generation method.
Definition: CD_AmrMesh.H:1921
void interpGhostMG(MFAMRCellData &a_data, const std::string a_realm) const
Interpolate ghost cells over a realm and phase.
Definition: CD_AmrMesh.cpp:2016
void setGrids(const Vector< Vector< Box >> &a_boxes, const std::map< std::string, Vector< Vector< long int >>> &a_realmsAndLoads)
Set grids from boxes and computational loads.
Definition: CD_AmrMesh.cpp:2424
void parseRefinementRatios()
Parse refinement ratios.
Definition: CD_AmrMesh.cpp:2373
Vector< int > m_refinementRatios
AMR resolutions.
Definition: CD_AmrMesh.H:2106
void depositParticles(EBAMRCellData &a_meshData, const std::string &a_realm, const phase::which_phase &a_phase, const ParticleContainer< P > &a_particles, const DepositionType a_depositionType, const CoarseFineDeposition a_coarseFineDeposition, const bool a_forceIrregNGP=false)
Deposit scalar particle quantities on the mesh.
Definition: CD_AmrMeshImplem.H:383
int m_verbosity
Verbosity.
Definition: CD_AmrMesh.H:1976
void conservativeAverage(MFAMRCellData &a_data, const std::string a_realm) const
Conservative coarsening of multifluid data.
Definition: CD_AmrMesh.cpp:1534
bool m_hasRegridCopiers
Has regrid copiers or not.
Definition: CD_AmrMesh.H:2091
Vector< RefCountedPtr< EBCoarseToFineInterp > > & getFineInterp(const std::string a_realm, const phase::which_phase a_phase) const
Get interpolator.
Definition: CD_AmrMesh.cpp:3205
void parseMaxBoxSize()
Parse the maximum permitted box size.
Definition: CD_AmrMesh.cpp:2461
void interpToCentroids(EBAMRCellData &a_data, const std::string a_realm, const phase::which_phase a_phase) const
Interpolate data to centroids on realm and phase.
Definition: CD_AmrMesh.cpp:2255
int m_multigridInterpOrder
Multigrid interpolation order.
Definition: CD_AmrMesh.H:2036
int m_centroidStencilRadius
Radius for centroid interpolation stencil.
Definition: CD_AmrMesh.H:2061
std::map< std::pair< std::string, std::string >, Vector< Copier > > m_validToValidRealmCopiers
Map for copying between various Realms. First index is the "from" realm and second index is the "to" ...
Definition: CD_AmrMesh.H:1898
std::map< std::pair< std::string, std::string >, Vector< Copier > > m_validGhostToValidRealmCopiers
Map for copying between various Realms. First index is the "from" realm and second index is the "to" ...
Definition: CD_AmrMesh.H:1910
void intersectParticlesRaycastIF(ParticleContainer< P > &a_activeParticles, ParticleContainer< P > &a_ebParticles, ParticleContainer< P > &a_domainParticles, const phase::which_phase a_phase, const Real a_tolerance, const bool a_deleteParticles, const std::function< void(P &)> a_nonDeletionModifier=[](P &) -> void { return;}) const noexcept
Particle intersection algorithm based on ray-casting.
Definition: CD_AmrMeshImplem.H:1071
void parseNumGhostCells()
Parse the number of ghost cells.
Definition: CD_AmrMesh.cpp:2589
AmrMesh & operator=(const AmrMesh &&a_other)=delete
Disallowed move assignment.
void sanityCheck() const
Do a sanity check to make sure everything is set up correctly.
Definition: CD_AmrMesh.cpp:2717
int m_numGhostCells
Number of ghost cells.
Definition: CD_AmrMesh.H:2026
void buildGrids(const Vector< IntVectSet > &a_tags, const int a_lmin, const int a_hardcap=-1)
Build new internal AMR grids.
Definition: CD_AmrMesh.cpp:1131
void parseVerbosity()
Parse the verbosity for AmrMesh.
Definition: CD_AmrMesh.cpp:2305
const Vector< RefCountedPtr< EBLevelGrid > > & getEBLevelGrid(const std::string a_realm, const phase::which_phase a_phase) const
Get the EBLevelGrid for a Realm and phase.
Definition: CD_AmrMesh.cpp:3070
GridGenerationMethod
Enum for having understandable notation for grid generation.
Definition: CD_AmrMesh.H:1862
std::map< std::pair< std::string, std::string >, Vector< Copier > > m_validGhostToValidGhostRealmCopiers
Map for copying between various Realms. First index is the "from" realm and second index is the "to" ...
Definition: CD_AmrMesh.H:1916
void registerRealm(const std::string a_realm)
Register a new realm.
Definition: CD_AmrMesh.cpp:3338
void removeCoveredParticlesDiscrete(ParticleContainer< P > &a_particles, const phase::which_phase &a_phase, const Real a_tolerance=0.0) const
Function which removes particles from the domain if they fall inside the EB.
Definition: CD_AmrMeshImplem.H:605
bool getEbCf() const
Check if mesh has an EBCF.
Definition: CD_AmrMesh.cpp:3327
Vector< Real > m_dx
Level resolutions.
Definition: CD_AmrMesh.H:2111
const Vector< DisjointBoxLayout > & getGrids(const std::string a_realm) const
Get the grids.
Definition: CD_AmrMesh.cpp:2972
void intersectParticlesBisectIF(ParticleContainer< P > &a_activeParticles, ParticleContainer< P > &a_ebParticles, ParticleContainer< P > &a_domainParticles, const phase::which_phase a_phase, const Real a_bisectionStep, const bool a_deleteParticles, const std::function< void(P &)> a_nonDeletionModifier=[](P &) -> void { return;}) const noexcept
Particle intersection algorithm based on bisection.
Definition: CD_AmrMeshImplem.H:1243
int m_numEbGhostsCells
Number of ghost cells to use for eb stuff.
Definition: CD_AmrMesh.H:2021
void parseOptions()
Parse options. Called during the constructor.
Definition: CD_AmrMesh.cpp:915
void buildCopiers()
Build copiers for copying between realms.
Definition: CD_AmrMesh.cpp:1272
IrregStencil::StencilType m_stencilType
Stencil type.
Definition: CD_AmrMesh.H:1936
RealVect getProbLo() const
Get lower-left corner of computational domain.
Definition: CD_AmrMesh.cpp:2744
BoxSorting m_boxSort
Box sorting.
Definition: CD_AmrMesh.H:1926
void setMultifluidIndexSpace(const RefCountedPtr< MultiFluidIndexSpace > &a_multiFluidIndexSpace)
Sets multifluid index space.
Definition: CD_AmrMesh.cpp:891
int m_maxAmrDepth
Maximum amr depth.
Definition: CD_AmrMesh.H:1991
void defineRealms()
Define Realms.
Definition: CD_AmrMesh.cpp:3384
int m_finestLevel
Finest level.
Definition: CD_AmrMesh.H:1981
void reallocate(EBAMRCellData &a_data, const phase::which_phase a_phase, const int a_lmin) const
Reallocate data.
Definition: CD_AmrMesh.cpp:582
std::map< std::string, Vector< Copier > > m_oldToNewEBCopiers
Storage for copiers from the old grids to the new ones.
Definition: CD_AmrMesh.H:1892
AmrMesh & operator=(const AmrMesh &a_other)=delete
Disallowed copy assignment.
const Vector< EBISLayout > & getEBISLayout(const std::string a_realm, const phase::which_phase a_phase) const
Get EBISLayouts for a Realm and phase.
Definition: CD_AmrMesh.cpp:2988
Vector< RefCountedPtr< EBReflux > > & getFluxRegister(const std::string a_realm, const phase::which_phase a_phase) const
Get flux register.
Definition: CD_AmrMesh.cpp:3222
Vector< RefCountedPtr< EBFluxRedistribution > > & getRedistributionOp(const std::string a_realm, const phase::which_phase a_phase) const
Get the redistribution operators.
Definition: CD_AmrMesh.cpp:3239
std::map< phase::which_phase, RefCountedPtr< BaseIF > > m_baseif
Implicit functions.
Definition: CD_AmrMesh.H:1875
int getNumberOfGhostCells() const
Get the default number of ghost cells.
Definition: CD_AmrMesh.cpp:2799
void interpGhost(EBAMRCellData &a_data, const std::string a_realm, const phase::which_phase a_phase) const
Interpolate ghost vectors over a realm, using the default ghost cell interpolation method.
Definition: CD_AmrMesh.cpp:1863
const Vector< RefCountedPtr< MFLevelGrid > > & getMFLevelGrid(const std::string a_realm) const
Get EBISLayouts for a Realm.
Definition: CD_AmrMesh.cpp:3104
void regridAmr(const Vector< IntVectSet > &a_tags, const int a_lmin, const int a_hardcap=-1)
Regrid AMR. This versions generates the grids and Realms, but not the operator.
Definition: CD_AmrMesh.cpp:1079
void parseCoarsestLevelNumCells()
Parse the coarsest domain grid.
Definition: CD_AmrMesh.cpp:2318
const IrregAmrStencil< EbCentroidInterpolationStencil > & getEbCentroidInterpolationStencils(const std::string a_realm, const phase::which_phase a_phase) const
Get interpolation stencils for going from cell center to cell boundary centroid.
Definition: CD_AmrMesh.cpp:3274
void parseRedistributionRadius()
Parse the default redistribution radius.
Definition: CD_AmrMesh.cpp:2631
void interpolateParticles(ParticleContainer< P > &a_particles, const std::string &a_realm, const phase::which_phase &a_phase, const EBAMRCellData &a_meshScalarField, const DepositionType a_interpType, const bool a_forceIrregNGP=false) const
Interpolate a scalar field onto the particle position.
Definition: CD_AmrMeshImplem.H:495
int m_ebCentroidStencilOrder
Order for interpolation stencilst to EB.
Definition: CD_AmrMesh.H:2066
const IrregAmrStencil< NonConservativeDivergenceStencil > & getNonConservativeDivergenceStencils(const std::string a_realm, const phase::which_phase a_phase) const
Get the nonconservative divergence stencils.
Definition: CD_AmrMesh.cpp:3292
std::map< std::pair< std::string, std::string >, Vector< Copier > > m_validToValidGhostRealmCopiers
Map for copying between various Realms. First index is the "from" realm and second index is the "to" ...
Definition: CD_AmrMesh.H:1904
const Vector< Real > & getDx() const
Get spatial resolutions.
Definition: CD_AmrMesh.cpp:2917
int getBrBuffer() const
Return buffer for B-R mesh refinement algorithm.
Definition: CD_AmrMesh.cpp:2854
int getMaxBoxSize() const
Get maximum permitted box size.
Definition: CD_AmrMesh.cpp:2843
std::map< std::string, RefCountedPtr< Realm > > m_realms
These are all the Realms.
Definition: CD_AmrMesh.H:1870
int getMaxEbisBoxSize() const
Get maximum box size for EBIS generation.
Definition: CD_AmrMesh.cpp:2865
AmrMesh()
Default constructor.
Definition: CD_AmrMesh.cpp:31
void parseEbGhostCells()
Parse number of ghost cells for eb stuff.
Definition: CD_AmrMesh.cpp:2573
void parseMultigridInterpolator()
Parse settings for the multigrid interpolator.
Definition: CD_AmrMesh.cpp:2609
Vector< RefCountedPtr< EBCoarAve > > & getCoarseAverage(const std::string a_realm, const phase::which_phase a_phase) const
Get the coarsening utility.
Definition: CD_AmrMesh.cpp:3171
EBAMRCellData slice(EBAMRCellData &a_original, const Interval a_variables) const noexcept
Slice cell-centered data in order to fetch a subset of components.
Definition: CD_AmrMesh.cpp:50
int m_blockingFactor
Blocking factor.
Definition: CD_AmrMesh.H:2016
int getRefinementRatio(const int a_level1, const int a_level2) const
Get refinement factor between two levels.
Definition: CD_AmrMesh.cpp:2876
const IrregAmrStencil< CentroidInterpolationStencil > & getCentroidInterpolationStencils(const std::string a_realm, const phase::which_phase a_phase) const
Get interpolation stencils for going from cell center to cell centroid.
Definition: CD_AmrMesh.cpp:3256
void parseBlockingFactor()
Parse the B-R blocking factor. For tiled mesh refinement this parses the tile size.
Definition: CD_AmrMesh.cpp:2557
void interpolateParticles(ParticleContainer< P > &a_particles, const std::string &a_realm, const phase::which_phase &a_phase, const EBAMRCellData &a_meshVectorField, const DepositionType a_interpType, const bool a_forceIrregNGP=false) const
Interpolate a vector field onto the particle position.
int m_irregStenOrder
Stencil order for irregular stencils.
Definition: CD_AmrMesh.H:2076
int m_irregStenRadius
radius for irregular stencils
Definition: CD_AmrMesh.H:2081
int getBlockingFactor() const
Get blocking factor (i.e. the smallest possible box).
Definition: CD_AmrMesh.cpp:2832
void allocatePointer(Vector< RefCountedPtr< T >> &a_data) const
Allocate pointer but not any memory blocks.
Definition: CD_AmrMeshImplem.H:303
int m_multigridInterpWeight
Multigrid interpolation weights.
Definition: CD_AmrMesh.H:2046
std::map< std::string, Vector< DisjointBoxLayout > > m_oldGrids
Old grids.
Definition: CD_AmrMesh.H:1880
const AMRMask & getMask(const std::string a_mask, const int a_buffer, const std::string a_realm) const
Get a registered mask.
Definition: CD_AmrMesh.cpp:3022
void depositParticles(EBAMRIVData &a_meshData, const std::string &a_realm, const phase::which_phase &a_phase, const ParticleContainer< P > &a_particles) const noexcept
Deposit scalar particle quantities on the mesh.
void average(MFAMRCellData &a_data, const std::string a_realm, const Average &a_average) const
Average multifluid data over a specified realm.
Definition: CD_AmrMesh.cpp:1472
EBAMRSurfaceDeposition & getSurfaceDeposition(const std::string a_realm, const phase::which_phase a_phase) const
Get EBAMRSurfaceDeposition surface deposition operator.
Definition: CD_AmrMesh.cpp:3154
void preRegrid()
Run pre-regrid operations.
Definition: CD_AmrMesh.cpp:1010
void registerMask(const std::string a_mask, const int a_buffer, const std::string a_realm)
Register a boolean mask over a realm.
Definition: CD_AmrMesh.cpp:3368
AmrMesh(const AmrMesh &a_other)=delete
Disallowed copy constructor.
void parseBrFillRatio()
Parse the Berger-Rigoutsos fill ratio.
Definition: CD_AmrMesh.cpp:2395
Vector< ProblemDomain > m_domains
Problem domains.
Definition: CD_AmrMesh.H:2101
void parseProbLoHiCorners()
Parse the low/high corners of the computational domain.
Definition: CD_AmrMesh.cpp:967
void parseGridGeneration()
Parse the grid generation algorithm.
Definition: CD_AmrMesh.cpp:2518
void allocate(Vector< RefCountedPtr< ParticleData< T >>> &a_particles, const std::string a_realm) const
Template class for generic allocation of particle data.
Definition: CD_AmrMeshImplem.H:237
void interpToNewGrids(MFAMRCellData &a_newData, const MFAMRCellData &a_oldData, const int a_lmin, const int a_oldFinestLevel, const int a_newFinestLevel, const EBCoarseToFineInterp::Type a_type)
Interpolate data to new grids.
Definition: CD_AmrMesh.cpp:2080
void transferCoveredParticlesVoxels(ParticleContainer< P > &a_particlesFrom, ParticleContainer< P > &a_particlesTo, const phase::which_phase &a_phase) const
Function which transferse particles from one particle container to another if they fall inside the EB...
Definition: CD_AmrMeshImplem.H:922
void parseMaxEbisBoxSize()
Parse the maximum permitted box size.
Definition: CD_AmrMesh.cpp:2480
EBAMRParticleMesh & getParticleMesh(const std::string a_realm, const phase::which_phase a_phase) const
Get EBAMRParticleMesh operator.
Definition: CD_AmrMesh.cpp:3137
void alias(Vector< T * > &a_alias, const Vector< RefCountedPtr< T >> &a_data) const
Turn smart-pointer data structure into regular-pointer data structure.
Definition: CD_AmrMeshImplem.H:209
bool m_hasGrids
Has grids or not.
Definition: CD_AmrMesh.H:2086
Vector< RefCountedPtr< LayoutData< VoFIterator > > > & getVofIterator(const std::string a_realm, const phase::which_phase a_phase) const
Get vof iterators for a Realm and phase. This has the capability of iterating through cut-cells.
Definition: CD_AmrMesh.cpp:3005
IrregStencil::StencilType m_ebCentroidStencilType
Stencil type for EB interpolation.
Definition: CD_AmrMesh.H:1946
void deallocate(Vector< T * > &a_data) const
Deallocate data.
Definition: CD_AmrMeshImplem.H:161
int getMaxAmrDepth() const
Get maximum permitted amr depth.
Definition: CD_AmrMesh.cpp:2777
const Vector< int > & getRefinementRatios() const
Get refinement ratios.
Definition: CD_AmrMesh.cpp:2928
void regridOperators(const int a_lmin)
Regrid AMR operators. This is done for all realms.
Definition: CD_AmrMesh.cpp:1100
int getRedistributionRadius() const
Get default redistribution radius.
Definition: CD_AmrMesh.cpp:2821
const Vector< RefCountedPtr< LevelTiles > > & getLevelTiles(const std::string a_realm) const
Get the tiled space representation.
Definition: CD_AmrMesh.cpp:3054
BoxSorting getBoxSorting() const
Get box sorting method.
Definition: CD_AmrMesh.cpp:3488
void parseCentroidStencils()
Parse centroid interpolation stencils.
Definition: CD_AmrMesh.cpp:2647
int m_maxEbisBoxSize
Maximum box size for EBIS generation.
Definition: CD_AmrMesh.H:2006
int getNumberOfEbGhostCells() const
Get number of ghost cells used for EB grid generation.
Definition: CD_AmrMesh.cpp:2810
const EBAMRFAB & getLevelset(const std::string a_realm, const phase::which_phase a_phase) const
Get levelset function, allocated over a grid for a Realm and phase.
Definition: CD_AmrMesh.cpp:3121
IrregStencil::StencilType m_centroidStencilType
Stencil type for centroid interpolation.
Definition: CD_AmrMesh.H:1941
void setBaseImplicitFunction(const phase::which_phase a_phase, const RefCountedPtr< BaseIF > &a_baseIF)
Set implicit function for a specific phase. Need e.g. for level-sets.
Definition: CD_AmrMesh.cpp:904
int getFinestLevel() const
Get finest grid level.
Definition: CD_AmrMesh.cpp:2766
const Vector< RefCountedPtr< EBLevelGrid > > & getEBLevelGridCoFi(const std::string a_realm, const phase::which_phase a_phase) const
Get the coarsened fine EBLevelGrid for a Realm and phase.
Definition: CD_AmrMesh.cpp:3087
int m_redistributionRadius
Redistribution radius.
Definition: CD_AmrMesh.H:2051
const Vector< ProblemDomain > & getDomains() const
Get domains.
Definition: CD_AmrMesh.cpp:2950
int m_numLsfGhostCells
Number of ghost cells to use when writing level-set to grid.
Definition: CD_AmrMesh.H:2031
Default class for holding LevelData<T> data across an EBAMR realm.
Definition: CD_EBAMRData.H:40
Class for handling particle-mesh operations with AMR.
Definition: CD_EBAMRParticleMesh.H:47
class for handling surface deposition of particles with EB and AMR.
Definition: CD_EBAMRSurfaceDeposition.H:29
Type
Type of interpolation methods supported. PWC = Piecewise constant, ignoring the embedded boundary....
Definition: CD_EBCoarseToFineInterp.H:42
Class for holding VoFStencils on irregular cells over an entire AMR hierarchy. The template parameter...
Definition: CD_IrregAmrStencil.H:29
StencilType
Enum for identifying stencil – only meant for enhancing code visibility.
Definition: CD_IrregStencil.H:44
Templated class for holding particles on an AMR hierarchy with particle remapping.
Definition: CD_ParticleContainer.H:50