mantaflow  0.10
A framework for fluid simulation
Functions
waveletturbulence.cpp File Reference
#include "vectorbase.h"
#include "shapes.h"
#include "commonkernels.h"
#include "noisefield.h"

Functions

void Manta::calcGridSizeFactorMod (Vec3i s1, Vec3i s2, Vec3i optSize, Vec3 scale, Vec3 &sourceFactor, Vec3 &retOff)
 same as in grid.h , but takes an additional optional "desired" size
 
PYTHON void Manta::interpolateGrid (Grid< Real > &target, Grid< Real > &source, Vec3 scale=Vec3(1.), Vec3 offset=Vec3(0.), Vec3i size=Vec3i(-1,-1,-1), int orderSpace=1)
 
PYTHON void Manta::interpolateGridVec3 (Grid< Vec3 > &target, Grid< Vec3 > &source, Vec3 scale=Vec3(1.), Vec3 offset=Vec3(0.), Vec3i size=Vec3i(-1,-1,-1), int orderSpace=1)
 
void Manta::KnInterpolateMACGrid (MACGrid &target, MACGrid &source, const Vec3 &sourceFactor, const Vec3 &off, int orderSpace)
 
PYTHON void Manta::interpolateMACGrid (MACGrid &target, MACGrid &source, Vec3 scale=Vec3(1.), Vec3 offset=Vec3(0.), Vec3i size=Vec3i(-1,-1,-1), int orderSpace=1)
 
void Manta::knApplySimpleNoiseVec3 (FlagGrid &flags, Grid< Vec3 > &target, WaveletNoiseField &noise, Real scale, Grid< Real > *weight)
 
PYTHON void Manta::applySimpleNoiseVec3 (FlagGrid &flags, Grid< Vec3 > &target, WaveletNoiseField &noise, Real scale=1.0, Grid< Real > *weight=NULL)
 
void Manta::knApplySimpleNoiseReal (FlagGrid &flags, Grid< Real > &target, WaveletNoiseField &noise, Real scale, Grid< Real > *weight)
 
PYTHON void Manta::applySimpleNoiseReal (FlagGrid &flags, Grid< Real > &target, WaveletNoiseField &noise, Real scale=1.0, Grid< Real > *weight=NULL)
 
void Manta::knApplyNoiseVec3 (FlagGrid &flags, Grid< Vec3 > &target, WaveletNoiseField &noise, Real scale, Real scaleSpatial, Grid< Real > *weight, Grid< Vec3 > *uv, bool uvInterpol, const Vec3 &sourceFactor)
 
PYTHON void Manta::applyNoiseVec3 (FlagGrid &flags, Grid< Vec3 > &target, WaveletNoiseField &noise, Real scale=1.0, Real scaleSpatial=1.0, Grid< Real > *weight=NULL, Grid< Vec3 > *uv=NULL)
 
void Manta::KnApplyComputeEnergy (FlagGrid &flags, MACGrid &vel, Grid< Real > &energy)
 
PYTHON void Manta::computeEnergy (FlagGrid &flags, MACGrid &vel, Grid< Real > &energy)
 
PYTHON void Manta::computeWaveletCoeffs (Grid< Real > &input)
 
PYTHON void Manta::computeVorticity (MACGrid &vel, Grid< Vec3 > &vorticity, Grid< Real > *norm)
 
void Manta::KnComputeStrainRateMag (const MACGrid &vel, const Grid< Vec3 > &velCenter, Grid< Real > &prod)
 
PYTHON void Manta::computeStrainRateMag (MACGrid &vel, Grid< Real > &mag)
 
template<class T >
void Manta::extrapolSimpleFlagsHelper (FlagGrid &flags, Grid< T > &val, int distance=4, int flagFrom=FlagGrid::TypeFluid, int flagTo=FlagGrid::TypeObstacle)
 
PYTHON void Manta::extrapolateSimpleFlags (FlagGrid &flags, GridBase *val, int distance=4, int flagFrom=FlagGrid::TypeFluid, int flagTo=FlagGrid::TypeObstacle)
 
PYTHON void Manta::getCurl (MACGrid &vel, Grid< Real > &vort, int comp)