#include <initStage.h>
Public Member Functions | |
initStage () | |
void | solve (int nPatch, real &t, real &dt, real Re, int nTruncate, int cellNumberPerPatch, int **StartIndex, real *xParticleCenter, real *yParticleCenter, real *zParticleCenter, int **pointNumberMeshU, int **pointNumberMeshV, int **pointNumberMeshW, int **pointNumberMeshP, int dim, real ***xU, real ***xV, real ***xW, real ***xP, real *h, real ****u, int ****uUnknowns, real ****v, int ****vUnknowns, real ****w, int ****wUnknowns, real ****p, real ****uAux, real ****vAux, real ****wAux, real ****fp, real ****exactP, int ****pUnknowns, int ****uCagePoint, int ****vCagePoint, int ****wCagePoint, int ****pCagePoint, int **nCell, PetscLinearSolver &pSolver, int &zeroInitialGuess) |
Calculate the initial stage using the velcity at cage points from cageInit. | |
~initStage () |
This class is similar to NSSolver. except that the velocity at cage points is from cageInit rather than from cage.
initStage::initStage | ( | ) |
constructor
initStage::~initStage | ( | ) |
destructor
void initStage::solve | ( | int | nPatch, | |
real & | t, | |||
real & | dt, | |||
real | Re, | |||
int | nTruncate, | |||
int | cellNumberPerPatch, | |||
int ** | StartIndex, | |||
real * | xParticleCenter, | |||
real * | yParticleCenter, | |||
real * | zParticleCenter, | |||
int ** | pointNumberMeshU, | |||
int ** | pointNumberMeshV, | |||
int ** | pointNumberMeshW, | |||
int ** | pointNumberMeshP, | |||
int | dim, | |||
real *** | xU, | |||
real *** | xV, | |||
real *** | xW, | |||
real *** | xP, | |||
real * | h, | |||
real **** | u, | |||
int **** | uUnknowns, | |||
real **** | v, | |||
int **** | vUnknowns, | |||
real **** | w, | |||
int **** | wUnknowns, | |||
real **** | p, | |||
real **** | uAux, | |||
real **** | vAux, | |||
real **** | wAux, | |||
real **** | fp, | |||
real **** | exactP, | |||
int **** | pUnknowns, | |||
int **** | uCagePoint, | |||
int **** | vCagePoint, | |||
int **** | wCagePoint, | |||
int **** | pCagePoint, | |||
int ** | nCell, | |||
PetscLinearSolver & | pSolver, | |||
int & | zeroInitialGuess | |||
) |
Calculate the initial stage using the velcity at cage points from cageInit.
This class is similar to NSSolver. except that the velocity at cage points is from cageInit rather than from cage.
nPatch | number of patches |
t | time |
dt | time increment |
Re | Reynolds number |
nTruncate | the order for truncated spectral analytical solution |
cellNumberPerPatch | cell numbers per patch surrounding the sphere |
StartIndex | used to put the refined mesh |
xParticleCenter | x coordinate of particle center |
yParticleCenter | y coordinate of particle center |
zParticleCenter | z coordinate of particle center |
pointNumberMeshU | mesh points for u |
pointNumberMeshV | mesh points for v |
pointNumberMeshW | mesh points for w |
pointNumberMeshP | mesh points for p |
dim | dimension |
xU | coordinates of u |
xV | coordinates of v |
xW | coordinates of w |
xP | coordinates of p |
h | space step |
u | velocity u |
uUnknowns | mesh points for u |
v | velocity v |
vUnknowns | mesh points for v |
w | velocity w |
wUnknowns | mesh points for w |
p | pressure |
uAux | predicted u |
vAux | predicted v |
wAux | predicted w |
fp | extra force |
exactP | exact pressure |
pUnknowns | mesh points for p |
uCagePoint | cage points for u |
vCagePoint | cage points for v |
wCagePoint | cage points for w |
pCagePoint | cage points for p |
nCell | number of cells |
pSolver | PETSC linear solver |
zeroInitialGuess | if use zero as the initial guess for pressure |