chombo-discharge
Public Member Functions | Protected Attributes | List of all members
Physics::AdvectionDiffusion::AdvectionDiffusionTagger Class Reference

Class for tagging cells in AdvectionDiffusion physics. More...

#include <CD_AdvectionDiffusionTagger.H>

Inheritance diagram for Physics::AdvectionDiffusion::AdvectionDiffusionTagger:
Inheritance graph
[legend]
Collaboration diagram for Physics::AdvectionDiffusion::AdvectionDiffusionTagger:
Collaboration graph
[legend]

Public Member Functions

 AdvectionDiffusionTagger ()=delete
 Disallowed weak construction.
 
 AdvectionDiffusionTagger (RefCountedPtr< CdrSolver > &a_solver, RefCountedPtr< AmrMesh > &a_amr)
 Constructor. More...
 
virtual ~AdvectionDiffusionTagger ()
 Destructor (does nothing)
 
void regrid () override
 Regrid method. More...
 
void parseOptions () override
 Parse options. More...
 
bool tagCells (EBAMRTags &a_tags) override
 Flag cells for refinement. More...
 
- Public Member Functions inherited from CellTagger
 CellTagger ()
 Weak constructor (does nothing)
 
virtual ~CellTagger ()
 Destructor (does nothing).
 
virtual void preRegrid () noexcept
 Pre-regrid function for cell-tagger.
 
virtual void parseRuntimeOptions ()
 Parse runtime class options. More...
 
virtual void prePlot () const noexcept
 Perform pre-plotting operations (if necessary)
 
virtual int getNumberOfPlotVariables () const
 Get number of plot variables that will be written to file (by Driver). More...
 
virtual Vector< std::string > getPlotVariableNames () const
 Get plot variable names.
 
virtual void writePlotData (LevelData< EBCellFAB > &a_output, int &a_icomp, const std::string a_outputRealm, const int a_level) const
 Write plot data. More...
 
virtual int getBuffer () const
 Get tag buffer. More...
 

Protected Attributes

std::string m_realm
 Realm where solver is registered.
 
RefCountedPtr< CdrSolverm_solver
 Reference to CdrSolver.
 
RefCountedPtr< AmrMeshm_amr
 Reference to AmrMesh.
 
Real m_refCurv
 Refinement threshold for curvature-based refinement.
 
Real m_refMagn
 Refinement threshold for magnitude-based refinement.
 
- Protected Attributes inherited from CellTagger
std::string m_name
 Cell tagger class name (default is CellTagger).
 
int m_verbosity
 Class verbosity.
 
int m_buffer
 Tag buffer. Grow tags by this amount (finest level only)
 
Vector< RealBoxm_tagBoxes
 Boxes that can be used to restrict tagging.
 
std::vector< std::pair< RealBox, int > > m_refBoxes
 Refinement boxes for adding manual refinement.
 

Additional Inherited Members

- Protected Member Functions inherited from CellTagger
bool insideTagBox (const RealVect a_pos) const
 Check if a point is inside a tagging box. More...
 
int getManualRefinementLevel (const RealVect a_pos) const
 Get the specified level for this position when doing manual refinement.
 
virtual void parseTagBoxes ()
 Parse boxes. More...
 
virtual void parseRefinementBoxes ()
 Parse refinement boxes.
 
virtual void parseBuffer ()
 Parse refinement buffer. More...
 
virtual void parseVerbosity ()
 Parse the verbosity from the input file or command line. More...
 

Detailed Description

Class for tagging cells in AdvectionDiffusion physics.

This class refines cells if grad(phi)*dx/phi > r1 or if phi > r2.

Constructor & Destructor Documentation

◆ AdvectionDiffusionTagger()

AdvectionDiffusionTagger::AdvectionDiffusionTagger ( RefCountedPtr< CdrSolver > &  a_solver,
RefCountedPtr< AmrMesh > &  a_amr 
)

Constructor.

Parameters
[in]a_solverCdr solver reference – needed in order to fetch data used for tagging
[in]a_amrAmrMesh solver reference

Member Function Documentation

◆ parseOptions()

void AdvectionDiffusionTagger::parseOptions ( )
overridevirtual

Parse options.

Parses m_refCurv and m_refMagn.

Implements CellTagger.

◆ regrid()

void AdvectionDiffusionTagger::regrid ( )
overridevirtual

Regrid method.

Does nothing, but is overriden because parent method is pure.

Implements CellTagger.

◆ tagCells()

bool AdvectionDiffusionTagger::tagCells ( EBAMRTags a_tags)
overridevirtual

Flag cells for refinement.

Parameters
[in,out]a_tagsCell tags across AMR hierarchy. See CellTagger for details.

Implements CellTagger.


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