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

This subroutine performs the solving the convection/diffusion equation (with eventually source terms and/or drift) for a scalar quantity over a time step. More...

Functions/Subroutines

subroutine covofi (nvar, nscal, ncepdp, ncesmp, nfbpcd, ncmast, iterns, iscal, itspdv, icepdc, icetsm, ifbpcd, ltmast, itypsm, itypcd, itypst, dt, tslagr, ckupdc, smacel, spcond, svcond, flxmst, viscf, viscb)
 

Detailed Description

This subroutine performs the solving the convection/diffusion equation (with eventually source terms and/or drift) for a scalar quantity over a time step.

Please refer to the covofi section of the theory guide for more informations.

Function/Subroutine Documentation

◆ covofi()

subroutine covofi ( integer  nvar,
integer  nscal,
integer  ncepdp,
integer  ncesmp,
integer  nfbpcd,
integer  ncmast,
integer  iterns,
integer  iscal,
integer  itspdv,
integer, dimension(ncepdp)  icepdc,
integer, dimension(ncesmp)  icetsm,
integer, dimension(nfbpcd)  ifbpcd,
integer, dimension(ncelet)  ltmast,
integer, dimension(ncesmp,nvar itypsm,
integer, dimension(nfbpcd,nvar itypcd,
integer, dimension(ncelet,nvar itypst,
double precision, dimension(ncelet)  dt,
double precision, dimension(ncelet,*)  tslagr,
double precision, dimension(6,ncepdp)  ckupdc,
double precision, dimension(ncesmp,nvar smacel,
double precision, dimension(nfbpcd,nvar spcond,
double precision, dimension(ncelet,nvar svcond,
double precision, dimension(ncelet)  flxmst,
double precision, dimension(nfac)  viscf,
double precision, dimension(nfabor)  viscb 
)
Parameters
[in]nvartotal number of variables
[in]nscaltotal number of scalars
[in]ncepdpnumber of cells with head loss
[in]ncesmpnumber of cells with mass source term
[in]nfbpcdnumber of faces with condensation source terms
[in]ncmastnumber of cells with condensation source terms
[in]iternsNavier-Stokes iteration number
[in]iscalscalar number
[in]itspdvindicator to compute production/dissipation terms for a variance:
  • 0: no
  • 1: yes
[in]icepdcindex of cells with head loss
[in]icetsmindex of cells with mass source term
[in]ifbpcdindex of faces with condensation source terms
[in]ltmastindex of cells with condensation source terms
[in]itypsmtype of mass source term for the variables
[in]itypcdtype of surface condensation source term
[in]itypsttype of volume condensation source term
[in]dttime step (per cell)
[in]tslagrcoupling term for the Lagrangian module
[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 $)
[in]spcondvariable value associated to the condensation source term (for ivar=ipr, spcond is the flow rate $ \Gamma_{s, cond}^n $)
[in]svcondvariable value associated to the condensation source term (for ivar=ipr, svcond is the flow rate $ \Gamma_{v, cond}^n $)
[in]flxmstvariable value associated to heat transfer flux associated to the metal mass condensation
[in]viscfvisc*surface/dist at internal faces
[in]viscbvisc*surface/dist at boundary faces