mantaflow  0.10
A framework for fluid simulation
Classes | Public Member Functions | Friends | List of all members
Manta::GridMg Class Reference

Multigrid solver. More...

#include <multigrid.h>

Public Member Functions

 GridMg (const Vec3i &gridSize)
 constructor: preallocates most of required memory for multigrid hierarchy
 
void setA (const Grid< Real > *pA0, const Grid< Real > *pAi, const Grid< Real > *pAj, const Grid< Real > *pAk)
 update system matrix A from symmetric 7-point stencil
 
void setRhs (const Grid< Real > &rhs)
 set right-hand side after setting A
 
bool isASet () const
 
bool isRhsSet () const
 
Real doVCycle (Grid< Real > &dst, const Grid< Real > *src=nullptr)
 perform VCycle iteration
 
void setCoarsestLevelAccuracy (Real accuracy)
 
Real getCoarsestLevelAccuracy () const
 
void setSmoothing (int numPreSmooth, int numPostSmooth)
 
int getNumPreSmooth () const
 
int getNumPostSmooth () const
 
void setTrivialEquationScale (Real scale)
 Set factor for automated downscaling of trivial equations:
 

Friends

struct knActivateVertices
 
struct knActivateCoarseVertices
 
struct knSetRhs
 
struct knGenCoarseGridOperator
 
struct knSmoothColor
 
struct knCalcResidual
 
struct knResidualNormSumSqr
 
struct knRestrict
 
struct knInterpolate
 

Detailed Description

Multigrid solver.


The documentation for this class was generated from the following files: