2This file contains the indices of the various variables used in

3the EOS routines. The first seven indices (

EOS_VARS) are basic properties

5or optionally calculated quantities.

7The derived variables are used in the mask required by

Eos.F90, and

8values

for them are returned by

Eos in the array eosData when the

9corresponding mask element is

true.

11NOTE1 -- originally both EOS_ENER and

EOS_EINT were included here.

12EOS_ENER was the variable (mostly) used internally, and

EOS_EINT was basically

13 ignored. This was very confusing, as the EOS routines work with internal

14 entergy, which corresponds to EINT_VAR in the unk array. Hence, on

157/20/2006 LBR removed all references to EOS_ENER by changing them to

EOS_EINT.

17NOTE2 -- the equivalent Flash2 variable is given in [brackets] after the

24NOTE3a -- kinetic energy EKIN is not actually used by any

Eos implementation,

25but a place

for it reserved among the

"basic" variables so that an

Eos-wrapping

26function can conveniently store the kinetic energy derived from grid

27datastructure variables across

Eos() calls.

32basic

EOS_GAMC Adiabatic index, the Gamma1 of Chandrasekhar [gamc]

33basic

EOS_EINT Total internal energy (equivalent to EINT_VAR) [ei]

34basic

EOS_ABAR Average mass of the nuclei

37basic

EOS_EKIN used to hold kinetic energy for internal

Eos use

38derived

EOS_DPT Derivative of pressure wrt temperature

39derived

EOS_DPD Derivative of pressure wrt density

40derived

EOS_DET Derivative of internal energy wrt temperature

41derived

EOS_DEA Derivative of internal energy wrt atomic mass

42derived

EOS_DEZ Derivative of internal energy wrt atomic number/charge

43derived

EOS_DED Derivative of internal energy wrt density

44derived

EOS_DST Derivative of entropy wrt temperature

45derived

EOS_DSD Derivative of entropy wrt density

46derived

EOS_CV Specific heat at constant volume

47derived

EOS_CP Specific heat at constant pressure

48derived

EOS_PEL Electron pressure

49derived

EOS_NE Electron number density

50derived

EOS_ETA Electron degeneracy parameter (chemical potential / k_b*T)

87 This section defines the constants to identify different equations

88 of states that are included in the distribution.

89 The

"USER" types can be used

for user-defined specialized implementations.

101#define EOS_USERTYPE1 1001
102#define EOS_USERTYPE2 1002
105#define EOS_TABULAR_Z 1
106#define EOS_TABULAR_E 2
107#define EOS_TABULAR_C 3
108#define EOS_TABULAR_P 4
109#define EOS_APPROX_KIN 40
112#define EOS_LOGLEVEL_WARN_ANY 100
113#define EOS_LOGLEVEL_WARN_DATA 300
114#define EOS_LOGLEVEL_WARN_ALLPROCS 430
115#define EOS_LOGLEVEL_INFO_DATA 450
116#define EOS_LOGLEVEL_INFO_ALLPROCS 900
117#define EOS_LOGLEVEL_INFO_ALL 1000
subroutine Eos(mode, vecLen, eosData, massFrac, mask, vecBegin, vecEnd, diagFlag)