mantaflow  0.10
A framework for fluid simulation
Functions
tfplugins.cpp File Reference
#include "levelset.h"
#include "commonkernels.h"
#include "particle.h"
#include <cmath>

Functions

void Manta::knSimpleNumpyTest (Grid< Real > &grid, PyArrayContainer npAr, Real scale)
 
PYTHON void Manta::simpleNumpyTest (Grid< Real > &grid, PyArrayContainer npAr, Real scale)
 
void Manta::knExtractFeatureVel (const BasicParticleSystem &p, Real *fv, const IndexInt N_row, const IndexInt off_begin, const MACGrid &vel, const Real scale, const ParticleDataImpl< int > *ptype, const int exclude, const int window)
 extract feature vectors More...
 
void Manta::knExtractFeaturePhi (const BasicParticleSystem &p, Real *fv, const IndexInt N_row, const IndexInt off_begin, const Grid< Real > &phi, const Real scale, const ParticleDataImpl< int > *ptype, const int exclude, const int window)
 
void Manta::knExtractFeatureGeo (const BasicParticleSystem &p, Real *fv, const IndexInt N_row, const IndexInt off_begin, const FlagGrid &geo, const Real scale, const ParticleDataImpl< int > *ptype, const int exclude, const int window)
 
PYTHON void Manta::extractFeatureVel (PyArrayContainer fv, const int N_row, const int off_begin, const BasicParticleSystem &p, const MACGrid &vel, const Real scale=1.0, const ParticleDataImpl< int > *ptype=NULL, const int exclude=0, const int window=1)
 
PYTHON void Manta::extractFeaturePhi (PyArrayContainer fv, const int N_row, const int off_begin, const BasicParticleSystem &p, const Grid< Real > &phi, const Real scale=1.0, const ParticleDataImpl< int > *ptype=NULL, const int exclude=0, const int window=1)
 
PYTHON void Manta::extractFeatureGeo (PyArrayContainer fv, const int N_row, const int off_begin, const BasicParticleSystem &p, const FlagGrid &flag, const Real scale=1.0, const ParticleDataImpl< int > *ptype=NULL, const int exclude=0, const int window=1)
 
void Manta::floodFillRegion (Grid< int > &r, const FlagGrid &flags, const IndexInt idx, const int c, const int type)
 region detection functions
 
PYTHON int Manta::getRegions (Grid< int > &r, const FlagGrid &flags, const int ctype)
 
PYTHON void Manta::getRegionalCounts (Grid< int > &r, const FlagGrid &flags, const int ctype)
 
PYTHON void Manta::extendRegion (FlagGrid &flags, const int region, const int exclude, const int depth)
 
bool Manta::isIsolatedFluidCell (const IndexInt idx, const FlagGrid &flags)
 
void Manta::knMarkIsolatedFluidCell (FlagGrid &flags, const int mark)
 
PYTHON void Manta::markIsolatedFluidCell (FlagGrid &flags, const int mark)
 
void Manta::knMarkSmallRegions (FlagGrid &flags, const Grid< int > &rcnt, const int mark, const int exclude, const int th)
 
PYTHON void Manta::markSmallRegions (FlagGrid &flags, const Grid< int > &rcnt, const int mark, const int exclude, const int th=1)
 
void Manta::KnAddForcePvel (ParticleDataImpl< Vec3 > &v, const Vec3 &da, const ParticleDataImpl< int > *ptype, const int exclude)
 
PYTHON void Manta::addForcePvel (ParticleDataImpl< Vec3 > &vel, const Vec3 &a, const Real dt, const ParticleDataImpl< int > *ptype, const int exclude)
 
void Manta::KnUpdateVelocityFromDeltaPos (const BasicParticleSystem &p, ParticleDataImpl< Vec3 > &v, const ParticleDataImpl< Vec3 > &x_prev, const Real over_dt, const ParticleDataImpl< int > *ptype, const int exclude)
 
PYTHON void Manta::updateVelocityFromDeltaPos (BasicParticleSystem &parts, ParticleDataImpl< Vec3 > &vel, const ParticleDataImpl< Vec3 > &x_prev, const Real dt, const ParticleDataImpl< int > *ptype, const int exclude)
 
void Manta::KnStepEuler (BasicParticleSystem &p, const ParticleDataImpl< Vec3 > &v, const Real dt, const ParticleDataImpl< int > *ptype, const int exclude)
 
PYTHON void Manta::eulerStep (BasicParticleSystem &parts, const ParticleDataImpl< Vec3 > &vel, const ParticleDataImpl< int > *ptype, const int exclude)
 
void Manta::KnSetType (ParticleDataImpl< int > &ptype, BasicParticleSystem &part, const int mark, const int stype, const FlagGrid &flags, const int cflag)
 
PYTHON void Manta::setPartType (BasicParticleSystem &parts, ParticleDataImpl< int > &ptype, const int mark, const int stype, const FlagGrid &flags, const int cflag)