My Project
programmer's documentation
Functions/Subroutines
cfmspr.f90 File Reference

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)
 

Detailed Description

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.

Function/Subroutine Documentation

◆ cfmspr()

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 
)
Parameters
[in]nvartotal number of variables
[in]nscaltotal number of scalars
[in]iternsNavier-Stokes iteration number
[in]ncepdpnumber of cells with head loss
[in]ncesmpnumber of cells with mass source term
[in]icepdcindex of cells with head loss
[in]icetsmindex of cells with mass source term
[in]itypsmtype of mass source term for each variable (see uttsma.f90)
[in]dttime step (per cell)
[in]velavelocity value at time step beginning
[in]ckupdcwork array for the head loss
[in]smacelvariable value associated to the mass source term (for ivar=ipr, smacel is the mass flux $ \Gamma^n $)