programmer's documentation
How to name common local variables ?

The following table provides a non-exhaustive list of local variables which are used in the code in a recurring manner.

Fortran code C code Description
iel cell_id Cell index
ifac face_id Face index
ig g_id Interior face number of associated groups (OpenMP)
it t_id Interior face number of threads (OpenMP)
idimtr tr_dim Indicator for tensor perodicity of rotation
flumas i_massflux Mass flux at interior faces
flumab b_massflux Mass flux at boundary faces
viscf i_visc $ \mu_\fij \dfrac{S_\fij}{\ipf \jpf} $
at interior faces for the r.h.s.
viscb b_visc $ \mu_\fib \dfrac{S_\fib}{\ipf \centf} $
at border faces for the r.h.s.
smbrp rhs Right hand side $ \vect{Rhs} $

Local naming convention for fields (Fotran and C)

Rules have been stablished for local names denoting fields, depending on their nature. The convention, applying both in Fortran and in C, is as follows:

The following examples ilustrate this convention:

cvar_pr: Values of the variable pressure field defined at the cell centers, at the current time step.
cvara_pr: Values of the variable pressure field defined at the cell centers, at the previous time step.
cpro_cp: Values of the property specific heat defined field at the cell centers.