mantaflow  0.10
A framework for fluid simulation
Public Types | Public Member Functions | Protected Attributes | List of all members
Manta::GridBase Class Reference

#include <grid.h>

Inheritance diagram for Manta::GridBase:
Manta::Grid< int > Manta::Grid< Manta::Vector3D > Manta::Grid< Real > Manta::Grid< Vec3 > Manta::Grid< T > Manta::FlagGrid Manta::LevelsetGrid Manta::MACGrid

Public Types

enum  GridType {
  TypeNone = 0, TypeReal = 1, TypeInt = 2, TypeVec3 = 4,
  TypeMAC = 8, TypeLevelset = 16, TypeFlags = 32
}
 

Public Member Functions

 PYTHON () GridBase(FluidSolver *parent)
 
int getSizeX () const
 Get the grids X dimension.
 
int getSizeY () const
 Get the grids Y dimension.
 
int getSizeZ () const
 Get the grids Z dimension.
 
Vec3i getSize () const
 Get the grids dimensions.
 
IndexInt getStrideX () const
 Get Stride in X dimension.
 
IndexInt getStrideY () const
 Get Stride in Y dimension.
 
IndexInt getStrideZ () const
 Get Stride in Z dimension.
 
Real getDx ()
 
void checkIndex (int i, int j, int k) const
 Check if indices are within bounds, otherwise error (should only be called when debugging)
 
void checkIndex (IndexInt idx) const
 Check if indices are within bounds, otherwise error (should only be called when debugging)
 
bool isInBounds (const Vec3i &p, int bnd) const
 Check if index is within given boundaries.
 
bool isInBounds (const Vec3i &p) const
 Check if index is within given boundaries.
 
bool isInBounds (const Vec3 &p, int bnd=0) const
 Check if index is within given boundaries.
 
bool isInBounds (IndexInt idx) const
 Check if linear index is in the range of the array.
 
GridType getType () const
 Get the type of grid.
 
bool is3D () const
 Check dimensionality.
 
IndexInt index (int i, int j, int k) const
 Get index into the data.
 
IndexInt index (const Vec3i &pos) const
 Get index into the data.
 
bool is4D () const
 grid4d compatibility functions
 
int getSizeT () const
 
int getStrideT () const
 
int index (int i, int j, int k, int unused) const
 
bool isInBounds (int i, int j, int k, int t, int bnd) const
 

Protected Attributes

GridType mType
 
Vec3i mSize
 
Real mDx
 
bool m3D
 
IndexInt mStrideZ
 

Detailed Description

Base class for all grids


The documentation for this class was generated from the following file: