Class GridProperties

Inheritance Relationships

Base Type

Class Documentation

class GridProperties : public Referenced

Combines parameters that uniquely define Grid class.

Public Functions

GridProperties(Vector3d origin, size_t N, double spacing)

Constructor for cubic grid

Parameters
  • origin: Position of the lower left front corner of the volume
  • N: Number of grid points in one direction
  • spacing: Spacing between grid points

GridProperties(Vector3d origin, size_t Nx, size_t Ny, size_t Nz, double spacing)

Constructor for non-cubic grid

Parameters
  • origin: Position of the lower left front corner of the volume
  • Nx: Number of grid points in x-direction
  • Ny: Number of grid points in y-direction
  • Nz: Number of grid points in z-direction
  • spacing: Spacing between grid points

GridProperties(Vector3d origin, size_t Nx, size_t Ny, size_t Nz, Vector3d spacing)

Constructor for non-cubic grid with spacing vector

Parameters
  • origin: Position of the lower left front corner of the volume
  • Nx: Number of grid points in x-direction
  • Ny: Number of grid points in y-direction
  • Nz: Number of grid points in z-direction
  • spacing: Spacing vector between grid points

virtual ~GridProperties()
void setReflective(bool b)
size_t addReference() const
size_t removeReference() const
int removeReferenceNoDelete() const
size_t getReferenceCount() const

Public Members

size_t Nx
size_t Ny
size_t Nz
Vector3d origin
Vector3d spacing
bool reflective

Protected Attributes

size_t _referenceCount