mantaflow  0.10
A framework for fluid simulation
Functions | Variables
conjugategrad.cpp File Reference
#include "conjugategrad.h"
#include "commonkernels.h"

Functions

void Manta::InitPreconditionIncompCholesky (FlagGrid &flags, Grid< Real > &A0, Grid< Real > &Ai, Grid< Real > &Aj, Grid< Real > &Ak, Grid< Real > &orgA0, Grid< Real > &orgAi, Grid< Real > &orgAj, Grid< Real > &orgAk)
 Preconditioning a la Wavelet Turbulence (needs 4 add. grids)
 
void Manta::InitPreconditionModifiedIncompCholesky2 (FlagGrid &flags, Grid< Real > &Aprecond, Grid< Real > &A0, Grid< Real > &Ai, Grid< Real > &Aj, Grid< Real > &Ak)
 Preconditioning using modified IC ala Bridson (needs 1 add. grid)
 
void Manta::InitPreconditionMultigrid (GridMg *MG, Grid< Real > &A0, Grid< Real > &Ai, Grid< Real > &Aj, Grid< Real > &Ak, Real mAccuracy)
 Preconditioning using multigrid ala Dick et al.
 
void Manta::ApplyPreconditionIncompCholesky (Grid< Real > &dst, Grid< Real > &Var1, FlagGrid &flags, Grid< Real > &A0, Grid< Real > &Ai, Grid< Real > &Aj, Grid< Real > &Ak, Grid< Real > &orgA0, Grid< Real > &orgAi, Grid< Real > &orgAj, Grid< Real > &orgAk)
 Apply WT-style ICP.
 
void Manta::ApplyPreconditionModifiedIncompCholesky2 (Grid< Real > &dst, Grid< Real > &Var1, FlagGrid &flags, Grid< Real > &Aprecond, Grid< Real > &A0, Grid< Real > &Ai, Grid< Real > &Aj, Grid< Real > &Ak)
 Apply Bridson-style mICP.
 
void Manta::ApplyPreconditionMultigrid (GridMg *pMG, Grid< Real > &dst, Grid< Real > &Var1)
 Perform one Multigrid VCycle.
 
double Manta::GridDotProduct (const Grid< Real > &a, const Grid< Real > &b)
 Kernel: Compute the dot product between two Real grids. More...
 
double Manta::InitSigma (FlagGrid &flags, Grid< Real > &dst, Grid< Real > &rhs, Grid< Real > &temp)
 
void Manta::UpdateSearchVec (Grid< Real > &dst, Grid< Real > &src, Real factor)
 
PYTHON void Manta::cgSolveDiffusion (FlagGrid &flags, GridBase &grid, Real alpha=0.25, Real cgMaxIterFac=1.0, Real cgAccuracy=1e-4)
 do a CG solve for diffusion; note: diffusion coefficient alpha given in grid space, More...
 

Variables

const int Manta::CG_DEBUGLEVEL = 2