My Project
programmer's documentation
|
Update the convective mass flux before the velocity prediction step. It is the first step of the compressible algorithm at each time iteration. More...
Functions/Subroutines | |
subroutine | cfmspr (nvar, nscal, iterns, ncepdp, ncesmp, icepdc, icetsm, itypsm, dt, vela, ckupdc, smacel) |
Update the convective mass flux before the velocity prediction step. It is the first step of the compressible algorithm at each time iteration.
This function solves the continuity equation in pressure formulation and then updates the density and the mass flux.
subroutine cfmspr | ( | integer | nvar, |
integer | nscal, | ||
integer | iterns, | ||
integer | ncepdp, | ||
integer | ncesmp, | ||
integer, dimension(ncepdp) | icepdc, | ||
integer, dimension(ncesmp) | icetsm, | ||
integer, dimension(ncesmp,nvar) | itypsm, | ||
double precision, dimension(ncelet) | dt, | ||
double precision, dimension (3 ,ncelet) | vela, | ||
double precision, dimension(6,ncepdp) | ckupdc, | ||
double precision, dimension(ncesmp,nvar) | smacel | ||
) |
[in] | nvar | total number of variables |
[in] | nscal | total number of scalars |
[in] | iterns | Navier-Stokes iteration number |
[in] | ncepdp | number of cells with head loss |
[in] | ncesmp | number of cells with mass source term |
[in] | icepdc | index of cells with head loss |
[in] | icetsm | index of cells with mass source term |
[in] | itypsm | type of mass source term for each variable (see uttsma.f90) |
[in] | dt | time step (per cell) |
[in] | vela | velocity value at time step beginning |
[in] | ckupdc | work array for the head loss |
[in] | smacel | variable value associated to the mass source term (for ivar=ipr, smacel is the mass flux ) |