Lightweight tagging class which flags cells for refinement/coarsening using the electric field only.
More...
|
| CdrPlasmaFieldTagger () |
| Weak constructor, must subsequently call define.
|
|
virtual | ~CdrPlasmaFieldTagger () |
| Destructor.
|
|
void | computeTracers () const override final |
| Compute tracer fields. More...
|
|
virtual void | parseOptions () override=0 |
| Parse options. Must be implemented by users.
|
|
| CdrPlasmaTagger () |
| Weak constructor. Must subsequently call define.
|
|
| CdrPlasmaTagger (const RefCountedPtr< CdrPlasmaPhysics > &a_physics, const RefCountedPtr< CdrPlasmaStepper > &a_timeStepper, const RefCountedPtr< AmrMesh > &a_amr, const RefCountedPtr< ComputationalGeometry > &a_computationalGeometry) |
| Full constructor. Leaves object in usable state. More...
|
|
virtual | ~CdrPlasmaTagger () |
| Destructor.
|
|
void | define (const RefCountedPtr< CdrPlasmaPhysics > &a_physics, const RefCountedPtr< CdrPlasmaStepper > &a_timeStepper, const RefCountedPtr< AmrMesh > &a_amr, const RefCountedPtr< ComputationalGeometry > &a_computationalGeometry) |
| Define function constructor. Leaves object in usable state. More...
|
|
virtual void | prePlot () const noexcept override |
| Pre-plot magic for Driver.
|
|
virtual void | preRegrid () noexcept override |
| Perform pre-regrid operations.
|
|
virtual void | regrid () override final |
| Regrid method – used for reallocating storage for the tracer fields.
|
|
virtual bool | tagCells (EBAMRTags &a_tags) override final |
| Tag cells for refinement. More...
|
|
virtual int | getNumberOfPlotVariables () const override final |
| Get number of plot variables. This is fetched by Driver and can be used.
|
|
virtual Vector< std::string > | getPlotVariableNames () const override final |
| Get plot variable names.
|
|
virtual void | writePlotData (LevelData< EBCellFAB > &a_output, int &a_icomp, const std::string a_outputRealm, const int a_level) const override final |
| Write plot data. More...
|
|
| CellTagger () |
| Weak constructor (does nothing)
|
|
virtual | ~CellTagger () |
| Destructor (does nothing).
|
|
virtual void | parseRuntimeOptions () |
| Parse runtime class options. More...
|
|
virtual int | getBuffer () const |
| Get tag buffer. More...
|
|
|
virtual void | allocateStorage () const |
| Allocate memory for electric field and scratch.
|
|
virtual void | deallocateStorage () const |
| Deallocate memory for electric field and scratch.
|
|
virtual void | computeElectricField (EBAMRCellData &a_electricField, EBAMRCellData &a_gradientElectricField) const |
| Compute electric field onto the input data holders. More...
|
|
virtual Vector< Real > | tracer (const RealVect a_pos, const Real a_time, const Real a_dx, const RealVect a_electricField, const Real a_minElectricField, const Real a_maxElectricField, const RealVect a_gradElectricField, const Real a_minGradElectricField, const Real a_maxGradElectricField) const =0 |
| Compute tracer field. More...
|
|
virtual bool | coarsenCell (const RealVect a_pos, const Real a_time, const Real a_dx, const int a_lvl, const Vector< Real > a_tracers, const Vector< RealVect > a_gradTracers) const override=0 |
| Coarsen a cell based on a tracer field. More...
|
|
virtual bool | refineCell (const RealVect a_pos, const Real a_time, const Real a_dx, const int a_lvl, const Vector< Real > a_tracers, const Vector< RealVect > a_gradTracers) const override=0 |
| Refine a cell based on a tracer field. More...
|
|
virtual void | refineCellsBox (DenseIntVectSet &a_refinedCells, const Vector< EBCellFAB * > &a_tracers, const Vector< EBCellFAB * > &a_gradTracers, const int a_lvl, const DataIndex a_dit, const Box a_box, const EBISBox &a_ebisbox, const Real a_time, const Real a_dx, const RealVect a_probLo) |
| Per-box refinement method. More...
|
|
virtual void | coarsenCellsBox (DenseIntVectSet &a_coarsenedCells, const Vector< EBCellFAB * > &a_tracers, const Vector< EBCellFAB * > &a_gradTracers, const int a_lvl, const DataIndex a_dit, const Box a_box, const EBISBox &a_ebisbox, const Real a_time, const Real a_dx, const RealVect a_probLo) |
| Per-box coarsening method. More...
|
|
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...
|
|
Lightweight tagging class which flags cells for refinement/coarsening using the electric field only.
This class fetches the point-wise electric field. The class is pure, so users must implement the actual tagging criterion themselves.