waLBerla 7.3
Loading...
Searching...
No Matches
walberla::v8::domain::CellGrid Class Reference

Detailed Description

Geometric properties of a cell grid.

Represents a grid of cells with a given bounding box (CellGrid::aabb()), covered by a given interval of cells (CellGrid::cells()) and exposes functions to compute the bounding boxes and center points of cells that are part of this grid.

Note
This class is device-copyable. All its public member functions can be called from device code.

#include <GridGeometry.hpp>

Public Member Functions

WALBERLA_HOST_DEVICE CellGrid (AABB aabb, CellInterval cellBb, Vector3< real_t > cellExtents)
WALBERLA_HOST_DEVICE const AABBaabb () const
WALBERLA_HOST_DEVICE const CellIntervalcells () const
WALBERLA_HOST_DEVICE const Vector3< real_t > & cellExtents () const
WALBERLA_HOST_DEVICE Vector3< real_tcellCenter (const Cell &c) const

Private Attributes

AABB aabb_
CellInterval cellBb_
Vector3< real_tcellExtents_

Constructor & Destructor Documentation

◆ CellGrid()

WALBERLA_HOST_DEVICE walberla::v8::domain::CellGrid::CellGrid ( AABB aabb,
CellInterval cellBb,
Vector3< real_t > cellExtents )
inline

Member Function Documentation

◆ aabb()

WALBERLA_HOST_DEVICE const AABB & walberla::v8::domain::CellGrid::aabb ( ) const
inline

◆ cellCenter()

WALBERLA_HOST_DEVICE Vector3< real_t > walberla::v8::domain::CellGrid::cellCenter ( const Cell & c) const
inline

◆ cellExtents()

WALBERLA_HOST_DEVICE const Vector3< real_t > & walberla::v8::domain::CellGrid::cellExtents ( ) const
inline

◆ cells()

WALBERLA_HOST_DEVICE const CellInterval & walberla::v8::domain::CellGrid::cells ( ) const
inline

Member Data Documentation

◆ aabb_

AABB walberla::v8::domain::CellGrid::aabb_
private

◆ cellBb_

CellInterval walberla::v8::domain::CellGrid::cellBb_
private

◆ cellExtents_

Vector3< real_t > walberla::v8::domain::CellGrid::cellExtents_
private

The documentation for this class was generated from the following file:
  • /builds/administration/walberla-website/walberla/include/walberla/v8/domain/GridGeometry.hpp