mantaflow
0.10
A framework for fluid simulation
|
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: | |
Multigrid solver.