Class CartSideDoubleDivPreservingRefine is a concrete SAMRAI::xfer::RefinePatchStrategy which prolongs side-centered double precision patch data via conservative linear interpolation with divergence- and curl-preserving corrections.
More...
#include </home/runner/work/IBAMR/IBAMR/ibtk/include/ibtk/CartSideDoubleDivPreservingRefine.h>
|
| CartSideDoubleDivPreservingRefine (int u_dst_idx, int u_src_idx, int indicator_idx, SAMRAI::tbox::Pointer< SAMRAI::xfer::RefineOperator< NDIM > > refine_op, SAMRAI::tbox::Pointer< SAMRAI::xfer::CoarsenOperator< NDIM > > coarsen_op, double fill_time, SAMRAI::xfer::RefinePatchStrategy< NDIM > *phys_bdry_op) |
| Constructor.
|
|
virtual | ~CartSideDoubleDivPreservingRefine ()=default |
| Virtual destructor.
|
|
virtual void | preprocessRefineBoxes (hier::Patch< NDIM > &fine, const hier::Patch< NDIM > &coarse, const hier::BoxList< NDIM > &fine_boxes, const hier::IntVector< NDIM > &ratio) |
|
virtual void | postprocessRefineBoxes (hier::Patch< NDIM > &fine, const hier::Patch< NDIM > &coarse, const hier::BoxList< NDIM > &fine_boxes, const hier::IntVector< NDIM > &ratio) |
|
Class CartSideDoubleDivPreservingRefine is a concrete SAMRAI::xfer::RefinePatchStrategy which prolongs side-centered double precision patch data via conservative linear interpolation with divergence- and curl-preserving corrections.
◆ getRefineOpStencilWidth()
IntVector< NDIM > IBTK::CartSideDoubleDivPreservingRefine::getRefineOpStencilWidth |
( |
| ) |
const |
|
overridevirtual |
Function to return maximum stencil width needed over user-defined data interpolation operations. This is needed to determine the correct interpolation data dependencies.
Implements SAMRAI::xfer::RefinePatchStrategy< NDIM >.
◆ postprocessRefine()
Function to perform user-defined preprocess data refine operations. This member function is called after standard refine operations (expressed using concrete subclasses of the SAMRAI::xfer::RefineOperator base class). The postprocess function refines data from the scratch components of the coarse patch into the scratch components of the fine patch on the specified fine box region. Recall that the scratch components are specified in calls to the registerRefine() function in the SAMRAI::xfer::RefineAlgorithm class.
- Parameters
-
fine | Fine patch containing destination data. |
coarse | Coarse patch containing source data. |
fine_box | Box region on fine patch into which data is refined. |
ratio | Integer vector containing ratio relating index space between coarse and fine patches. |
Implements SAMRAI::xfer::RefinePatchStrategy< NDIM >.
◆ preprocessRefine()
Function to perform user-defined preprocess data refine operations. This member function is called before standard refine operations (expressed using concrete subclasses of the SAMRAI::xfer::RefineOperator base class). The preprocess function refines data from the scratch components of the coarse patch into the scratch components of the fine patch on the specified fine box region. Recall that the scratch components are specified in calls to the registerRefine() function in the SAMRAI::xfer::RefineAlgorithm class.
- Parameters
-
fine | Fine patch containing destination data. |
coarse | Coarse patch containing source data. |
fine_box | Box region on fine patch into which data is refined. |
ratio | Integer vector containing ratio relating index space between coarse and fine patches. |
Implements SAMRAI::xfer::RefinePatchStrategy< NDIM >.
◆ setPhysicalBoundaryConditions()
Function to set data associated with the given list of patch data indices at patch boundaries that intersect the physical domain boundary. The specific boundary conditions are determined by the user. The patch data components set in this routine correspond to the scratch components specified in calls to the registerRefine() function in the SAMRAI::xfer::RefineAlgorithm class.
- Parameters
-
patch | Patch on which to fill boundary data. |
fill_time | Double simulation time for boundary filling. |
ghost_width_to_fill | Integer vector describing maximum ghost width to fill over all registered scratch components. |
Implements SAMRAI::xfer::RefinePatchStrategy< NDIM >.
◆ REFINE_OP_STENCIL_WIDTH
const int IBTK::CartSideDoubleDivPreservingRefine::REFINE_OP_STENCIL_WIDTH = 4 |
|
static |
The number of required ghost cells.
- Note
- This value is chosen to allow refinement ratios up to 4. A larger value would be necessary for refinement ratios greater than 4.
The documentation for this class was generated from the following files:
- /home/runner/work/IBAMR/IBAMR/ibtk/include/ibtk/CartSideDoubleDivPreservingRefine.h
- /home/runner/work/IBAMR/IBAMR/ibtk/src/refine_ops/CartSideDoubleDivPreservingRefine.cpp