Cell class#

template<std::size_t dim_, class TInterval>
class Cell#

Define a mesh cell in multi dimensions.

A cell is defined by its level, its integer coordinates, and its index in the data array.

Template Parameters:
  • dim_ – The dimension of the cell.

  • TInterval – The type of the interval.

Public Functions

inline coords_t corner() const#

The minimum corner of the cell.

inline coords_t center() const#

The center of the cell.

The minimum corner of the cell.

template<class Vector>
coords_t face_center(const Vector &direction) const#

The center of the face in the requested Cartesian direction.

Public Members

std::size_t level = 0#

The level of the cell.

indices_t indices#

The integer coordinates of the cell.

index_t index = 0#

The index where the cell is in the data array.

double length = 0#

The length of the cell.