mantaflow  0.10
A framework for fluid simulation
Classes | Functions
grid.h File Reference
#include "manta.h"
#include "vectorbase.h"
#include "interpol.h"
#include "interpolHigh.h"
#include "kernel.h"

Go to the source code of this file.

Classes

class  Manta::GridBase
 
class  Manta::Grid< T >
 
class  Manta::MACGrid
 
class  Manta::FlagGrid
 

Functions

Vec3 Manta::calcGridSizeFactor (Vec3i s1, Vec3i s2)
 helper to compute grid conversion factor between local coordinates of two grids
 
PYTHON void Manta::copyMacToVec3 (MACGrid &source, Grid< Vec3 > &target)
 
PYTHON void Manta::convertMacToVec3 (MACGrid &source, Grid< Vec3 > &target)
 
PYTHON void Manta::resampleVec3ToMac (Grid< Vec3 > &source, MACGrid &target)
 
PYTHON void Manta::resampleMacToVec3 (MACGrid &source, Grid< Vec3 > &target)
 
PYTHON void Manta::getComponent (const Grid< Vec3 > &source, Grid< Real > &target, int component)
 
PYTHON void Manta::setComponent (const Grid< Real > &source, Grid< Vec3 > &target, int component)
 
void Manta::gridAdd (Grid< T > &me, const Grid< S > &other)
 
void Manta::gridSub (Grid< T > &me, const Grid< S > &other)
 
void Manta::gridMult (Grid< T > &me, const Grid< S > &other)
 
void Manta::gridDiv (Grid< T > &me, const Grid< S > &other)
 
void Manta::gridAddScalar (Grid< T > &me, const S &other)
 
void Manta::gridMultScalar (Grid< T > &me, const S &other)
 
void Manta::gridScaledAdd (Grid< T > &me, const Grid< T > &other, const S &factor)
 
void Manta::gridSetConst (Grid< T > &grid, T value)
 
Vec3 Manta::getGradient (const Grid< Real > &data, int i, int j, int k)
 
void Manta::knInterpolateGridTempl (Grid< S > &target, Grid< S > &source, const Vec3 &sourceFactor, Vec3 offset, int orderSpace=1)
 
template<class GRID >
void Manta::interpolGridTempl (GRID &target, GRID &source)