|
mantaflow
0.10
A framework for fluid simulation
|
#include <grid4d.h>
Public Types | |
| enum | Grid4dType { TypeNone = 0, TypeReal = 1, TypeInt = 2, TypeVec3 = 4, TypeVec4 = 8 } |
Public Member Functions | |
| PYTHON () Grid4dBase(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. | |
| int | getSizeT () const |
| Get the grids T dimension. | |
| Vec4i | 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. | |
| IndexInt | getStrideT () const |
| Get Stride in T dimension. | |
| Real | getDx () |
| void | checkIndex (int i, int j, int k, int t) 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 Vec4i &p, int bnd) const |
| Check if index is within given boundaries. | |
| bool | isInBounds (const Vec4i &p) const |
| Check if index is within given boundaries. | |
| bool | isInBounds (const Vec4 &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. | |
| Grid4dType | getType () const |
| Get the type of grid. | |
| bool | is3D () const |
| Check dimensionality. | |
| bool | is4D () const |
| bool | isInBounds (int i, int j, int k, int t, int bnd) const |
| 3d compatibility | |
| IndexInt | index (int i, int j, int k, int t) const |
| Get index into the data. | |
| IndexInt | index (const Vec4i &pos) const |
| Get index into the data. | |
Protected Attributes | |
| Grid4dType | mType |
| Vec4i | mSize |
| Real | mDx |
| IndexInt | mStrideZ |
| IndexInt | mStrideT |
Base class for all grids
1.8.13