User subroutines for additional right-hand side source terms. More...
Functions/Subroutines | |
subroutine | ustssc (nvar, nscal, ncepdp, ncesmp, iscal, icepdc, icetsm, itypsm, dt, ckupdc, smacel, crvexp, crvimp) |
Additional right-hand side source terms for scalar equations (user scalars and specific physics scalars). More... | |
User subroutines for additional right-hand side source terms.
See cs_user_source_terms and Examples of data settings for source terms with scalar in a channel for examples.
subroutine ustssc | ( | integer | nvar, |
integer | nscal, | ||
integer | ncepdp, | ||
integer | ncesmp, | ||
integer | iscal, | ||
integer, dimension(ncepdp) | icepdc, | ||
integer, dimension(ncesmp) | icetsm, | ||
integer, dimension(ncesmp,nvar) | itypsm, | ||
double precision, dimension(ncelet) | dt, | ||
double precision, dimension(6,ncepdp) | ckupdc, | ||
double precision, dimension(ncesmp,nvar) | smacel, | ||
double precision, dimension(ncelet) | crvexp, | ||
double precision, dimension(ncelet) | crvimp | ||
) |
Additional right-hand side source terms for scalar equations (user scalars and specific physics scalars).
[in] | nvar | total number of variables |
[in] | nscal | total number of scalars |
[in] | ncepdp | number of cells with head loss terms |
[in] | ncesmp | number of cells with mass source terms |
[in] | iscal | index number of the current scalar |
[in] | icepdc | index number of cells with head loss terms |
[in] | icetsm | index number of cells with mass source terms |
[in] | itypsm | type of mass source term for each variable |
[in] | dt | time step (per cell) |
[in] | ckupdc | head loss coefficient |
[in] | smacel | value associated to each variable in the mass |
[in] | source | terms or mass rate |
[out] | crvexp | explicit part of the source term |
[out] | crvimp | implicit part of the source term |