7.0
general documentation
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.

Deprecated:
Replaced by cs_equation_add_source_term_by_val, cs_equation_add_volume_mass_injection_by_qov, and cs_equation_add_volume_mass_injection_by_analytic. See Examples of data settings for volume mass injection for examples.
Remarks
Compared to previous versions, this subroutine is only called with parameter id iappel 1 or 2 of no user-defined zone already has the CS_VOLUME_ZONE_MASS_SOURCE_TERM type. If this type was assigned to one or more zones (using cs_volume_zone_set_type or directly modifying the type flag), the matching zones will be selected automaticaly (and izctsm set accordingly).

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
[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