src/alge/bilsc4.f90 File Reference

| programmer's documentation

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions/Subroutines
bilsc4.f90 File Reference

This function adds the explicit part of the convection/diffusion terms of a transport equation of a vector field . More...

## Functions/Subroutines
subroutine | bilsc4 (idtvar, ivar, iconvp, idiffp, nswrgp, imligp, ircflp, ischcp, isstpp, inc, imrgra, ivisep, ippu, iwarnp, blencp, epsrgp, climgp, relaxp, thetap, pvar, pvara, coefav, coefbv, cofafv, cofbfv, flumas, flumab, viscf, viscb, secvif, icvflb, icvfli, smbr)

## Detailed Description

This function adds the explicit part of the convection/diffusion terms of a transport equation of a vector field .

More precisely, the right hand side is updated as follows:

Remark: if ivisep = 1, then we also take , where is the secondary viscosity, i.e. usually .

Warning:

- has already been initialized before calling bilsc!
- mind the sign minus

Options:

- blencp = 0: upwind scheme for the advection
- blencp = 1: no upwind scheme except in the slope test
- ischcp = 0: second order
- ischcp = 1: centred

## Function/Subroutine Documentation

subroutine bilsc4 | ( | integer | idtvar,
|  | integer | ivar,
|  | integer | iconvp,
|  | integer | idiffp,
|  | integer | nswrgp,
|  | integer | imligp,
|  | integer | ircflp,
|  | integer | ischcp,
|  | integer | isstpp,
|  | integer | inc,
|  | integer | imrgra,
|  | integer | ivisep,
|  | integer | ippu,
|  | integer | iwarnp,
|  | double precision | blencp,
|  | double precision | epsrgp,
|  | double precision | climgp,
|  | double precision | relaxp,
|  | double precision | thetap,
|  | double precision, dimension (3 ,ncelet) | pvar,
|  | double precision, dimension (3 ,ncelet) | pvara,
|  | double precision, dimension(3 ,nfabor) | coefav,
|  | double precision, dimension(3,3,nfabor) | coefbv,
|  | double precision, dimension(3 ,nfabor) | cofafv,
|  | double precision, dimension(3,3,nfabor) | cofbfv,
|  | double precision, dimension(nfac) | flumas,
|  | double precision, dimension(nfabor) | flumab,
|  | double precision, dimension (nfac) | viscf,
|  | double precision, dimension (nfabor) | viscb,
|  | double precision, dimension(nfac) | secvif,
|  | integer | icvflb,
|  | integer, dimension(nfabor) | icvfli,
|  | double precision, dimension(3,ncelet) | smbr
| ) |  |

Parameters

  [in] | idtvar | indicator of the temporal scheme
  [in] | ivar | index of the current variable
  [in] | iconvp | indicator 1 convection, 0 sinon
  [in] | idiffp | indicator 1 diffusion, 0 sinon
  [in] | nswrgp | number of reconstruction sweeps for the gradients
  [in] | imligp | clipping gradient method < 0 no clipping = 0 thank to neighbooring gradients = 1 thank to the mean gradient
  [in] | ircflp | indicator 1 flux reconstruction, 0 otherwise
  [in] | ischcp | indicator 1 centred 0 2nd order
  [in] | isstpp | indicator 1 without slope test 0 with slope test
  [in] | inc | indicator 0 when solving an increment 1 otherwise
  [in] | imrgra | indicator 0 iterative gradient 1 least square gradient
  [in] | ivisep | indicator to take 1 take into account, 0 otherwise
  [in] | ippu | index of the variable for post-processing
  [in] | iwarnp | verbosity
  [in] | blencp | fraction of upwinding
  [in] | epsrgp | relative precision for the gradient reconstruction
  [in] | climgp | clipping coeffecient for the computation of the gradient
  [in] | relaxp | coefficient of relaxation
  [in] | thetap | weightening coefficient for the theta-schema, thetap = 0: explicit scheme thetap = 0.5: time-centred scheme (mix between Crank-Nicolson and Adams-Bashforth) thetap = 1: implicit scheme
  [in] | pvar | vitesse resolue (instant courant)
  [in] | pvara | vitesse resolue (instant precedent)
  [in] | coefav | boundary condition array for the variable (Explicit part)
  [in] | coefbv | boundary condition array for the variable (Impplicit part)
  [in] | cofafv | boundary condition array for the diffusion of the variable (Explicit part)
  [in] | cofbfv | boundary condition array for the diffusion of the variable (Implicit part)
  [in] | flumas | mass flux at interior faces
  [in] | flumab | mass flux at boundary faces
  [in] | viscf | at interior faces for the r.h.s.
  [in] | viscb | at border faces for the r.h.s.
  [in] | secvif | secondary viscosity at interior faces
  [in] | icvflb | global indicator of boundary convection flux 0 upwind scheme at all boundary faces 1 imposed flux at some boundary faces
  [in] | icvfli | boundary face indicator array of convection flux 0 upwind scheme 1 imposed flux
  [in,out] | smbr | right hand side