6.3 Fluxes

The fluxes are stored in their own data structure and are only necessary when an adaptive grid is in use. The index order works in much the same way as with the unk data structure. There are the traditional property fluxes, like density, pressure, etc. Additionally, there are species fluxes and mass scalars fluxes. The name of the pre-processor symbol is assembled by appending _FLUX to the uppercase name of the declared flux (e.g., EINT_FLUX, U_FLUX). For flux species and flux mass scalars, the suffix _FLUX_SPECIES and _FLUX_MSCALAR are appended to the uppercase names of flux species and flux mass scalars, respectively, as declared in the Config file. Useful defined variables are calculated as follows:

NPROP_FLUX
  The number of property variables in the simulation
NSPECIES_FLUX
  The total number of species in the simulation
NMASS_SCALARS_FLUX
  The number of mass scalars in the simulation
NFLUXES
  The total number of quantities stored for each cell in the simulation. This equals (NPROP_FLUX + NSPECIES_FLUX + NMASS_SCALARS_FLUX)
PROP_FLUX_BEGIN,PROP_FLUX_END
  The indices in the fluxes data structure used for property variable data
SPECIES_FLUX_BEGIN,SPECIES_FLUX_END
  The indices in the fluxes data structure used for species data
MASS_SCALARS_FLUX_BEGIN,MASS_SCALARS_FLUX_END
  The indices in the fluxes data structure used for mass scalars data
FLUXES_BEGIN
  The first index for the fluxes data structure