Block-Structured AMR Software Framework
amrex::EB2::Level Class Reference

#include <AMReX_EB2_Level.H>

Inheritance diagram for amrex::EB2::Level:
amrex::EB2::GShopLevel< ChkptFile > amrex::EB2::GShopLevel< STLtools > amrex::EB2::GShopLevel< G > amrex::EB2::ChkptFileLevel amrex::EB2::STLLevel

Public Member Functions

bool isAllRegular () const noexcept
 
bool isOK () const noexcept
 
void fillEBCellFlag (FabArray< EBCellFlagFab > &cellflag, const Geometry &geom) const
 
void fillVolFrac (MultiFab &vfrac, const Geometry &geom) const
 
void fillCentroid (MultiCutFab &centroid, const Geometry &geom) const
 
void fillCentroid (MultiFab &centroid, const Geometry &geom) const
 
void fillBndryArea (MultiCutFab &bndryarea, const Geometry &geom) const
 
void fillBndryArea (MultiFab &bndryarea, const Geometry &geom) const
 
void fillBndryCent (MultiCutFab &bndrycent, const Geometry &geom) const
 
void fillBndryCent (MultiFab &bndrycent, const Geometry &geom) const
 
void fillBndryNorm (MultiCutFab &bndrynorm, const Geometry &geom) const
 
void fillBndryNorm (MultiFab &bndrynorm, const Geometry &geom) const
 
void fillAreaFrac (Array< MultiCutFab *, AMREX_SPACEDIM > const &areafrac, const Geometry &geom) const
 
void fillAreaFrac (Array< MultiFab *, AMREX_SPACEDIM > const &areafrac, const Geometry &geom) const
 
void fillFaceCent (Array< MultiCutFab *, AMREX_SPACEDIM > const &facecent, const Geometry &geom) const
 
void fillFaceCent (Array< MultiFab *, AMREX_SPACEDIM > const &facecent, const Geometry &geom) const
 
void fillEdgeCent (Array< MultiCutFab *, AMREX_SPACEDIM > const &edgecent, const Geometry &geom) const
 
void fillEdgeCent (Array< MultiFab *, AMREX_SPACEDIM > const &edgecent, const Geometry &geom) const
 
void fillLevelSet (MultiFab &levelset, const Geometry &geom) const
 
const BoxArrayboxArray () const noexcept
 
const DistributionMappingDistributionMap () const noexcept
 
 Level (IndexSpace const *is, const Geometry &geom)
 
void prepareForCoarsening (const Level &rhs, int max_grid_size, IntVect const &ngrow)
 
const GeometryGeom () const noexcept
 
IndexSpace const * getEBIndexSpace () const noexcept
 
IntVect const & nGrowVect () const noexcept
 
void write_to_chkpt_file (const std::string &fname, bool extend_domain_face, int max_grid_size) const
 
bool hasEBInfo () const noexcept
 
void fillCutCellMask (iMultiFab &cutcellmask, const Geometry &geom) const
 
int coarsenFromFine (Level &fineLevel, bool fill_boundary)
 
void buildCellFlag ()
 
void buildCutCellMask (Level const &fine_level)
 

Protected Attributes

Geometry m_geom
 
IntVect m_ngrow
 
BoxArray m_grids
 
BoxArray m_covered_grids
 
DistributionMapping m_dmap
 
MultiGFab m_mgf
 
MultiFab m_levelset
 
FabArray< EBCellFlagFabm_cellflag
 
MultiFab m_volfrac
 
MultiFab m_centroid
 
MultiFab m_bndryarea
 
MultiFab m_bndrycent
 
MultiFab m_bndrynorm
 
Array< MultiFab, AMREX_SPACEDIM > m_areafrac
 
Array< MultiFab, AMREX_SPACEDIM > m_facecent
 
Array< MultiFab, AMREX_SPACEDIM > m_edgecent
 
iMultiFab m_cutcellmask
 
bool m_allregular = false
 
bool m_ok = false
 
bool m_has_eb_info = true
 
IndexSpace const * m_parent
 

Private Member Functions

void setRegularLevel ()
 

Friends

template<typename G >
class GShopLevel
 

Constructor & Destructor Documentation

◆ Level()

amrex::EB2::Level::Level ( IndexSpace const *  is,
const Geometry geom 
)
inline

Member Function Documentation

◆ boxArray()

const BoxArray& amrex::EB2::Level::boxArray ( ) const
inlinenoexcept

◆ buildCellFlag()

void amrex::EB2::Level::buildCellFlag ( )

◆ buildCutCellMask()

void amrex::EB2::Level::buildCutCellMask ( Level const &  fine_level)

◆ coarsenFromFine()

int amrex::EB2::Level::coarsenFromFine ( Level fineLevel,
bool  fill_boundary 
)

◆ DistributionMap()

const DistributionMapping& amrex::EB2::Level::DistributionMap ( ) const
inlinenoexcept

◆ fillAreaFrac() [1/2]

void amrex::EB2::Level::fillAreaFrac ( Array< MultiCutFab *, AMREX_SPACEDIM > const &  areafrac,
const Geometry geom 
) const

◆ fillAreaFrac() [2/2]

void amrex::EB2::Level::fillAreaFrac ( Array< MultiFab *, AMREX_SPACEDIM > const &  areafrac,
const Geometry geom 
) const

◆ fillBndryArea() [1/2]

void amrex::EB2::Level::fillBndryArea ( MultiCutFab bndryarea,
const Geometry geom 
) const

◆ fillBndryArea() [2/2]

void amrex::EB2::Level::fillBndryArea ( MultiFab bndryarea,
const Geometry geom 
) const

◆ fillBndryCent() [1/2]

void amrex::EB2::Level::fillBndryCent ( MultiCutFab bndrycent,
const Geometry geom 
) const

◆ fillBndryCent() [2/2]

void amrex::EB2::Level::fillBndryCent ( MultiFab bndrycent,
const Geometry geom 
) const

◆ fillBndryNorm() [1/2]

void amrex::EB2::Level::fillBndryNorm ( MultiCutFab bndrynorm,
const Geometry geom 
) const

◆ fillBndryNorm() [2/2]

void amrex::EB2::Level::fillBndryNorm ( MultiFab bndrynorm,
const Geometry geom 
) const

◆ fillCentroid() [1/2]

void amrex::EB2::Level::fillCentroid ( MultiCutFab centroid,
const Geometry geom 
) const

◆ fillCentroid() [2/2]

void amrex::EB2::Level::fillCentroid ( MultiFab centroid,
const Geometry geom 
) const

◆ fillCutCellMask()

void amrex::EB2::Level::fillCutCellMask ( iMultiFab cutcellmask,
const Geometry geom 
) const

◆ fillEBCellFlag()

void amrex::EB2::Level::fillEBCellFlag ( FabArray< EBCellFlagFab > &  cellflag,
const Geometry geom 
) const

◆ fillEdgeCent() [1/2]

void amrex::EB2::Level::fillEdgeCent ( Array< MultiCutFab *, AMREX_SPACEDIM > const &  edgecent,
const Geometry geom 
) const

◆ fillEdgeCent() [2/2]

void amrex::EB2::Level::fillEdgeCent ( Array< MultiFab *, AMREX_SPACEDIM > const &  edgecent,
const Geometry geom 
) const

◆ fillFaceCent() [1/2]

void amrex::EB2::Level::fillFaceCent ( Array< MultiCutFab *, AMREX_SPACEDIM > const &  facecent,
const Geometry geom 
) const

◆ fillFaceCent() [2/2]

void amrex::EB2::Level::fillFaceCent ( Array< MultiFab *, AMREX_SPACEDIM > const &  facecent,
const Geometry geom 
) const

◆ fillLevelSet()

void amrex::EB2::Level::fillLevelSet ( MultiFab levelset,
const Geometry geom 
) const

◆ fillVolFrac()

void amrex::EB2::Level::fillVolFrac ( MultiFab vfrac,
const Geometry geom 
) const

◆ Geom()

const Geometry& amrex::EB2::Level::Geom ( ) const
inlinenoexcept

◆ getEBIndexSpace()

IndexSpace const* amrex::EB2::Level::getEBIndexSpace ( ) const
inlinenoexcept

◆ hasEBInfo()

bool amrex::EB2::Level::hasEBInfo ( ) const
inlinenoexcept

◆ isAllRegular()

bool amrex::EB2::Level::isAllRegular ( ) const
inlinenoexcept

◆ isOK()

bool amrex::EB2::Level::isOK ( ) const
inlinenoexcept

◆ nGrowVect()

IntVect const& amrex::EB2::Level::nGrowVect ( ) const
inlinenoexcept

◆ prepareForCoarsening()

void amrex::EB2::Level::prepareForCoarsening ( const Level rhs,
int  max_grid_size,
IntVect const &  ngrow 
)

◆ setRegularLevel()

void amrex::EB2::Level::setRegularLevel ( )
inlineprivate

◆ write_to_chkpt_file()

void amrex::EB2::Level::write_to_chkpt_file ( const std::string &  fname,
bool  extend_domain_face,
int  max_grid_size 
) const

Friends And Related Function Documentation

◆ GShopLevel

template<typename G >
friend class GShopLevel
friend

Member Data Documentation

◆ m_allregular

bool amrex::EB2::Level::m_allregular = false
protected

◆ m_areafrac

Array<MultiFab,AMREX_SPACEDIM> amrex::EB2::Level::m_areafrac
protected

◆ m_bndryarea

MultiFab amrex::EB2::Level::m_bndryarea
protected

◆ m_bndrycent

MultiFab amrex::EB2::Level::m_bndrycent
protected

◆ m_bndrynorm

MultiFab amrex::EB2::Level::m_bndrynorm
protected

◆ m_cellflag

FabArray<EBCellFlagFab> amrex::EB2::Level::m_cellflag
protected

◆ m_centroid

MultiFab amrex::EB2::Level::m_centroid
protected

◆ m_covered_grids

BoxArray amrex::EB2::Level::m_covered_grids
protected

◆ m_cutcellmask

iMultiFab amrex::EB2::Level::m_cutcellmask
protected

◆ m_dmap

DistributionMapping amrex::EB2::Level::m_dmap
protected

◆ m_edgecent

Array<MultiFab,AMREX_SPACEDIM> amrex::EB2::Level::m_edgecent
protected

◆ m_facecent

Array<MultiFab,AMREX_SPACEDIM> amrex::EB2::Level::m_facecent
protected

◆ m_geom

Geometry amrex::EB2::Level::m_geom
protected

◆ m_grids

BoxArray amrex::EB2::Level::m_grids
protected

◆ m_has_eb_info

bool amrex::EB2::Level::m_has_eb_info = true
protected

◆ m_levelset

MultiFab amrex::EB2::Level::m_levelset
protected

◆ m_mgf

MultiGFab amrex::EB2::Level::m_mgf
protected

◆ m_ngrow

IntVect amrex::EB2::Level::m_ngrow
protected

◆ m_ok

bool amrex::EB2::Level::m_ok = false
protected

◆ m_parent

IndexSpace const* amrex::EB2::Level::m_parent
protected

◆ m_volfrac

MultiFab amrex::EB2::Level::m_volfrac
protected

The documentation for this class was generated from the following files: