programmer's documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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, iscal, itspdv, icepdc, icetsm, itypsm, dt, rtp, rtpa, propce, tslagr, ckupdc, smacel, viscf, viscb, smbrs, rovsdt)
 

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.

Function/Subroutine Documentation

subroutine covofi ( integer  nvar,
integer  nscal,
integer  ncepdp,
integer  ncesmp,
integer  iscal,
integer  itspdv,
integer, dimension(ncepdp)  icepdc,
integer, dimension(ncesmp)  icetsm,
integer, dimension(ncesmp,nvar)  itypsm,
double precision, dimension(ncelet)  dt,
double precision, dimension(ncelet,nflown:nvar)  rtp,
double precision, dimension(ncelet,nflown:nvar)  rtpa,
double precision, dimension(ncelet,*)  propce,
double precision, dimension(ncelet,*)  tslagr,
double precision, dimension(ncepdp,6)  ckupdc,
double precision, dimension(ncesmp,nvar)  smacel,
double precision, dimension(nfac)  viscf,
double precision, dimension(nfabor)  viscb,
double precision, dimension(ncelet)  smbrs,
double precision, dimension(ncelet)  rovsdt 
)
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]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]itypsmtype of mass source term for the variables
[in]dttime step (per cell)
[in,out]rtp,rtpacalculated variables at cell centers (at current and previous time steps)
[in]propcephysical properties at cell centers
[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]frcxtexternal forces making hydrostatic pressure
[in]dfrcxtvariation of the external forces
[in]makingthe hydrostatic pressure
[in]tpucounon scalar time step in case of velocity pressure coupling
[in]travright hand side for the normalizing the residual
[in]viscfvisc*surface/dist aux faces internes
[in]viscbvisc*surface/dist aux faces de bord
[in]smbrstableau de travail
[in]rovsdttableau de travail