|
IBAMR
IBAMR version 0.19.
|
#include <ibtk/MarkerPatchHierarchy.h>
Public Member Functions | |
| MarkerPatch (const SAMRAI::hier::Box< NDIM > &patch_box, const std::vector< SAMRAI::hier::Box< NDIM > > &nonoverlapping_patch_boxes, const SAMRAI::tbox::Pointer< SAMRAI::geom::CartesianGridGeometry< NDIM > > &grid_geom, const SAMRAI::hier::IntVector< NDIM > &ratio) | |
| void | insert (const int &index, const IBTK::Point &position, const IBTK::Vector &velocity) |
| bool | contains (const IBTK::Point &position) const |
| std::tuple< std::vector< int >, std::vector< IBTK::Point >, std::vector< IBTK::Vector > > | prune () |
| std::tuple< int, IBTK::Point, IBTK::Vector > | operator[] (const unsigned int index) const |
| std::size_t | size () const |
Private Attributes | |
| std::vector< int > | d_indices |
| std::vector< double > | d_positions |
| std::vector< double > | d_velocities |
| SAMRAI::hier::Box< NDIM > | d_patch_box |
| std::vector< SAMRAI::hier::Box< NDIM > > | d_nonoverlapping_patch_boxes |
| SAMRAI::hier::Box< NDIM > | d_domain_box |
| std::array< double, NDIM > | d_x_lo |
| std::array< double, NDIM > | d_x_up |
| std::array< double, NDIM > | d_dx |
Friends | |
| class | MarkerPatchHierarchy |
Structure containing all relevant data to store markers on a Patch.
| IBTK::MarkerPatch::MarkerPatch | ( | const SAMRAI::hier::Box< NDIM > & | patch_box, |
| const std::vector< SAMRAI::hier::Box< NDIM > > & | nonoverlapping_patch_boxes, | ||
| const SAMRAI::tbox::Pointer< SAMRAI::geom::CartesianGridGeometry< NDIM > > & | grid_geom, | ||
| const SAMRAI::hier::IntVector< NDIM > & | ratio | ||
| ) |
Constructor.
| [in] | patch_box | Box, defined over the patch's level's index space, for the present Patch. |
| [in] | nonoverlapping_patch_boxes | The subset of patch_box which is uniquely indexed by this Patch. |
| [in] | grid_geom | The grid geometry. |
| [in] | ratio | The ratio of the Path's level to the coarsest level. |
| void IBTK::MarkerPatch::insert | ( | const int & | index, |
| const IBTK::Point & | position, | ||
| const IBTK::Vector & | velocity | ||
| ) |
Add a marker point.
| bool IBTK::MarkerPatch::contains | ( | const IBTK::Point & | position | ) | const |
Return whether or not the point should be uniquely assigned to this Patch.
| std::tuple<std::vector<int>, std::vector<IBTK::Point>, std::vector<IBTK::Vector> > IBTK::MarkerPatch::prune | ( | ) |
Remove all marker points which do not lie in cells uniquely owned by this patch.
| std::tuple<int, IBTK::Point, IBTK::Vector> IBTK::MarkerPatch::operator[] | ( | const unsigned int | index | ) | const |
Return the index-th marker point stored by the present Patch.
| std::size_t IBTK::MarkerPatch::size | ( | ) | const |
Return the number of marker points presently stored by this object.
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.17