#include <uNew.h>
Public Member Functions | |
uNew () | |
void | initialize (int numberOfPatches, real t, real dt, int cellNumberPerPatch, int **StartIndex, int **pointNumberMeshU, int **pointNumberMeshV, int **pointNumberMeshW, int **pointNumberMeshP, int dimension, real ***xU, real ***xV, real ***xW, real *h, real ****u, int ****uCagePoint, real ****v, int ****vCagePoint, real ****w, int ****wCagePoint, real ****uAux, real ****vAux, real ****wAux, real ****p) |
Calculate the velocity at the next step. | |
~uNew () |
This class is used to update the velocity at the next step.
uNew::uNew | ( | ) |
constructor
uNew::~uNew | ( | ) |
destructor
void uNew::initialize | ( | int | numberOfPatches, | |
real | t, | |||
real | dt, | |||
int | cellNumberPerPatch, | |||
int ** | StartIndex, | |||
int ** | pointNumberMeshU, | |||
int ** | pointNumberMeshV, | |||
int ** | pointNumberMeshW, | |||
int ** | pointNumberMeshP, | |||
int | dimension, | |||
real *** | xU, | |||
real *** | xV, | |||
real *** | xW, | |||
real * | h, | |||
real **** | u, | |||
int **** | uCagePoint, | |||
real **** | v, | |||
int **** | vCagePoint, | |||
real **** | w, | |||
int **** | wCagePoint, | |||
real **** | uAux, | |||
real **** | vAux, | |||
real **** | wAux, | |||
real **** | p | |||
) |
Calculate the velocity at the next step.
This class is used to update the velocity at the next step n+1. This is the last step in the projection method.
numberOfPatches | number of patches |
t | time |
dt | time increment |
cellNumberPerPatch | cell numbers per patch surrounding the sphere |
StartIndex | used to put the refined mesh |
pointNumberMeshU | mesh points for u |
pointNumberMeshV | mesh points for v |
pointNumberMeshW | mesh points for w |
pointNumberMeshP | mesh points for p |
dimension | dimension |
xU | coordinates of u |
xV | coordinates of v |
xW | coordinates of w |
h | space step |
u | velocity u |
uCagePoint | cage points for u |
v | velocity v |
vCagePoint | cage points for v |
w | velocity w |
wCagePoint | cage points for w |
uAux | predicted u |
vAux | predicted v |
wAux | predicted w |
p | pressure |