src/alge/inimas.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
inimas.f90 File Reference

This function adds to the mass flux for the segregated algorithm on the velocity components. More...

## Functions/Subroutines
subroutine | inimas (ivar1, ivar2, ivar3, imaspe, itypfl, iflmb0, init, inc, imrgra, iccocg, nswrgu, imligu, iwarnu, nfecra, epsrgu, climgu, extrau, rom, romb, ux, uy, uz, coefax, coefay, coefaz, coefbx, coefby, coefbz, flumas, flumab)

## Detailed Description

This function adds to the mass flux for the segregated algorithm on the velocity components.

For the reconstruction, is computed with the following approximated boundary conditions:

- Be carefull: here is a diagonal tensor.

For the mass flux at the boundary we have:

The last equation uses some approximations detailed in the theory guide.

## Function/Subroutine Documentation

subroutine inimas | ( | integer | ivar1,
|  | integer | ivar2,
|  | integer | ivar3,
|  | integer | imaspe,
|  | integer | itypfl,
|  | integer | iflmb0,
|  | integer | init,
|  | integer | inc,
|  | integer | imrgra,
|  | integer | iccocg,
|  | integer | nswrgu,
|  | integer | imligu,
|  | integer | iwarnu,
|  | integer | nfecra,
|  | double precision | epsrgu,
|  | double precision | climgu,
|  | double precision | extrau,
|  | double precision, dimension(ncelet) | rom,
|  | double precision, dimension(nfabor) | romb,
|  | double precision, dimension(ncelet) | ux,
|  | double precision, dimension(ncelet) | uy,
|  | double precision, dimension(ncelet) | uz,
|  | double precision, dimension(nfabor) | coefax,
|  | double precision, dimension(nfabor) | coefay,
|  | double precision, dimension(nfabor) | coefaz,
|  | double precision, dimension(nfabor) | coefbx,
|  | double precision, dimension(nfabor) | coefby,
|  | double precision, dimension(nfabor) | coefbz,
|  | double precision, dimension(nfac) | flumas,
|  | double precision, dimension(nfabor) | flumab
| ) |  |

Parameters

  [in] | ivar1 | current variable in the x direction
  [in] | ivar2 | current variable in the y direction
  [in] | ivar3 | current variable in the z direction
  [in] | imaspe | indicator 1 if we deal with a vector field such as the velocity 2 if we deal with a tensor field such as the Reynolds stresses
  [in] | itypfl | indicator (take rho into account or not) 1 compute 0 compute
  [in] | iflmb0 | the mass flux is set to 0 on walls and symmetries if = 1
  [in] | init | the mass flux is initialize to 0 if > 0
  [in] | inc | indicator 0 solve an increment 1 otherwise
  [in] | imrgra | indicator 0 iterative gradient 1 least square gradient
  [in] | iccocg | indicator recompute the non-orthogonalities matrix cocg for the iterative gradients 0 otherwise
  [in] | nswrgu | number of sweeps for the reconstruction of the gradients
  [in] | imligu | clipping gradient method < 0 no clipping = 0 thank to neighbooring gradients = 1 thank to the mean gradient
  [in] | iwarnu | verbosity
  [in] | nfecra | unit of the standard output file
  [in] | epsrgu | relative precision for the gradient reconstruction
  [in] | climgu | clipping coeffecient for the computation of the gradient
  [in] | extrau | coefficient for extrapolation of the gradient
  [in] | rom | cell density
  [in] | romb | border face density
  [in] | ux | variable in the x direction
  [in] | uy | variable in the y direction
  [in] | uz | variable in the z direction
  [in] | coefax | boundary condition array for the variable (Explicit part - for the component x)
  [in] | coefay | boundary condition array for the variable (Explicit part - for the component y)
  [in] | coefaz | boundary condition array for the variable (Explicit part - for the component z)
  [in] | coefbx | boundary condition array for the variable (Impplicit part - for the component x)
  [in] | coefby | boundary condition array for the variable (Impplicit part - for the component y)
  [in] | coefbz | boundary condition array for the variable (Impplicit part - for the component z)
  [in,out] | flumas | interior mass flux
  [in,out] | flumab | border mass flux