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

Mass source term user subroutine. More...

Functions/Subroutines

subroutine cs_user_mass_source_terms (nvar, nscal, ncepdp, ncesmp, iappel, icepdc, icetsm, itypsm, izctsm, dt, ckupdc, smacel)
 Arguments. More...
 

Detailed Description

Mass source term user subroutine.

See Examples of data settings for mass source terms (cs_user_mass_source_terms.f90) for examples.

Function/Subroutine Documentation

◆ cs_user_mass_source_terms()

subroutine cs_user_mass_source_terms ( integer  nvar,
integer  nscal,
integer  ncepdp,
integer  ncesmp,
integer  iappel,
integer, dimension(*)  icepdc,
integer, dimension(ncesmp)  icetsm,
integer, dimension(ncesmp,nvar itypsm,
integer, dimension(ncel izctsm,
double precision, dimension(ncelet)  dt,
double precision, dimension(6,ncepdp)  ckupdc,
double precision, dimension(ncesmp,nvar smacel 
)

Arguments.

Parameters
[in]nvartotal number of variables
[in]nscaltotal number of scalars
[in]ncepdpnumber of cells with head loss terms
[in]ncesmpnumber of cells with mass source terms
[in]iappelindicates which at which stage the routine is is called
[in]icepdcindex number of cells with head loss terms (usable only for iappel > 1)
[in,out]icetsmindex number of cells with mass source terms
[in,out]itypsmtype of mass source term for each variable (see uttsma.f90)
[in]izctsmcells zone for mass source terms definition
[in]dttime step (per cell)
[in]ckupdchead loss coefficient
[in,out]smacelvalue associated to each variable in the mass source terms or mass rate