8.0
general documentation
Loading...
Searching...
No Matches
cs_user_source_terms.f90 File Reference

User subroutines for additional right-hand side source terms. More...

Functions/Subroutines

subroutine ustsnv (nvar, nscal, ncepdp, ncesmp, ivar, icepdc, icetsm, itypsm, dt, ckupdc, smacel, crvexp, crvimp)
 Additional right-hand side source terms for velocity components equation (Navier-Stokes)
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).
subroutine ustsvv (nvar, nscal, ncepdp, ncesmp, iscal, icepdc, icetsm, itypsm, dt, ckupdc, smacel, crvexp, crvimp)
 Additional right-hand side source terms for vectorial equations (user vectors and specific physics vectors).

Detailed Description

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.

Function/Subroutine Documentation

◆ ustsnv()

subroutine ustsnv ( integer nvar,
integer nscal,
integer ncepdp,
integer ncesmp,
integer ivar,
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(3,ncelet) crvexp,
double precision, dimension(3,3,ncelet) crvimp )

Additional right-hand side source terms for velocity components equation (Navier-Stokes)

Deprecated
Use cs_user_source_terms instead.
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]ivarindex number of the current variable
[in]icepdcindex number of cells with head loss terms
[in]icetsmindex number of cells with mass source terms
[in]itypsmtype of mass source term for each variable
[in]dttime step (per cell)
[in]ckupdchead loss coefficient
[in]smacelvalue associated to each variable in the mass source terms or mass rate
[out]crvexpexplicit part of the source term
[out]crvimpimplicit part of the source term

◆ ustssc()

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).

Deprecated
Use cs_user_source_terms instead.
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]iscalindex number of the current scalar
[in]icepdcindex number of cells with head loss terms
[in]icetsmindex number of cells with mass source terms
[in]itypsmtype of mass source term for each variable
[in]dttime step (per cell)
[in]ckupdchead loss coefficient
[in]smacelvalue associated to each variable in the mass
[in]sourceterms or mass rate
[out]crvexpexplicit part of the source term
[out]crvimpimplicit part of the source term

◆ ustsvv()

subroutine ustsvv ( 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(3,ncelet) crvexp,
double precision, dimension(3,3,ncelet) crvimp )

Additional right-hand side source terms for vectorial equations (user vectors and specific physics vectors).

Deprecated
Use cs_user_source_terms instead.
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]iscalindex number of the current scalar
[in]icepdcindex number of cells with head loss terms
[in]icetsmindex number of cells with mass source terms
[in]itypsmtype of mass source term for each variable
[in]dttime step (per cell)
[in]ckupdchead loss coefficient
[in]smacelvalue associated to each variable in the mass
[in]sourceterms or mass rate
[out]crvexpexplicit part of the source term
[out]crvimpimplicit part of the source term