27 virtual unsigned int divisionIndex(
const Point & pt)
const override;
28 virtual unsigned int divisionIndex(
const Elem & elem)
const override;
42 const unsigned int _nx;
44 const unsigned int _ny;
46 const unsigned int _nz;
virtual unsigned int divisionIndex(const Point &pt) const override
Return the index of the division to which the point belongs.
Point _top_right
Top right point of the grid.
Positions objects are under the hood Reporters.
Divides the mesh based on a Cartesian grid.
const Point _widths
Width of the grid in all 3 axes.
const Point *const _center
Center of the grid, if user-specified.
Base class for MeshDivision objects.
const bool _outside_grid_counts_as_border
Whether to map outside the grid onto the corner.
Point _bottom_left
Bottom left point of the grid.
const unsigned int _nx
Number of divisions in the X direction.
virtual void initialize() override
Set up any data members that would be necessary to obtain the division indices.
static InputParameters validParams()
CartesianGridDivision(const InputParameters ¶meters)
const unsigned int _ny
Number of divisions in the Y direction.
const InputParameters & parameters() const
Get the parameters of the object.
const Positions *const _center_positions
Positions object holding the centers of the grids, if user-specified.
const unsigned int _nz
Number of divisions in the Z direction.