#include <pressure.h>
Public Member Functions | |
pressure () | |
void | initialize (int numberOfPatches, int cellNumberPerPatch, int **StartIndex, int **pointNumberMeshP, int dimension, real ***xP, real *h, real ****fp, real ****exactPressure, int ****pUnknowns, real ****p, int ****pCagePoint, PetscLinearSolver &pSolver, int &zeroInitialGuess) |
pressure Poisson equation Solver | |
~pressure () |
This class is the pressure Poisson equation Solver. It creats indices for all pressure points on the coarse and fine mesh, generates the matrix, and assigns the right hand side of the equation, then call PetscLinearSolver to solve the linear system.
Fields of pressure transform to 1d vector from the original two or three-dimensional domain. Solving pressure in vector form A x = b
pressure::pressure | ( | ) |
constructor
pressure::~pressure | ( | ) |
destructor
void pressure::initialize | ( | int | numberOfPatches, | |
int | cellNumberPerPatch, | |||
int ** | StartIndex, | |||
int ** | pointNumberMeshP, | |||
int | dimension, | |||
real *** | xP, | |||
real * | h, | |||
real **** | fp, | |||
real **** | exactPressure, | |||
int **** | pUnknowns, | |||
real **** | p, | |||
int **** | pCagePoint, | |||
PetscLinearSolver & | pSolver, | |||
int & | zeroInitialGuess | |||
) |
pressure Poisson equation Solver
This class is the pressure Poisson equation Solver. It creats indices for all pressure points on the coarse and fine mesh, generates the matrix, and assigns the right hand side of the equation, then call PetscLinearSolver to solve the linear system.
numberOfPatches | number of patches |
cellNumberPerPatch | cell numbers per patch surrounding the sphere |
StartIndex | used to put the refined mesh |
pointNumberMeshP | mesh points for p |
dimension | dimension |
xP | coordinates of p |
h | space step |
fp | extra force |
exactPressure | exact pressure |
pUnknowns | mesh points for p |
p | pressure |
pCagePoint | cage points for p |
pSolver | PETSC linear solver |
zeroInitialGuess | if use zero as the initial guess for pressure |